/* CSS Reset and Variables */
:root {
    --bg-main: #020617;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-card-hover: rgba(51, 65, 85, 0.8);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-heavy: rgba(255, 255, 255, 0.2);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --accent-1: #10b981;
    /* green */
    --accent-2: #3b82f6;
    /* blue */
    --accent-tax: #ec4899;
    /* pink */
    --accent-warning: #f59e0b;
    --gradient-bar: linear-gradient(90deg, #10b981, #06b6d4);
    --gradient-bar-tax: linear-gradient(90deg, #ec4899, #8b5cf6);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.interactive-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mt-4 {
    margin-top: 40px;
}

/* Glassmorphism utility */
.glass-box {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Typography */
h1.main-title {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-sub {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-main {
    font-size: 2.8rem;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(to right, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.highlight-number {
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #d97706, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    filter: drop-shadow(0px 5px 2px rgba(0, 0, 0, 0.5));
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

h2.section-title,
.overview-box h2 {
    font-size: 1.6rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-heavy);
    padding-bottom: 15px;
}

h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 5px;
    margin-top: 15px;
}

.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 600;
    color: #fff;
}

/* Checklist */
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.check-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-1);
    stroke-width: 3;
    fill: none;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.styled-table thead tr {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-align: left;
    border-bottom: 2px solid var(--accent-2);
}

.styled-table th,
.styled-table td {
    padding: 15px 20px;
    white-space: nowrap;
}

.styled-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.styled-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid var(--accent-2);
}

.val-profit {
    color: var(--accent-1);
    font-weight: 700;
}

.val-tax {
    color: var(--accent-tax);
    font-weight: 700;
}

/* Badges */
.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-realestate {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.badge-bank {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-industry {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-consumer {
    background: rgba(236, 72, 153, 0.2);
    color: #f9a8d4;
}

.badge-aviation {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}


/* Expandable Cards Grid */
.expandable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 20px;
}

.expand-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.expand-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.card-header .icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    margin-bottom: 15px;
}

.card-header .icon-wrap svg {
    width: 24px;
    height: 24px;
}

.card-header h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.card-header .desc {
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    font-size: 0.95rem;
}

.btn-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle span {
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.card-header:hover .btn-toggle {
    background: var(--accent-2);
    border-color: var(--accent-2);
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid transparent;
}

/* Active state */
.expand-card.active .card-body {
    max-height: 2000px;
    transition: max-height 0.6s ease-in-out;
    border-top: 1px solid var(--border-color);
}

.expand-card.active .btn-toggle {
    background: var(--accent-2);
    border-color: var(--accent-2);
}

.expand-card.active .btn-toggle span {
    transform: rotate(180deg);
}

.detail-content {
    padding: 25px;
    color: var(--text-secondary);
}

.detail-content ul {
    padding-left: 20px;
    margin: 10px 0;
}

.detail-content li {
    margin-bottom: 5px;
}

.quote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--accent-2);
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    color: #bae6fd;
    font-style: italic;
    font-size: 0.95rem;
}

/* Interactive Chart toggles */
.toggle-interactive {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.toggle-btn.active {
    background: var(--accent-1);
    color: #000;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

#taxBtn.active {
    background: var(--accent-tax);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
    color: #fff;
}

/* Bar Chart inside container */
.chart-container {
    margin-bottom: 20px;
}

.bar-wrap {
    margin-bottom: 18px;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.bar-label {
    font-weight: 600;
    color: #fff;
}

.bar-value {
    font-weight: 700;
    text-align: right;
}

.bar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    height: 18px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 8px;
    width: 0;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
}

.chart-notes {
    margin-top: 30px;
}

.highlight-box {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    padding: 20px;
}

.highlight-box h3 {
    color: #93c5fd;
    font-size: 1.1rem;
}

.highlight-box ul {
    list-style: square;
    padding-left: 20px;
    color: var(--text-secondary);
}

.highlight-box li {
    margin-bottom: 8px;
}

.hl-text {
    font-weight: 600;
    color: #fff;
}

.text-green {
    color: var(--accent-1);
}

.text-blue {
    color: #60a5fa;
}

/* Conclusion */
.conclusion-box {
    margin-top: 40px;
}

.icon-wrap.large {
    width: 70px;
    height: 70px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-warning);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.icon-wrap.large svg {
    width: 34px;
    height: 34px;
}

.conclusion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.c-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    position: relative;
    padding-top: 35px;
}

.c-num {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 34px;
    height: 34px;
    background: var(--accent-warning);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}

.c-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.c-item strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.final-word {
    text-align: center;
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.7;
    margin-top: 30px;
    border-top: 1px solid var(--border-heavy);
    padding-top: 20px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

@media (max-width: 900px) {
    .expandable-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .title-sub {
        font-size: 1.1rem;
    }

    .title-main {
        font-size: 1.6rem;
        gap: 8px;
    }

    .highlight-number {
        font-size: 3.8rem;
    }

    .styled-table th,
    .styled-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }

    .table-responsive {
        border: 1px solid var(--border-color);
        border-radius: 10px;
    }

    .expandable-grid {
        grid-template-columns: 1fr;
    }

    .conclusion-grid {
        grid-template-columns: 1fr;
    }
}