/* ============================================================
 * TuVi Promo Code — Styles
 * ============================================================ */

.tuvi-promo-block {
    margin: 20px 0 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fffaf0, #fff8e1);
    border: 1px solid #f3d68a;
    border-radius: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tuvi-promo-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #b8860b;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tuvi-promo-toggle::after {
    content: '▼';
    font-size: 11px;
    transition: transform .2s;
    color: #b8860b;
}

.tuvi-promo-toggle.is-open::after {
    transform: rotate(180deg);
}

.tuvi-promo-toggle:hover {
    color: #d4af37;
}

.tuvi-promo-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e6c869;
}

.tuvi-promo-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #f0d97a;
}

.tuvi-promo-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    border-radius: 6px;
    transition: all .15s;
}

.tuvi-promo-tab.is-active {
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(184, 134, 11, .3);
}

.tuvi-promo-tab:hover:not(.is-active) {
    color: #b8860b;
}

.tuvi-promo-tab-content label {
    display: block;
    font-size: 13px;
    color: #5a4a1f;
    margin: 8px 0 4px;
    font-weight: 500;
}

.tuvi-promo-tab-content input[type="text"],
.tuvi-promo-tab-content input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0c660;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
    font-family: inherit;
}

.tuvi-promo-code {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace !important;
    font-weight: 600;
}

.tuvi-promo-tab-content input:focus {
    outline: none;
    border-color: #b8860b;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, .15);
}

.tuvi-promo-submit-redeem,
.tuvi-promo-submit-request {
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 2px 6px rgba(184, 134, 11, .25);
}

.tuvi-promo-submit-redeem:hover:not(:disabled),
.tuvi-promo-submit-request:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(184, 134, 11, .35);
}

.tuvi-promo-submit-redeem:disabled,
.tuvi-promo-submit-request:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.tuvi-promo-msg,
.tuvi-promo-req-msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.tuvi-promo-msg.is-success,
.tuvi-promo-req-msg.is-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tuvi-promo-msg.is-error,
.tuvi-promo-req-msg.is-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tuvi-promo-hint {
    margin: 10px 0 0;
    font-size: 12px;
    color: #888;
    text-align: center;
}

.tuvi-promo-desc {
    margin: 4px 0 12px;
    font-size: 13px;
    color: #5a4a1f;
    line-height: 1.5;
}

/* Success state — hiện sau khi mở khóa thành công */
.tuvi-promo-success {
    text-align: center;
    padding: 25px 20px;
    animation: tuviPromoFadeIn .4s ease-out;
}

.tuvi-promo-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #00a32a, #00873e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 163, 42, .3);
    animation: tuviPromoPop .5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tuvi-promo-success h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #00873e;
    font-weight: 700;
}

.tuvi-promo-success p {
    margin: 0;
    color: #5a4a1f;
    font-size: 14px;
}

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

@keyframes tuviPromoPop {
    0%   { transform: scale(0); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@media (max-width: 480px) {
    .tuvi-promo-block { padding: 14px; }
    .tuvi-promo-tab { font-size: 12px; padding: 7px 6px; }
}
