* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #2a1f3d 0%, #1a1428 50%, #2d2140 100%);
    background-attachment: fixed;
    color: #f5f0e8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(58, 47, 77, 0.6) 0%, rgba(42, 31, 61, 0.6) 100%);
    border-bottom: 3px solid #7d6ba8;
    margin-bottom: 30px;
}

h1 {
    color: #e8d5ff;
    font-size: 48px;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 16px rgba(139, 111, 168, 0.5);
    font-weight: 700;
    letter-spacing: 2px;
}

header p {
    color: #c8b8d8;
    margin: 5px 0;
    font-size: 14px;
}

header a {
    color: #9d8bc8;
    text-decoration: none;
    transition: color 0.3s ease;
}

header a:hover {
    color: #9d8bc8;
}

/* Main Content Area */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Specialization Section */
.specialization-section {
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 2px solid #7d6ba8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.specialization-section h2 {
    margin: 0 0 15px 0;
    color: #e8d5ff;
    font-size: 24px;
    font-weight: 600;
}

.specialization-section label {
    color: #c8b8d8;
    font-weight: 500;
    margin-right: 10px;
}

.specialization-section select {
    background: rgba(26, 20, 40, 0.8);
    color: #f5f0e8;
    border: 2px solid #7d6ba8;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.specialization-section select:focus {
    outline: none;
    border-color: #9d8bc8;
    box-shadow: 0 0 10px rgba(157, 139, 200, 0.3);
}

/* Share Section */
.share-section {
    display: flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 2px solid #7d6ba8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.share-btn, .load-code-btn {
    background: linear-gradient(135deg, #8b6fa8 0%, #6d5588 100%);
    color: #f5f0e8;
    border: 2px solid #9d8bc8;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.share-btn:hover, .load-code-btn:hover {
    background: linear-gradient(135deg, #9b7fb8 0%, #7d6598 100%);
    box-shadow: 0 4px 16px rgba(157, 139, 200, 0.6);
    transform: translateY(-2px);
}

.share-btn:active, .load-code-btn:active {
    transform: translateY(0);
}

.build-code-input {
    flex: 1;
    background: rgba(26, 20, 40, 0.8);
    color: #f5f0e8;
    border: 2px solid #7d6ba8;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.build-code-input:focus {
    outline: none;
    border-color: #9d8bc8;
    box-shadow: 0 0 12px rgba(157, 139, 200, 0.4);
}

.build-code-input::placeholder {
    color: #9d8bc8;
}

/* Deck Buttons */
.deck-section h2 {
    color: #e8d5ff;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.deck-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 0 0 30px 0;
}

.deck-btn {
    background: linear-gradient(135deg, #4a3f6b 0%, #35294f 100%);
    color: #f5f0e8;
    border: 2px solid #7d6ba8;
    padding: 14px 20px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deck-btn:hover {
    background: linear-gradient(135deg, #5a4f7b 0%, #45395f 100%);
    border-color: #9d8bc8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(125, 107, 168, 0.5);
}

.deck-btn.active {
    background: linear-gradient(135deg, #8b6fa8 0%, #6d5588 100%);
    border-color: #e8d5ff;
    box-shadow: 0 0 24px rgba(139, 111, 168, 0.6);
}

/* Skill Deck Container */
.skill-deck-container {
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 3px solid #7d6ba8;
    border-radius: 16px;
    padding: 35px;
    margin: 0 0 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Save Slots */
.alphabet-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #7d6ba8;
}

.letter {
    font-size: 18px;
    font-weight: 700;
    color: #9d8bc8;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.3s ease;
    border-radius: 8px;
    background: rgba(74, 63, 107, 0.3);
    border: 2px solid transparent;
    min-width: 44px;
    text-align: center;
}

.letter:hover {
    color: #e8d5ff;
    border-color: #7d6ba8;
    background: rgba(125, 107, 168, 0.4);
    transform: translateY(-2px);
}

.letter.active {
    color: #f5f0e8;
    background: linear-gradient(135deg, #8b6fa8 0%, #6d5588 100%);
    border-color: #e8d5ff;
    box-shadow: 0 0 16px rgba(139, 111, 168, 0.5);
}

.reset-slot-btn {
    font-size: 14px;
    font-weight: 600;
    color: #f5f0e8;
    background: linear-gradient(135deg, #c74a4a 0%, #a83838 100%);
    border: 2px solid #e87d7d;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(199, 74, 74, 0.3);
}

.reset-slot-btn:hover {
    background: linear-gradient(135deg, #d65555 0%, #c74a4a 100%);
    border-color: #ffaaaa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(199, 74, 74, 0.5);
}

.reset-slot-btn:active {
    transform: translateY(0);
}

/* Carousel */
.carousel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 35px 0;
    min-height: 450px;
}

.carousel-btn {
    background: linear-gradient(135deg, #4a3f6b 0%, #35294f 100%);
    border: 3px solid #7d6ba8;
    color: #e8d5ff;
    font-size: 42px;
    cursor: pointer;
    padding: 20px 30px;
    transition: all 0.3s ease;
    border-radius: 12px;
    font-weight: bold;
    min-width: 80px;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #5a4f7b 0%, #45395f 100%);
    border-color: #9d8bc8;
    color: #f5f0e8;
    transform: scale(1.1);
    box-shadow: 0 0 24px rgba(157, 139, 200, 0.6);
}

.carousel-btn:active {
    transform: scale(1.05);
}

.carousel-content {
    flex: 1;
    text-align: center;
    padding: 0 50px;
}

.deck-title {
    font-size: 42px;
    letter-spacing: 10px;
    margin: 0 0 15px 0;
    color: #e8d5ff;
    text-shadow: 0 2px 12px rgba(139, 111, 168, 0.4);
    font-weight: 700;
}

.deck-name {
    font-size: 56px;
    letter-spacing: 8px;
    margin: 15px 0;
    color: #f5f0e8;
    text-transform: uppercase;
    text-shadow: 0 4px 20px rgba(139, 111, 168, 0.6);
    font-weight: 800;
}

.deck-tagline {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #c8b8d8;
    text-transform: uppercase;
    margin: 20px auto;
    max-width: 800px;
    line-height: 1.6;
}

/* Skill Icons */
.skill-icons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 50px;
    width: 100%;
}

.skill-icon {
    /* NEW FLEX PROPERTIES TO ENSURE 8 EQUAL COLUMNS */
    flex: 0 0 calc(12.5% - 11px); 
    width: calc(12.5% - 11px);
    
    /* Keep existing properties: */
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 3px solid #7d6ba8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; /* This is crucial for clipping the sprite sheet */
}

.skill-icon img {
    display: block;
}

.skill-icon:hover {
    background: linear-gradient(135deg, #4a3f5d 0%, #3a2f4d 100%);
    border-color: #9d8bc8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(125, 107, 168, 0.6);
}

.skill-icon.selected {
    background: linear-gradient(135deg, #6d5588 0%, #5a4573 100%);
    border-color: #e8d5ff;
    box-shadow: 0 0 28px rgba(139, 111, 168, 0.9);
    transform: scale(1.05);
}

.skill-icon.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #8b6fa8 0%, #6d5588 100%);
    color: #f5f0e8;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #e8d5ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Skill Details */
.skill-details {
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 3px solid #7d6ba8;
    border-radius: 16px;
    padding: 35px;
    margin-top: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: start;
}

.skill-info-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.skill-name {
    font-size: 32px;
    margin: 0;
    font-style: italic;
    color: #e8d5ff;
    font-weight: 700;
}

.skill-status {
    background: rgba(74, 63, 107, 0.5);
    border: 2px solid #7d6ba8;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skill-status p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #c8b8d8;
}

.skill-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.skill-status-indicator.enabled {
    background: #44ff88;
    box-shadow: 0 0 12px rgba(68, 255, 136, 0.6);
}

.skill-status-indicator.disabled {
    background: #7d6ba8;
    box-shadow: 0 0 8px rgba(125, 107, 168, 0.4);
}

.allocation-box {
    background: linear-gradient(135deg, #4a3f6b 0%, #35294f 100%);
    border: 3px solid #7d6ba8;
    padding: 25px;
    text-align: center;
    min-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.allocation-box h4 {
    margin: 0 0 12px 0;
    font-size: 13px;
    letter-spacing: 2px;
    color: #c8b8d8;
    font-weight: 700;
}

.allocation-count {
    font-size: 52px;
    font-weight: 800;
    margin: 12px 0;
    color: #f5f0e8;
    text-shadow: 0 2px 8px rgba(139, 111, 168, 0.4);
}

.allocation-info {
    font-size: 10px;
    margin: 12px 0;
    color: #c8b8d8;
    line-height: 1.4;
}

.requisition {
    font-size: 13px;
    margin-top: 12px;
    color: #e8d5ff;
    font-weight: 600;
}

.skill-description {
    font-size: 16px;
    line-height: 1.8;
    margin: 25px 0 0 0;
    color: #e8d5ff;
}

.highlight-green {
    color: #277418;
    font-weight: 700;
}

.highlight-purple {
    color: #be00c2;
    font-weight: 700;
}

.highlight-blue {
    color: #0076b7;
    font-weight: 700;
}

.highlight-orange {
    color: #ffb870;
    font-weight: 700;
}

.highlight-pink {
    color: #ff9bb4;
    font-weight: 700;
}

/* Loadout Section */
.loadout-section {
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 3px solid #7d6ba8;
    border-radius: 16px;
    padding: 35px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.loadout-section h2 {
    margin: 0 0 25px 0;
    color: #e8d5ff;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.loadout-section h3 {
    margin: 25px 0 15px 0;
    color: #e8d5ff;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid #7d6ba8;
    padding-bottom: 10px;
}

.loadout-section h4 {
    margin: 0 0 10px 0;
    color: #c8b8d8;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.loadout-class-select {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.loadout-class-select label {
    color: #c8b8d8;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loadout-class-select select {
    background: rgba(26, 20, 40, 0.8);
    color: #f5f0e8;
    border: 2px solid #7d6ba8;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.loadout-class-select select:focus {
    outline: none;
    border-color: #9d8bc8;
    box-shadow: 0 0 12px rgba(157, 139, 200, 0.4);
}

.class-description {
    color: #c8b8d8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    padding: 15px;
    background: rgba(74, 63, 107, 0.3);
    border-left: 3px solid #7d6ba8;
    border-radius: 6px;
}

.loadout-subsection {
    margin: 30px 0;
    padding: 25px;
    background: rgba(26, 20, 40, 0.4);
    border: 2px solid #7d6ba8;
    border-radius: 12px;
}

.specialization-rows {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.spec-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.spec-item,
.equip-item {
    background: linear-gradient(135deg, #4a3f6b 0%, #35294f 100%);
    border: 2px solid #7d6ba8;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-item:hover,
.equip-item:hover {
    background: linear-gradient(135deg, #5a4f7b 0%, #45395f 100%);
    border-color: #9d8bc8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(125, 107, 168, 0.6);
}

.spec-item.selected,
.equip-item.selected {
    background: linear-gradient(135deg, #6d5588 0%, #5a4573 100%);
    border-color: #e8d5ff;
    box-shadow: 0 0 20px rgba(139, 111, 168, 0.8);
}

.spec-item h5,
.equip-item h5 {
    margin: 0 0 5px 0;
    color: #e8d5ff;
    font-size: 14px;
    font-weight: 600;
}

.spec-item .category,
.equip-item .category {
    font-size: 11px;
    color: #9d8bc8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.firearm-dropdowns,
.equipment-dropdowns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.firearm-dropdown-group,
.equipment-dropdown-group,
.auxiliary-dropdown-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.firearm-dropdown-group label,
.equipment-dropdown-group label,
.auxiliary-dropdown-group label {
    color: #c8b8d8;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 150px;
}

.firearm-select,
.equipment-select,
.auxiliary-select {
    flex: 1;
    background: rgba(26, 20, 40, 0.8);
    color: #f5f0e8;
    border: 2px solid #7d6ba8;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.firearm-select optgroup {
    background: rgba(42, 31, 61, 0.95);
    color: #e8d5ff;
    font-weight: 700;
    font-size: 13px;
    padding: 8px;
}

.firearm-select option {
    background: rgba(26, 20, 40, 0.95);
    color: #f5f0e8;
    padding: 8px;
    font-weight: 500;
}

.firearm-select:focus,
.equipment-select:focus,
.auxiliary-select:focus {
    outline: none;
    border-color: #9d8bc8;
    box-shadow: 0 0 12px rgba(157, 139, 200, 0.4);
}

.firearm-select:hover,
.equipment-select:hover,
.auxiliary-select:hover {
    border-color: #9d8bc8;
}

.auxiliary-dropdown-group {
    margin-bottom: 20px;
}

.duplicate-toggle-group {
    margin-top: 8px;
    margin-left: 165px;
}

.duplicate-toggle-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8b8d8;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
    min-width: auto;
}

.duplicate-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #7ec7a8;
}

.item-details {
    background: linear-gradient(135deg, #4a3f6b 0%, #35294f 100%);
    border: 2px solid #7d6ba8;
    border-radius: 8px;
    padding: 20px;
    min-height: 120px;
}

.item-details h4 {
    margin: 0 0 12px 0;
    color: #e8d5ff;
    font-size: 18px;
}

.item-details p {
    margin: 0;
    color: #c8b8d8;
    font-size: 14px;
    line-height: 1.6;
}

.item-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.stat-item {
    background: rgba(26, 20, 40, 0.6);
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #7d6ba8;
}

.stat-label {
    font-size: 11px;
    color: #9d8bc8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    color: #e8d5ff;
    font-weight: 700;
}

.equipment-note {
    font-size: 12px;
    color: #9d8bc8;
    margin: 0 0 15px 0;
    padding: 10px;
    background: rgba(74, 63, 107, 0.3);
    border-radius: 6px;
    line-height: 1.5;
}

/* Disable selection tooltips/popup */
::selection {
    background: rgba(157, 139, 200, 0.3);
}

::-moz-selection {
    background: rgba(157, 139, 200, 0.3);
}

/* Hide any browser translation or selection popups */
[data-translate-tooltip],
[data-mce-bogus],
.translate-tooltip {
    display: none !important;
    visibility: hidden !important;
}

/* Calculations Section */
.calculations-section {
    background: linear-gradient(135deg, #3a2f4d 0%, #2a1f3d 100%);
    border: 2px solid #7d6ba8;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.calculations-section h2 {
    margin: 0 0 15px 0;
    color: #e8d5ff;
    font-size: 24px;
    font-weight: 600;
}

.calculations-section h3 {
    margin: 15px 0 10px 0;
    color: #c8b8d8;
    font-size: 18px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .deck-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    h1 {
        font-size: 36px;
    }

    .skill-header {
        grid-template-columns: 1fr;
    }

    .allocation-box {
        min-width: 100%;
    }
}

@media (max-width: 1024px) {
    .carousel {
        flex-direction: column;
        gap: 30px;
    }

    .carousel-btn {
        font-size: 36px;
        padding: 15px 20px;
        width: 100%;
    }

    .deck-name {
        font-size: 42px;
    }

    .deck-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .share-section {
        flex-direction: column;
    }

    .share-btn, .load-code-btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .deck-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .skill-icons {
        flex-wrap: wrap;
    }

    .skill-icon {
        flex: 0 0 calc(25% - 10px);
    }

    h1 {
        font-size: 28px;
    }

    .alphabet-nav {
        gap: 8px;
    }

    .letter {
        padding: 8px 12px;
        font-size: 16px;
    }

    .spec-row {
        grid-template-columns: 1fr;
    }

    .firearm-dropdown-group,
    .equipment-dropdown-group,
    .auxiliary-dropdown-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .firearm-dropdown-group label,
    .equipment-dropdown-group label,
    .auxiliary-dropdown-group label {
        min-width: 100%;
    }

    .firearm-select,
    .equipment-select,
    .auxiliary-select {
        width: 100%;
    }

    .skill-details {
        grid-template-columns: 1fr;
    }

    .allocation-box {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .deck-buttons {
        grid-template-columns: 1fr;
    }

    .skill-icon {
        flex: 0 0 calc(50% - 6px);
    }
}

/* Buff Breakdown Collapse */
.buff-breakdown.collapsed .breakdown-content {
    max-height: 0 !important;
    overflow: hidden;
    margin-bottom: 0;
}

.buff-breakdown.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.buff-breakdown .breakdown-content {
    transition: max-height 0.3s ease, margin-bottom 0.3s ease;
}

.buff-breakdown .toggle-icon {
    transition: transform 0.3s ease;
}

/* Buff Totals Grid */
.totals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.total-buff-item {
    padding: 12px;
    background: linear-gradient(135deg, rgba(125, 107, 168, 0.3) 0%, rgba(157, 126, 199, 0.2) 100%);
    border-left: 4px solid #9d7ec7;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.total-buff-item:hover {
    background: linear-gradient(135deg, rgba(125, 107, 168, 0.4) 0%, rgba(157, 126, 199, 0.3) 100%);
    transform: translateX(3px);
}

/* Breakdown Header */
.breakdown-header {
    cursor: pointer;
    padding: 12px;
    background: rgba(125, 107, 168, 0.2);
    border-radius: 6px;
    margin-bottom: 10px;
    user-select: none;
    transition: background 0.3s ease;
}

.breakdown-header:hover {
    background: rgba(125, 107, 168, 0.3);
}

/* Damage Resistance Calculator */
.dr-calculator {
    background: linear-gradient(135deg, rgba(58, 47, 77, 0.4) 0%, rgba(42, 31, 61, 0.4) 100%);
    border: 2px solid #7d6ba8;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.dr-calculator h3 {
    color: #e8d5ff;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
    border-bottom: 2px solid #7d6ba8;
    padding-bottom: 10px;
}

.dr-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.dr-section h4 {
    color: #c8b8d8;
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.dr-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(125, 107, 168, 0.15);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dr-stat:hover {
    background: rgba(125, 107, 168, 0.25);
    transform: translateX(3px);
}

.dr-stat.highlight {
    background: linear-gradient(135deg, rgba(125, 107, 168, 0.3) 0%, rgba(157, 126, 199, 0.2) 100%);
    border-left: 4px solid #9d7ec7;
}

.dr-stat.highlight:hover {
    background: linear-gradient(135deg, rgba(125, 107, 168, 0.4) 0%, rgba(157, 126, 199, 0.3) 100%);
}

.dr-label {
    color: #c8b8d8;
    font-weight: 500;
    font-size: 14px;
}

.dr-value {
    color: #e8d5ff;
    font-weight: bold;
    font-size: 16px;
}
