:root {
    --primary-red: #D70018;
    /* Main Tet Red */
    --primary-dark: #9A0008;
    --accent-gold: #FFD700;
    --text-dark: #2C3E50;
    --text-light: #546E7A;
    --bg-light: #FFF5F5;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(215, 0, 24, 0.15);
    --radius: 16px;
    --transition: 0.3s ease;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Encode Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CONTAINER */
.interactive-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-bottom: 20px;
}

/* DECORATIONS */
.tet-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: radial-gradient(circle at 50% -20%, #ffebee, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.decoration {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

.doc-coin {
    width: 60px;
    height: 60px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23FFD700' stroke-width='1'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M9 12h6M12 9v6' stroke='%23FFD700' stroke-width='1.5'/%3E%3C/svg%3E");
}

.coin-1 {
    top: 20%;
    left: 5%;
    transform: rotate(-15deg);
}

.coin-2 {
    bottom: 10%;
    right: 5%;
    width: 80px;
    height: 80px;
    transform: rotate(20deg);
}

.doc-flower {
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23D70018' stroke-width='1'%3E%3Cpath d='M12 2C12 2 14 8 20 8C20 8 14 14 12 22C12 22 10 14 4 8C4 8 10 8 12 2Z' fill='%23FFCDD2' fill-opacity='0.3'/%3E%3Ccircle cx='12' cy='12' r='2' fill='%23D70018'/%3E%3C/svg%3E");
}

.flower-1 {
    top: 5%;
    right: 15%;
    opacity: 0.2;
}


/* HERO SECTION */
.hero {
    position: relative;
    padding: 60px 20px 40px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
    z-index: 1;
}

.hero .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(215, 0, 24, 0.1);
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero .text-gold {
    color: var(--primary-red);
    text-shadow: 2px 2px 0px rgba(234, 182, 56, 0.2);
    display: block;
    font-size: 48px;
    margin-top: 5px;
}

.hero .sapo {
    font-size: 16px;
    color: var(--text-dark);
    max-width: 680px;
    margin: 0 auto 40px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* HERO STATS */
.stats_highlight {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(215, 0, 24, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F57F17;
}

.icon-svg {
    width: 24px;
    height: 24px;
}

.stat-info {
    text-align: left;
}

.stat-num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-red);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}


/* GLOBAL SECTIONS */
.section-block {
    padding: 40px 20px;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto;
    border-radius: 2px;
}

/* CARD GRIDS */
.card-grid {
    display: grid;
    gap: 24px;
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.big-gap {
    gap: 30px;
}

/* CARD STYLES */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.clickable-card {
    cursor: pointer;
}

.clickable-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(215, 0, 24, 0.2);
}

.clickable-card:hover .click-hint {
    opacity: 1;
    transform: translateY(0);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-dark));
    padding: 16px 20px;
    color: white;
    position: relative;
}

.header-gray {
    background: linear-gradient(135deg, #78909c, #455a64);
}

.location-badge {
    position: absolute;
    top: 12px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.centered {
    text-align: center;
    align-items: center;
}

.card .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
    width: 100%;
}

.card .row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.card .label {
    font-size: 14px;
    color: var(--text-light);
}

.card .value {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.highlight-text {
    color: var(--primary-red) !important;
    font-weight: 700 !important;
}

.text-muted {
    color: #888;
}

.summary-text {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.quote-box {
    margin-top: auto;
    background: #FFFDE7;
    padding: 10px;
    border-left: 3px solid #FFD700;
    font-size: 13px;
    font-style: italic;
    color: #444;
}

/* COMPARE BAR */
.compare-bar-wrap {
    margin-top: 15px;
    width: 100%;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.bar-track {
    background: #eee;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    background: #78909c;
    height: 100%;
    border-radius: 4px;
}

/* BUSINESS ICONS */
.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.red-icon {
    background: #ffebee;
    color: var(--primary-red);
}

.gray-icon {
    background: #eceff1;
    color: #546e7a;
}

/* CLICK HINT */
.click-hint {
    margin-top: 15px;
    font-size: 13px;
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: underline;
    opacity: 0.6;
    transform: translateY(2px);
    transition: 0.2s;
    text-align: center;
    width: 100%;
}

.click-hint.small {
    font-size: 12px;
    margin-top: 10px;
}

/* FILTERS */
.controls-section {
    background: #fafafa;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.select-wrapper {
    position: relative;
    min-width: 180px;
}

select {
    width: 100%;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

/* QA SECTION */
.qa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.qa-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 12px;
}

.qa-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.qa-icon {
    width: 28px;
    height: 28px;
    background: #FFEBEE;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.qa-header h4 {
    font-size: 15px;
    margin: 0;
    line-height: 1.4;
}

.qa-body {
    font-size: 14px;
    color: var(--text-light);
}

.qa-body ul {
    padding-left: 20px;
    margin-top: 8px;
}

/* MANAGEMENT ROLE */
.management-role {
    margin-top: 30px;
    background: #E3F2FD;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #BBDEFB;
}

.management-role h3 {
    font-size: 16px;
    color: #0D47A1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.management-role p {
    font-size: 14px;
    color: #1565C0;
}

/* CONCLUSION */
.conclusion-section {
    text-align: center;
    padding-bottom: 40px;
    /* Reduced to make room for footer */
}

.conclusion-content {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.highligth-p {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.signature-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    opacity: 0.5;
}

.line {
    height: 1px;
    width: 50px;
    background: var(--primary-red);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
}

/* FOOTER CREDIT */
.footer-design {
    text-align: center;
    font-size: 12px;
    color: #90A4AE;
    margin-top: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* POPUP */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: white;
    width: 100%;
    max-width: 500px;
    /* Wider for reading text */
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    /* Max height for long text */
}

.popup-overlay.active .popup-container {
    transform: scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 50%;
    transition: 0.2s;
    display: flex;
    z-index: 10;
}

.popup-close:hover {
    background: #f5f5f5;
    color: var(--primary-red);
}

.popup-body h3 {
    font-size: 22px;
    color: var(--primary-red);
    margin-bottom: 10px;
    flex-shrink: 0;
    padding-right: 20px;
}

.popup-divider {
    height: 2px;
    width: 40px;
    background: var(--accent-gold);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.popup-scroll-area {
    overflow-y: auto;
    padding-right: 10px;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text-dark);
}

/* CUSTOM SCROLLBAR for popup */
.popup-scroll-area::-webkit-scrollbar {
    width: 6px;
}

.popup-scroll-area::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.popup-scroll-area::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.popup-scroll-area::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}


/* RESPONSIVE */
@media (max-width: 850px) {
    .three-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 26px;
    }

    .hero .text-gold {
        font-size: 32px;
    }

    .two-col,
    .three-col,
    .qa-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
    }

    .select-wrapper {
        width: 100%;
    }
}