/* ==========================================================================
   Voox Rewards & Referral Suite - CSS Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shortcode: First Order Promo Box ([voox_first_order_promo])
   -------------------------------------------------------------------------- */
.voox-first-order-promo-box {
    border: 2px solid #ff4000;
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 6px;
    background-color: #fafafa;
    text-align: center;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
.voox-first-order-promo-box .voox-promo-text {
    color: #000;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    display: block;
}
.voox-first-order-promo-box .voox-promo-amount,
.voox-first-order-promo-box .voox-promo-amount * {
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    display: inline !important;
    vertical-align: baseline !important;
    margin: 0 2px !important;
    padding: 0 !important;
    line-height: inherit !important;
    background: none !important;
}
.voox-first-order-promo-box .voox-promo-percentage {
    color: #FF4000 !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    display: inline !important;
    vertical-align: baseline !important;
    margin: 0 4px !important;
}
.voox-first-order-promo-box .voox-promo-disclaimer {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

@media screen and (max-width: 768px) {
    .voox-first-order-promo-box .voox-promo-percentage {
        font-size: 14px !important;
    }
}

/* --------------------------------------------------------------------------
   2. Modals (Referral Popup & Redeemed Notice)
   -------------------------------------------------------------------------- */
.voox-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}
.voox-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    font-family: sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-left: 5px solid #ff5722;
}
.voox-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}
.voox-modal-icon {
    font-size: 40px;
    margin-bottom: 10px;
}
.voox-coupon-box {
    border: 2px dashed #ff5722;
    background: #fff8f6;
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
}
.voox-coupon-box span {
    display: block;
    font-size: 11px;
    color: #777;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.voox-coupon-copy-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.voox-coupon-copy-group input {
    width: 140px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #ff5722;
    border: 1px solid #ffccbc;
    padding: 8px;
    border-radius: 4px;
    background: #fff;
    letter-spacing: 1px;
}
.voox-coupon-copy-group button {
    background: #ff5722;
    color: #fff;
    border: none;
    padding: 9px 15px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 14px;
}
.voox-coupon-copy-group button:hover {
    background: #e64a19;
}
.voox-reward-badge {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   3. Shortcode: Points Widget ([voox_puntos])
   -------------------------------------------------------------------------- */
.voox-points-widget {
    font-family: inherit;
    margin: 10px 0;
    width: 100%;
    box-sizing: border-box;
}
.voox-points-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.voox-points-badge {
    font-size: clamp(18px, 4vw, 24px);
    line-height: 1;
}
.voox-points-num {
    font-size: clamp(18px, 3.5vw, 26px);
    font-weight: 800;
    color: #ff5722;
    line-height: 1.2;
    word-break: break-word;
}
.voox-points-instruction h3 {
    font-size: clamp(14px, 2.5vw, 19px);
    color: #4a5568;
    margin: 8px 0;
    line-height: 1.35;
    font-weight: 600;
}
.voox-points-instruction strong {
    color: #ff5722;
}
.voox-current-level-sub {
    font-size: clamp(11px, 2vw, 13px);
    color: #718096;
    margin: 4px 0 0 0;
}

@media screen and (max-width: 1024px) {
    .voox-points-num { font-size: clamp(16px, 3vw, 22px); }
    .voox-points-instruction h3 { font-size: clamp(13px, 2.2vw, 17px); }
}

@media screen and (max-width: 768px) {
    .voox-points-widget { padding: 2px 0; }
    .voox-points-counter { gap: 5px; }
    .voox-points-num { font-size: clamp(15px, 4vw, 20px); }
    .voox-points-instruction h3 { font-size: clamp(13px, 3.5vw, 16px); margin: 6px 0; }
}

/* --------------------------------------------------------------------------
   4. Shortcode: Main Dashboard Panel ([voox_panel])
   -------------------------------------------------------------------------- */
.voox-panel-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}
.voox-panel-header h2 { margin: 0 0 5px 0; color: #0f172a; font-size: 26px; }
.voox-panel-header p { margin: 0 0 20px 0; color: #64748b; }
.voox-panel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}
.voox-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.voox-card-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}
.voox-card-value {
    font-size: 32px;
    font-weight: 800;
    color: #ff5722;
    margin: 8px 0;
}
.voox-card-value small {
    font-size: 16px;
    color: #64748b;
}
.voox-coupon-text {
    letter-spacing: 2px;
    font-family: monospace;
    color: #0f172a;
    word-break: break-all;
}
.voox-card-sub { font-size: 13px; color: #475569; }
.voox-panel-progress-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    margin-bottom: 25px;
}
.voox-progress-info {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
.voox-progress-bar {
    background: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}
.voox-progress-fill {
    background: linear-gradient(90deg, #ff7043, #ff5722);
    height: 100%;
    transition: width 0.4s ease;
}
.voox-progress-help {
    margin: 10px 0 0 0;
    font-size: 13px;
    color: #475569;
}
.voox-panel-ref-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    margin-bottom: 25px;
}
.voox-panel-ref-box h3 { margin: 0 0 8px 0; font-size: 18px; color: #0f172a; }
.voox-panel-ref-box p { margin: 0 0 12px 0; font-size: 13px; color: #64748b; }
.voox-ref-input-group { display: flex; gap: 10px; flex-wrap: wrap; }
.voox-ref-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    background: #f1f5f9;
}
.voox-ref-input-group button {
    background: #ff5722;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.voox-ref-input-group button:hover { background: #e64a19; }
.voox-panel-benefits-table {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    overflow-x: auto;
}
.voox-panel-benefits-table h3 { margin: 0 0 15px 0; font-size: 18px; color: #0f172a; }
.voox-panel-benefits-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}
.voox-panel-benefits-table th, .voox-panel-benefits-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.voox-panel-benefits-table th { background: #f8fafc; color: #475569; font-weight: 700; }
.voox-panel-benefits-table tr.active-level { background: #fff3e0; font-weight: bold; }

@media screen and (max-width: 768px) {
    .voox-panel-container { padding: 15px; }
    .voox-ref-input-group button { width: 100%; }
}
