* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000000;
    color: #d1d1d6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    padding: 9px 8px;
    padding-bottom: 0px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    justify-content: space-evenly;

}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Web (Desktop) - Center header-top */
@media (min-width: 769px) {
    .header-top {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Mobile - Keep sides aligned */
@media (max-width: 768px) {
    .header-top {
        justify-content: space-between;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

#sidebar-toggle-btn {
    background: none;
    border: none;
    color: #4eaaff;
    cursor: pointer;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.2s;
}

#sidebar-toggle-btn:hover {
    background-color: rgba(78, 170, 255, 0.1);
}

.sidebar-menu {
    position: absolute;
    top: 60px;
    left: 20px;
    background-color: #1b1c1d;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1001;
}

.sidebar-option {
    padding: 12px 16px;
    color: #d1d1d6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sidebar-option:hover {
    background-color: rgba(78, 170, 255, 0.1);
    color: #4eaaff;
}

.sidebar-menu.hidden {
    display: none;
}

.page-selector {
    position: relative;
}

#page-selector-btn {
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #d1d1d6;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

#page-selector-btn:hover {
    background-color: #333;
}

.page-icon {
    width: 20px;
    height: 20px;
    stroke: #4eaaff;
}

.page-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    background-color: #1b1c1d;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1001;
}

.page-option {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.page-option:hover {
    background-color: rgba(78, 170, 255, 0.1);
}

.page-option.active {
    background-color: rgba(78, 170, 255, 0.2);
}

.dropdown-icon {
    width: 20px;
    height: 20px;
}

.page-dropdown.hidden {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #f3f3f3;
}

.header-logo {
    width: 32px;
    height: 32px;
}

/* Content Area */
.content-area {
    margin-top: 130px;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Filter Panel */
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 0;
    padding-bottom: 8px;
    background-color: transparent;
    border-top: 1px solid #2a2a2a;
        justify-content: center;
}

.filter-btn {
    padding: 7px 14px;
    background-color: #000000;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #4eaaff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.filter-btn:hover {
    background-color: #333;
}

.filter-btn.active {
    background-color: rgba(78, 170, 255, 0.15);
    border-color: #4eaaff;
    color: #4eaaff;
}

.filter-badge {
    position: absolute;
    top: -6px;
    right: -2px;
    background-color: #ff4757;
    color: #ffffff;
    font-size: 8px;
    font-weight: 500;

    height: 16px;
    width: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    width: 100%;
    padding: 10px 0px;
    padding-bottom: 8px;
    background-color: transparent;
    border-top: 1px solid #2a2a2a;
}

/* Web - Search Container */
@media (min-width: 769px) {
    .search-container {
        margin: 8px 100px 2px 100px;
    }
}

/* Mobile - Search Container */
@media (max-width: 768px) {
    .search-container {
        margin: 8px auto 2px auto;
    }
}

.search-input {
    flex: 1;
    padding: 7px 9px;
    background-color: #000000;
    border: 2px solid #4eaaff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Segoe UI', Roboto, sans-serif;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: #4eaaff;
    background-color: #1a1a1a;
}

.search-input::placeholder {
    color: #888;
}

/* Cards Container */
#cards-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Card Item */
.card-item {
    border-radius: 12px;
    position: relative;
    perspective: 1000px;
    min-height: 266px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.card-front {
    background: linear-gradient(93deg, #000000 0%, #2a2a2a 100%);
    border: 1px solid #3a3a3a;
    padding: 8px;
    padding-top: 17px;
    min-height: 260px;
}

.card-back {
    
    background: linear-gradient(91deg, #252525 0%, #0a0a0a 100%);
  
    transform: rotateY(180deg);
    padding: 8px;
        padding-top: 5px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 170, 255, 0.2);
}

/* Best Offer Card */
.card-item.best-offer {
    border: 2px solid #4eaaff;
    box-shadow: 0 0 16px rgba(78, 170, 255, 0.3);
}

.best-badge {
    position: absolute;
    top: -12px;
    right: 42px;
    background: linear-gradient(90deg, #4eaaff, #6bb8ff);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(78, 170, 255, 0.4);
    z-index: 1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-title-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #fff;
    padding: 2px;
}

.card-title-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bank-name {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.card-name {
    font-size: 15px;
    color: #ffffff;
    font-weight: 500;
}

.card-info-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.welcome-amount, .annual-fee {
    font-size: 12px;
    color: #999;
}

.welcome-amount .amount {
    font-weight: 700;
    color: #4eaaff;
    font-size: 16px;
    margin-left: 4px;
}

.annual-fee .fee {
    font-weight: 700;
    font-size: 16px;
    margin-left: 4px;
    /* Renk dinamik olarak JavaScript'te ayarlanıyor: 0₺ = yeşil, >0₺ = kırmızı */
}

/* Card Features (Icons) */
.card-features {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
    padding: 10px;
    border-radius: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.feature-icon-wrapper {
    width: 44px;
    min-height: 50px;


    padding: 5px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 0.2s, background-color 0.2s;
}

.feature-icon-wrapper:hover {
    transform: scale(1.1);
    background-color: rgba(78, 170, 255, 0.1);
}

.feature-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

.multiplier-text {
    font-size: 9px;
    font-weight: 600;
    color: #4eaaff;
    margin-top: -2px;
    text-align: center;
    line-height: 1;
}

/* Card Score (Hangibankam Skor) */
.card-score-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    margin-left: auto;
    padding: 5px 10px;
    background-color: rgba(78, 170, 255, 0.08);
    border-radius: 8px;
}

.score-label {
    font-size: 10px;
    font-weight: 600;
    color: #4eaaff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-stars {
    font-size: 16px;
    line-height: 1;
    letter-spacing: 2px;
}

/* Card Description */
.card-description {
    font-size: 13px;
    color: #999;
    line-height: 1.6;
    margin-bottom: 8px;
    padding: 2px;
    background-color: rgba(78, 170, 255, 0.05);
    border-radius: 8px;
    
}

/* Card Footer */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.details-link {
    color: #4eaaff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.details-link:hover {
    color: #6bb8ff;
}

.apply-btn {
    background: linear-gradient(135deg, #4eaaff 0%, #3a8fd9 100%);
    border: none;
    color: #ffffff;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(78, 170, 255, 0.4);
}

/* Info Section */
.info-section {
    margin-top: 50px;
    padding: 0;
    background: transparent;
}

.info-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.info-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4eaaff, #6bb8ff);
    border-radius: 2px;
}

.info-item {
    margin-bottom: 25px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(27, 28, 29, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
    border: 1px solid rgba(78, 170, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #4eaaff, #6bb8ff);
}

.info-item:hover {
    transform: translateY(-2px);
    border-color: rgba(78, 170, 255, 0.4);
    box-shadow: 0 6px 20px rgba(78, 170, 255, 0.15);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-subtitle {
    font-size: 18px;
    font-weight: 700;
    color: #4eaaff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-subtitle:before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4eaaff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(78, 170, 255, 0.6);
}

.info-text {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}

.info-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.info-list > li {
    font-size: 14px;
    color: #d1d1d6;
    line-height: 1.9;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
}

.info-list > li:before {
    content: "▸";
    color: #4eaaff;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    left: 8px;
    top: 1px;
}

.info-list > li:last-child {
    margin-bottom: 0;
}

.info-list > li strong {
    color: #ffffff;
    font-weight: 600;
}

.info-sublist {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    margin-bottom: 8px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 2px solid rgba(78, 170, 255, 0.3);
}

.info-sublist > li {
    font-size: 13px;
    color: #b8b8bd;
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.info-sublist > li:before {
    content: "→";
    color: #6bb8ff;
    font-size: 12px;
    position: absolute;
    left: 4px;
    font-weight: bold;
}

.info-sublist > li:last-child {
    margin-bottom: 0;
}

.info-link {
    color: #4eaaff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(78, 170, 255, 0.1);
    border-bottom: 2px solid transparent;
}

.info-link:hover {
    color: #6bb8ff;
    background-color: rgba(78, 170, 255, 0.2);
    border-bottom-color: #4eaaff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .site-title {
        font-size: 16px !important;
        margin: 0 !important;
        font-weight: 500 !important;
        color: #cccccc;
    }

    .header-logo {
        width: 28px;
        height: 28px;
    }

    .content-area {
        padding: 4px;
        margin-top: 165px;
    }

    .filter-panel {
        padding: 6px 0;
        gap: 4px;
        justify-content: flex-start;
    }

    .filter-btn {
        padding: 7px 7px;
        font-size: 11px;
        padding-left: 5px;
    }

    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 1px solid #494747;
        padding-bottom: 9px;
    }

    .card-info-section {
        align-items: flex-end;
    }

    .bank-logo {
        width: 40px;
        height: 40px;
    }

    .card-name {
        font-size: 14px;
    }

    .bank-name {
        font-size: 12px;
    }

    .welcome-amount, .annual-fee {
        font-size: 11px;
    }

    .welcome-amount .amount, .annual-fee .fee {
        font-size: 14px;
    }

    .card-description {
        font-size: 12px;
    }

    .card-features {
        padding: 0px;
        gap: 6px;
    }

    .feature-icon-wrapper {
        width: 40px;
        min-height: 48px;
        padding: 5px;
    }

    .feature-icon {
        width: 26px;
        height: 26px;
    }

    .multiplier-text {
        font-size: 13px;
    }

    .card-score-container {
        padding: 4px 8px;
    }

    .score-label {
        font-size: 9px;
    }

    .score-stars {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .filter-icon {
        width: 20px;
        height: 20px;
    }

    .card-footer {
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .apply-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .details-link {
        font-size: 12px;
    }

    .info-section {
        margin-top: 30px;
        padding: 0;
    }

    .info-title {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }

    .info-title:after {
        width: 60px;
        height: 2px;
    }

    .info-item {
        padding: 18px;
        margin-bottom: 20px;
    }

    .info-subtitle {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .info-subtitle:before {
        width: 6px;
        height: 6px;
    }

    .info-text {
        font-size: 13px;
    }

    .info-list > li {
        font-size: 13px;
        padding-left: 24px;
        margin-bottom: 10px;
    }

    .info-list > li:before {
        left: 6px;
        font-size: 14px;
    }

    .info-sublist {
        padding: 10px;
        margin-top: 8px;
    }

    .info-sublist > li {
        font-size: 12px;
        padding-left: 18px;
        margin-bottom: 5px;
    }

    .info-sublist > li:before {
        left: 3px;
    }

    .info-link {
        padding: 2px 4px;
        font-size: 13px;
    }
}

/* Card Back - Calculation Styles */
.back-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 4px;
    border-bottom: 1px solid #3a3a3a;
}

.back-title {
    color: #4eaaff;
    font-size: 17px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.back-content-calc {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    flex: 1;
    width: 100%;
    overflow: visible;
    align-items: stretch;
    min-height: 0;
}

.back-content-calc > div[style*="font-size: 11px"] {
    width: 100%;
    order: 3;
}

.calc-inputs {
    flex: 0 0 48%;
    max-width: 46%;
    display: flex;
    flex-direction: column;
    gap: 13px;
    order: 1;
}

.calc-input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.calc-input-group label {
    position: absolute;
    left: 6px;
    top: -8px;
    background: linear-gradient(to bottom, transparent 0%, transparent 40%, #1a1a1a 40%, #1a1a1a 100%);
    padding: 0 2px;
    color: #4d8fcd;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.input-suffix {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 10px;
    font-weight: 500;
    pointer-events: none;
}

.input-suffix-tl {
    font-size: 12px;
}

.input-suffix-percent {
    font-size: 12px;
}

.calc-input {
    padding: 8px 32px 4px 6px;
    background-color: #1a1a1a;
    border: 1px solid #315c83;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    text-align: right;
}

.calc-input:focus {
    border-color: #4eaaff;
}

/* Date input wrapper */
.date-input-wrapper {
    position: relative;
}

.date-input-display {
    cursor: pointer;
}

.date-input-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    border: none;
    background: transparent;
}

.date-input-hidden:focus {
    opacity: 0.01;
}

.date-picker-icon {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    cursor: pointer;
    pointer-events: none;
    z-index: 1;
}

/* Date input beyaz icon */
.calc-input[type="date"] {
    color-scheme: revert;
    padding-right: 3px;
}

.calc-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
    margin-left: 2px;
}

.calculate-delay-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #4eaaff 0%, #0ea5e9 100%);
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 9px;
}

.calculate-delay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 170, 255, 0.4);
}

.calc-results {
    flex: 0 0 48%;
    max-width: 48%;
    max-height: 104px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    justify-content: center;
    padding: 7px;
   margin-top: 25px;
    border-radius: 6px;
    
    order: 2;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
        align-items: flex-end;
}

.result-label {
    color: #aaa;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.result-value {
    color: #4eaaff;
    font-size: 18px;
    font-weight: 700;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4eaaff;
}

.checkbox-container label {
    color: #aaa;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.calc-btn {
    padding: 8px 16px;
    background-color: #2a2a2a;
    border: 2px solid #3a3a3a;
    border-radius: 6px;
    color: #4eaaff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-btn:hover {
    background-color: rgba(78, 170, 255, 0.15);
    border-color: #4eaaff;
}

.calc-btn svg {
    stroke: #4eaaff;
}

/* Info Icon Styles */
.info-icon {
    display: inline-block;
    margin-left: 6px;
    width: 24px;
    height: 24px;
    
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    background-image: url('/static/cards/info_help.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;}

.info-icon:hover {
    transform: scale(1.2);
    filter: brightness(0) saturate(100%) invert(56%) sepia(89%) saturate(2000%) hue-rotate(180deg) brightness(110%) contrast(101%);
}

/* Info Popup Styles */
.info-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #4eaaff;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(78, 170, 255, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.info-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(78, 170, 255, 0.3);
}

.info-popup-header h3 {
    color: #4eaaff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.info-popup-close {
    background: none;
    border: none;
    color: #d1d1d6;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-popup-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: rotate(90deg);
}

.info-popup-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: #d1d1d6;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.info-popup-body::-webkit-scrollbar {
    width: 8px;
}

.info-popup-body::-webkit-scrollbar-track {
    background: rgba(78, 170, 255, 0.1);
    border-radius: 4px;
}

.info-popup-body::-webkit-scrollbar-thumb {
    background: rgba(78, 170, 255, 0.4);
    border-radius: 4px;
}

.info-popup-body::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 170, 255, 0.6);
}

.info-popup-body strong {
    color: #e1e1e6;
    font-weight: 600;
}

@media (max-width: 768px) {
    .info-popup-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .info-popup-header {
        padding: 5px 20px;
    }

    .info-popup-header h3 {
        font-size: 16px;
    }

    .info-popup-body {
        padding: 10px;
        font-size: 12px;
    }
}
