/**
 * ========================================
 * INTENSESERVERS - GAMES PAGE CSS
 * Black, Grey, Red Theme
 * Version 3.0
 * ========================================
 */

/* ===== VARIABLES ===== */
:root {
    --bg-pure-black: #000000;
    --bg-dark: #0a0a0a;
    --bg-darker: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-elevated: #2a2a2a;
    --bg-input: #161616;
    
    --border-dark: #2a2a2a;
    --border-medium: #333333;
    --border-light: #444444;
    
    --red-primary: #dc2626;
    --red-bright: #ef4444;
    --red-light: #f87171;
    --red-dark: #b91c1c;
    --red-glow: rgba(220, 38, 38, 0.4);
    
    --text-white: #ffffff;
    --text-grey-100: #f5f5f5;
    --text-grey-300: #d4d4d4;
    --text-grey-400: #a3a3a3;
    --text-grey-500: #737373;
    
    --glow-sm: 0 0 10px rgba(220, 38, 38, 0.3);
    --glow-md: 0 0 20px rgba(220, 38, 38, 0.4);
    --glow-lg: 0 0 40px rgba(220, 38, 38, 0.3);
}

/* ========================================
   SECTION 1: GAMES HEADER
   ======================================== */

.games-header {
    padding: 120px 0 60px;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-pure-black) 100%);
    position: relative;
    overflow: hidden;
}

.games-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.games-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.games-header .section-header {
    position: relative;
    z-index: 2;
}

.games-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-white), var(--red-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.games-header p {
    text-align: center;
    color: var(--text-grey-400);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   SECTION 2: GAMES CONTROLS
   ======================================== */

.games-section {
    padding: 40px 0 60px;
    background: var(--bg-pure-black);
}

.games-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-input {
    width: 100%;
    padding: 0.85rem 0.85rem 0.85rem 2.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
    background: var(--bg-card-hover);
}

.search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-grey-500);
    pointer-events: none;
}

.filter-select {
    padding: 0.85rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
}

.filter-select:hover {
    border-color: var(--red-primary);
    background: var(--bg-card-hover);
}

.filter-select option {
    background: var(--bg-dark);
    color: var(--text-white);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.view-btn {
    padding: 0.7rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    color: var(--text-grey-500);
    cursor: pointer;
    transition: all 0.3s;
}

.view-btn:hover,
.view-btn.active {
    border-color: var(--red-primary);
    color: var(--red-bright);
    background: rgba(220, 38, 38, 0.1);
}

/* ========================================
   SECTION 3: GAMES GRID & CARDS
   ======================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--red-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), var(--glow-sm);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
}

.game-image {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-darker), var(--bg-card));
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.game-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s;
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.game-info > p {
    color: var(--text-grey-400);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.game-info .game-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-darker);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.65rem;
    color: var(--text-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red-bright);
}

.game-pricing {
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.game-pricing .price-display {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-grey-500);
    text-transform: uppercase;
}

.game-pricing .price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--red-bright);
}

.game-pricing .price-period {
    font-size: 0.75rem;
    color: var(--text-grey-500);
}

.game-actions {
    margin-top: auto;
}

.configure-btn {
    width: 100%;
}

/* ========================================
   SECTION 4: GAMES STATS
   ======================================== */

.games-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-bright);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-grey-400);
}

/* ========================================
   SECTION 5: REQUEST GAME CTA
   ======================================== */

.request-game-section {
    padding: 60px 0;
    background: linear-gradient(180deg, var(--bg-pure-black), var(--bg-dark));
}

.request-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.request-cta h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.request-cta p {
    color: var(--text-grey-400);
    margin-bottom: 1.5rem;
}

/* ========================================
   SECTION 6: MODAL BASE
   ======================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-darker);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--glow-lg);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
}

.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-white);
    margin: 0;
}

.modal-close {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-grey-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    color: white;
    background: var(--red-primary);
    border-color: var(--red-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem;
}

/* ========================================
   SECTION 7: GAME INFO IN MODAL
   ======================================== */

#game-info .game-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    margin-bottom: 1.5rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: contain;
    background: var(--bg-darker);
    padding: 0.5rem;
    border: 2px solid var(--red-primary);
}

#game-info .game-header .game-details {
    flex: 1;
    display: block;
    padding: 0;
    background: none;
    margin: 0;
}

#game-info .game-header .game-details h3 {
    font-size: 1.35rem;
    margin-bottom: 0.3rem;
    color: var(--text-white);
}

#game-info .game-header .game-details p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text-grey-400);
}

.game-requirements {
    display: flex;
    gap: 1rem;
}

.requirement {
    font-size: 0.8rem;
    color: var(--text-grey-400);
    padding: 0.3rem 0.6rem;
    background: var(--bg-darker);
    border-radius: 4px;
    border: 1px solid var(--border-dark);
}

.requirement span {
    color: var(--red-bright);
    font-weight: 700;
}

/* ========================================
   SECTION 8: PACKAGE SELECTION
   ======================================== */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--red-bright));
    transform: scaleX(0);
    transition: transform 0.3s;
    border-radius: 10px 10px 0 0;
}

.package-card:hover,
.package-card.selected {
    border-color: var(--red-primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.package-card:hover::before,
.package-card.selected::before {
    transform: scaleX(1);
}

.package-header h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.2rem;
}

.package-header p {
    font-size: 0.8rem;
    color: var(--text-grey-500);
    margin-bottom: 0.75rem;
}

.package-card .package-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.package-card .package-price .currency {
    font-size: 1rem;
    color: var(--red-bright);
}

.package-card .package-price .amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red-bright);
    line-height: 1;
}

.package-card .package-price .period {
    font-size: 0.8rem;
    color: var(--text-grey-500);
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-features li {
    padding: 0.35rem 0;
    color: var(--text-grey-300);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.package-features li::before {
    content: '✓';
    color: var(--red-bright);
    font-weight: bold;
}

/* ========================================
   SECTION 9: CUSTOM CALCULATOR
   ======================================== */

.calculator-section {
    background: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.calculator-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.calculator-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.25rem;
}

.calculator-header p {
    color: var(--text-grey-500);
    font-size: 0.85rem;
    margin: 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
}

/* Resource Controls */
.resource-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.resource-controls h4 {
    display: none;
}

.control-group {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.control-group:hover {
    border-color: var(--border-medium);
    background: var(--bg-card-hover);
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.control-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
}

.control-display {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(220, 38, 38, 0.08));
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.control-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red-bright);
    line-height: 1;
}

.control-unit {
    font-size: 0.85rem;
    color: var(--text-grey-400);
    font-weight: 500;
}

.dual-input {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.slider-container {
    flex: 1;
    position: relative;
}

.custom-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-darker);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-light), var(--red-primary));
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.6);
}

.custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red-light), var(--red-primary));
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.5);
}

.precise-input {
    width: 70px;
    padding: 0.6rem 0.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 1rem;
    text-align: center;
    font-weight: 700;
    transition: all 0.2s;
}

.precise-input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.control-description {
    margin-top: 0.25rem;
}

.control-description small {
    color: var(--text-grey-500);
    font-size: 0.75rem;
}

/* ========================================
   SECTION 10: ANALYSIS PANEL
   ======================================== */

.analysis-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.analysis-panel h4 {
    display: none;
}

/* Pricing Display */
.pricing-display {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.06));
    border: 2px solid var(--red-primary);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}

.pricing-main {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.pricing-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-grey-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15rem;
}

.pricing-amount .currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--red-bright);
}

.pricing-amount .price-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--red-bright);
    line-height: 1;
    text-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
}

.pricing-amount .price-period {
    font-size: 0.9rem;
    color: var(--text-grey-400);
}

.pricing-breakdown h5 {
    font-size: 0.8rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-align: left;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    color: var(--text-grey-300);
    font-size: 0.85rem;
}

.breakdown-item .breakdown-label {
    color: var(--text-grey-400);
}

.breakdown-item .breakdown-cost {
    color: var(--text-white);
    font-weight: 600;
}

.breakdown-total {
    border-top: 1px solid rgba(220, 38, 38, 0.3);
    margin-top: 0.35rem;
    padding-top: 0.35rem;
}

.breakdown-total .breakdown-label,
.breakdown-total .breakdown-cost {
    color: var(--red-bright);
    font-weight: 700;
}

/* Analysis Section */
.analysis-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.875rem;
    border: 1px solid var(--border-dark);
}

.analysis-section h5 {
    font-size: 0.8rem;
    color: var(--text-white);
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.analysis-card {
    background: var(--bg-darker);
    padding: 0.6rem;
    border-radius: 6px;
    text-align: center;
}

.analysis-card h6 {
    font-size: 0.65rem;
    color: var(--text-grey-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.analysis-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red-bright);
    margin: 0;
}

/* ========================================
   SECTION 11: PACKAGE COMPARISON
   ======================================== */

.comparison-section {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 0.875rem;
    border: 1px solid var(--border-dark);
}

.comparison-section h5 {
    font-size: 0.8rem;
    color: var(--text-white);
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 80px 70px;
    align-items: center;
    padding: 0.5rem 0.6rem;
    background: var(--bg-darker);
    border-radius: 4px;
    font-size: 0.85rem;
}

.comparison-row .package-name {
    font-weight: 600;
    color: var(--text-white);
}

.comparison-row .package-price {
    color: var(--text-grey-400);
    text-align: center;
    font-size: 0.8rem;
}

.comparison-status {
    text-align: center;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.comparison-status.lower {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.comparison-status.higher {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

.comparison-status.similar {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

/* ========================================
   SECTION 12: CALCULATOR ACTIONS
   ======================================== */

.calculator-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    justify-content: center;
}

#reset-calculator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-grey-400);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

#reset-calculator:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
    color: var(--text-white);
}

#reset-calculator svg {
    width: 14px;
    height: 14px;
}

/* ========================================
   SECTION 13: CUSTOM TOGGLE BUTTON
   ======================================== */

.custom-toggle {
    text-align: center;
    margin: 1rem 0 1.5rem;
}

#custom-config-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px dashed var(--border-medium);
    border-radius: 8px;
    color: var(--text-grey-400);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

#custom-config-btn:hover {
    border-color: var(--red-primary);
    border-style: solid;
    color: var(--text-white);
    background: rgba(220, 38, 38, 0.05);
}

#custom-config-btn.active {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--red-primary);
    border-style: solid;
    color: var(--red-bright);
}

#custom-config-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

#custom-config-btn:hover svg {
    transform: rotate(45deg);
}

#custom-config-btn.active svg {
    transform: rotate(180deg);
}

/* ========================================
   SECTION 14: MODAL ACTIONS
   ======================================== */

.modal-actions {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: var(--bg-dark);
}

#proceed-btn {
    min-width: 280px;
}

#proceed-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   SECTION 15: REQUEST MODAL
   ======================================== */

.request-form .form-group {
    margin-bottom: 1rem;
}

.request-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: 600;
}

.request-form .form-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 0.95rem;
}

.request-form .form-input:focus {
    outline: none;
    border-color: var(--red-primary);
}

.request-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

/* ========================================
   SECTION 16: SCROLLBAR
   ======================================== */

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 8px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 8px;
}

/* ========================================
   SECTION 17: RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-width: 95%;
    }
}

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .analysis-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .games-header {
        padding: 80px 0 40px;
    }

    .games-header h1 {
        font-size: 2rem;
    }

    .filter-controls {
        flex-direction: column;
    }

    .search-container {
        max-width: 100%;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        border-radius: 12px;
    }

    #game-info .game-header {
        flex-direction: column;
        text-align: center;
    }

    .game-requirements {
        justify-content: center;
    }

    .games-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    #proceed-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .calculator-section {
        padding: 1rem;
    }

    .control-group {
        padding: 1rem;
    }

    .game-image {
        height: 120px;
    }

    .game-image img {
        width: 70px;
        height: 70px;
    }

    .package-card .package-price .amount {
        font-size: 1.75rem;
    }

    .pricing-amount .price-value {
        font-size: 2.25rem;
    }

    .comparison-row {
        grid-template-columns: 1fr 70px 60px;
        font-size: 0.8rem;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }
}
