/* ==========================================================================
   TD Popup Announcement - Stylesheet (v1.0.0)
   Includes 3 Presets: Style 1 (Thunder Dark Gold), Style 2 (Modern Light), Style 3 (Cyberpunk)
   ========================================================================== */

/* OVERLAY */
.td-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 14, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.td-popup-overlay.td-active {
    opacity: 1;
    visibility: visible;
}

/* BASE MODAL CONTAINER */
.td-popup-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.td-popup-overlay.td-active .td-popup-modal {
    transform: scale(1) translateY(0);
}

.td-hidden {
    display: none !important;
}

/* SVG VECTOR ICON UTILITY */
.td-icon-svg {
    display: inline-block;
    vertical-align: -0.15em;
    margin-right: 4px;
    fill: currentColor;
    flex-shrink: 0;
}

/* CLOSE BUTTON (COMMON) */
.td-popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

/* ==========================================================================
   STYLE 1: THUNDER DARK GOLD (TRÙNG KHỚP MẪU ẢNH)
   ========================================================================== */
.td-popup-style1 {
    background: linear-gradient(180deg, #181933 0%, #0d0e1c 100%);
    border: 1px solid rgba(138, 100, 255, 0.25);
    border-radius: 24px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(100, 70, 255, 0.15);
    color: #ffffff;
}

.td-popup-style1 .td-popup-close-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #a0a2c0;
}
.td-popup-style1 .td-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: rotate(90deg);
}

.td-popup-style1 .td-popup-top-badge span {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #d0c0ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    display: inline-block;
}

.td-popup-style1 .td-popup-title {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 16px 0 6px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.td-popup-style1 .td-popup-subtitle {
    font-size: 13px;
    color: #a0a2c0;
    margin: 0 0 20px 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Metallic Gold Card */
.td-popup-style1 .td-popup-highlight-card {
    background: linear-gradient(135deg, #a67c1e 0%, #e5c158 50%, #9e741b 100%);
    border-radius: 18px;
    padding: 20px 16px;
    border: 1px solid #ffea9f;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), 0 10px 25px rgba(0,0,0,0.4);
    text-align: center;
    margin-bottom: 20px;
}

.td-popup-style1 .td-popup-highlight-val {
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4);
    line-height: 1;
    letter-spacing: -1px;
}

.td-popup-style1 .td-popup-highlight-label {
    font-size: 12px;
    font-weight: 800;
    color: #3b2800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

/* Custom Text Announcement Style 1 */
.td-popup-custom-text {
    margin-bottom: 20px;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: center;
    border-radius: 14px;
    padding: 14px 18px;
    word-break: break-word;
}
.td-popup-custom-text p {
    margin: 0 0 8px 0;
}
.td-popup-custom-text p:last-child {
    margin-bottom: 0;
}
.td-popup-custom-text ul,
.td-popup-custom-text ol {
    text-align: left;
    margin: 8px 0;
    padding-left: 20px;
}
.td-popup-custom-text a {
    color: inherit;
    text-decoration: underline;
}

.td-popup-style1 .td-popup-custom-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(229, 184, 76, 0.4);
    color: #e2e4ff;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Timer Section */
.td-popup-style1 .td-popup-timer-wrapper {
    margin-bottom: 20px;
}

.td-popup-style1 .td-popup-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: #b8bacc;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.td-popup-style1 .td-popup-timer-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.td-popup-style1 .td-timer-box {
    flex: 1;
    background: rgba(22, 24, 46, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 4px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.td-popup-style1 .td-timer-box .td-num {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.1;
}

.td-popup-style1 .td-timer-box .td-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #8a8dbe;
    text-transform: uppercase;
    margin-top: 2px;
    display: block;
}

.td-popup-style1 .td-popup-timer-footer {
    font-size: 11px;
    font-weight: 800;
    color: #e5b84c;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* CTA Button */
.td-popup-style1 .td-popup-cta-btn {
    background: linear-gradient(90deg, #4f82ff 0%, #8552ff 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    border-radius: 14px;
    padding: 15px 24px;
    text-decoration: none;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 8px 24px rgba(100, 90, 255, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.td-popup-style1 .td-popup-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(100, 90, 255, 0.6);
    color: #ffffff;
}

.td-popup-style1 .td-popup-footer-badge span {
    font-size: 10px;
    font-weight: 700;
    color: #787a9e;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 18px;
    display: block;
}


/* ==========================================================================
   STYLE 2: MODERN CLEAN LIGHT
   ========================================================================== */
.td-popup-style2 {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: #2d3748;
}

.td-popup-style2 .td-popup-close-btn {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #718096;
}
.td-popup-style2 .td-popup-close-btn:hover {
    background: #edf2f7;
    color: #1a202c;
}

.td-popup-style2 .td-popup-top-badge span {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #2b6cb0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    display: inline-block;
}

.td-popup-style2 .td-popup-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
    margin: 16px 0 6px 0;
    line-height: 1.2;
}

.td-popup-style2 .td-popup-subtitle {
    font-size: 14px;
    color: #718096;
    margin: 0 0 20px 0;
}

.td-popup-style2 .td-popup-highlight-card {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-radius: 16px;
    padding: 18px 16px;
    border: 1px solid #90cdf4;
    margin-bottom: 20px;
}

.td-popup-style2 .td-popup-highlight-val {
    font-size: 42px;
    font-weight: 900;
    color: #2b6cb0;
    line-height: 1;
}

.td-popup-style2 .td-popup-highlight-label {
    font-size: 12px;
    font-weight: 700;
    color: #2c5282;
    text-transform: uppercase;
    margin-top: 4px;
}

.td-popup-style2 .td-popup-custom-text {
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    color: #4a5568;
}

.td-popup-style2 .td-popup-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.td-popup-style2 .td-popup-timer-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.td-popup-style2 .td-timer-box {
    flex: 1;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 4px;
}

.td-popup-style2 .td-timer-box .td-num {
    font-size: 20px;
    font-weight: 800;
    color: #2d3748;
}

.td-popup-style2 .td-timer-box .td-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #a0aec0;
}

.td-popup-style2 .td-popup-timer-footer {
    font-size: 11px;
    font-weight: 700;
    color: #dd6b20;
    text-transform: uppercase;
}

.td-popup-style2 .td-popup-cta-btn {
    background: #3182ce;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    padding: 14px 24px;
    text-decoration: none;
    display: block;
    box-shadow: 0 6px 16px rgba(49, 130, 206, 0.3);
}

.td-popup-style2 .td-popup-cta-btn:hover {
    background: #2b6cb0;
}

.td-popup-style2 .td-popup-footer-badge span {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 16px;
    display: block;
}


/* ==========================================================================
   STYLE 3: CYBERPUNK DARK PINK
   ========================================================================== */
.td-popup-style3 {
    background: #0d0614;
    border: 2px solid #ff007f;
    border-radius: 20px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 0 35px rgba(255, 0, 127, 0.4), inset 0 0 15px rgba(255, 0, 127, 0.2);
    color: #ffffff;
}

.td-popup-style3 .td-popup-close-btn {
    background: rgba(255, 0, 127, 0.15);
    border: 1px solid #ff007f;
    color: #ff007f;
}
.td-popup-style3 .td-popup-close-btn:hover {
    background: #ff007f;
    color: #ffffff;
}

.td-popup-style3 .td-popup-top-badge span {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid #ff007f;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    display: inline-block;
}

.td-popup-style3 .td-popup-title {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin: 16px 0 6px 0;
    text-shadow: 0 0 10px #ff007f;
}

.td-popup-style3 .td-popup-subtitle {
    font-size: 13px;
    color: #d1b8e6;
    margin: 0 0 20px 0;
}

.td-popup-style3 .td-popup-highlight-card {
    background: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
    border-radius: 14px;
    padding: 20px 16px;
    border: 1px solid #ff79c6;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(121, 40, 202, 0.5);
}

.td-popup-style3 .td-popup-highlight-val {
    font-size: 44px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.td-popup-style3 .td-popup-highlight-label {
    font-size: 12px;
    font-weight: 800;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.td-popup-style3 .td-popup-custom-text {
    background: rgba(255, 0, 127, 0.08);
    border: 1px dashed #ff007f;
    color: #00f0ff;
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.td-popup-style3 .td-popup-timer-label {
    font-size: 11px;
    font-weight: 700;
    color: #ff79c6;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.td-popup-style3 .td-popup-timer-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.td-popup-style3 .td-timer-box {
    flex: 1;
    background: #1a0b29;
    border: 1px solid #7928ca;
    border-radius: 8px;
    padding: 8px 4px;
}

.td-popup-style3 .td-timer-box .td-num {
    font-size: 22px;
    font-weight: 800;
    color: #00f0ff;
    text-shadow: 0 0 8px #00f0ff;
}

.td-popup-style3 .td-timer-box .td-lbl {
    font-size: 9px;
    font-weight: 700;
    color: #ff79c6;
}

.td-popup-style3 .td-popup-timer-footer {
    font-size: 11px;
    font-weight: 800;
    color: #00f0ff;
}

.td-popup-style3 .td-popup-cta-btn {
    background: linear-gradient(90deg, #ff007f 0%, #7928ca 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    border-radius: 12px;
    padding: 15px 24px;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.6);
}

.td-popup-style3 .td-popup-footer-badge span {
    font-size: 10px;
    color: #7928ca;
    margin-top: 18px;
    display: block;
    letter-spacing: 1px;
}

/* RESPONSIVE FOR MOBILE */
@media (max-width: 480px) {
    .td-popup-modal {
        max-width: 94%;
        padding: 24px 16px 18px 16px;
    }
    .td-popup-title {
        font-size: 20px !important;
    }
    .td-popup-highlight-val {
        font-size: 34px !important;
    }
    .td-popup-timer-boxes .td-num {
        font-size: 18px !important;
    }
}
