/* ===================================================
   VivaeSIM - My Account Area
   Professional, Minimal, Futuristic Design
   Primary: #eb431e | Secondary: #0c0b62
   =================================================== */

/* ===== RESET & BASE ===== */
.viva-myaccount-page .entry-header,
.viva-myaccount-page .page-title {
    display: none !important;
}

.viva-myaccount-page .woocommerce {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page background */
body.viva-myaccount-page {
    background: radial-gradient(circle at 15% 10%, rgba(235, 67, 30, 0.04), transparent 40%),
                radial-gradient(circle at 85% 5%, rgba(12, 11, 98, 0.04), transparent 35%),
                linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
}
.woocommerce-MyAccount-content > p{
    display: none;
}

/* ===========================================
   LOGIN / REGISTER AUTH AREA
   =========================================== */
.woocommerce form.login{
    border: none !important;
    margin-bottom: 0;
}
.woocommerce-ResetPassword .woocommerce-form-row--first{
    width: 100% !important;
}
.viva-auth-wrapper {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.viva-auth-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.viva-auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.viva-auth-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(235, 67, 30, 0.12), transparent 70%);
    top: -100px;
    left: -100px;
    animation: viva-orb-float 8s ease-in-out infinite;
}

.viva-auth-orb--2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(12, 11, 98, 0.10), transparent 70%);
    bottom: -80px;
    right: -80px;
    animation: viva-orb-float 10s ease-in-out infinite reverse;
}

@keyframes viva-orb-float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

.viva-auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    padding: 40px 36px 36px;
    box-shadow: 0 20px 60px rgba(12, 11, 98, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Brand */
.viva-auth-brand {
    text-align: center;
    margin-bottom: 32px;
}

.viva-auth-logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.25);
    animation: viva-logo-pulse 3s ease-in-out infinite;
}

@keyframes viva-logo-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(235, 67, 30, 0.25); }
    50% { box-shadow: 0 12px 32px rgba(235, 67, 30, 0.35); }
}

.viva-auth-logo-icon i {
    color: #fff;
    font-size: 28px;
}

.viva-auth-brand-title {
    font-size: 26px;
    font-weight: 800;
    color: #0c0b62;
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.viva-auth-brand-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

/* Tabs — Sliding indicator style (matches destination tabs) */
.viva-auth-tabs {
    display: flex;
    position: relative;
    padding: 5px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px solid #eb431e;
    box-shadow: 0 2px 20px rgba(12, 11, 98, 0.08), 0 0 0 1px rgba(12, 11, 98, 0.04);
    margin-bottom: 28px;
    gap: 4px;
}

.viva-auth-tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: 0;
    background: linear-gradient(135deg, #0c0b62 0%, #1a1960 100%);
    border-radius: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    box-shadow: 0 4px 16px rgba(12, 11, 98, 0.25);
}

.viva-auth-tab {
    flex: 1;
    padding: 13px 16px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 12px;
    transition: color 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    position: relative;
    z-index: 1;
    font-family: inherit;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.viva-auth-tab i {
    font-size: 13px;
    transition: color 0.35s ease;
}

.viva-auth-tab.active {
    color: #ffffff;
}

.viva-auth-tab.active i {
    color: #ffffff;
}

.viva-auth-tab:not(.active):hover {
    color: #0c0b62;
}

.viva-auth-tab:not(.active):hover i {
    color: #0c0b62;
}

/* Style WooCommerce Login / Register Forms */
.viva-auth-container .u-column1,
.viva-auth-container .u-column2 {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.viva-auth-container #customer_login {
    display: block !important;
}

.viva-auth-container #customer_login .col-1,
.viva-auth-container #customer_login .col-2 {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    padding: 0 !important;
}

.viva-auth-container h2 {
    display: none !important;
}

/* Form Fields */
.viva-auth-container .woocommerce-form-row,
.viva-auth-container .form-row {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.viva-auth-container label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.viva-auth-container label .required {
    color: #eb431e;
}

.viva-auth-container input[type="text"],
.viva-auth-container input[type="email"],
.viva-auth-container input[type="password"],
.viva-auth-container input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.viva-auth-container input[type="text"]:focus,
.viva-auth-container input[type="email"]:focus,
.viva-auth-container input[type="password"]:focus,
.viva-auth-container input[type="tel"]:focus {
    border-color: #eb431e;
    box-shadow: 0 0 0 3px rgba(235, 67, 30, 0.08);
}

.viva-auth-container input[type="text"]::placeholder,
.viva-auth-container input[type="email"]::placeholder,
.viva-auth-container input[type="password"]::placeholder {
    color: #cbd5e1;
}

/* Remember me */
.viva-auth-container .woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.viva-auth-container .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #eb431e;
    border-radius: 4px;
    cursor: pointer;
}

/* Login / Register Buttons */
.viva-auth-container .woocommerce-form-login__submit,
.viva-auth-container .woocommerce-form-register__submit,
.viva-auth-container button[type="submit"],
.viva-auth-container .button {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #eb431e 0%, #d63a1a 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.25);
    font-family: inherit;
}

.viva-auth-container .woocommerce-form-login__submit:hover,
.viva-auth-container .woocommerce-form-register__submit:hover,
.viva-auth-container button[type="submit"]:hover,
.viva-auth-container .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
    background: linear-gradient(135deg, #f04d28 0%, #eb431e 100%);
}

.viva-auth-container .woocommerce-form-login__submit:active,
.viva-auth-container .woocommerce-form-register__submit:active,
.viva-auth-container button[type="submit"]:active,
.viva-auth-container .button:active {
    transform: translateY(0);
}

/* Lost password link */
.viva-auth-container .woocommerce-LostPassword {
    text-align: center;
    margin-top: 16px;
}

.viva-auth-container .woocommerce-LostPassword a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.viva-auth-container .woocommerce-LostPassword a:hover {
    color: #eb431e;
}

/* Buy package note under login */
.viva-auth-register-note {
    text-align: center;
    padding: 8px 12px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.viva-auth-register-note span {
    display: block;
    margin-bottom: 4px;
}

.viva-auth-register-note .viva-auth-register-link {
    display: inline;
    font-weight: 500;
    color: #64748b;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: all 0.2s ease;
}

.viva-auth-register-note .viva-auth-register-link:hover {
    color: #eb431e;
    text-decoration-color: #eb431e;
}

/* Notices */
.viva-auth-container .woocommerce-error,
.viva-auth-container .woocommerce-message,
.viva-auth-container .woocommerce-info {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
}

.viva-auth-container .woocommerce-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.viva-auth-container .woocommerce-message {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.viva-auth-container .woocommerce-info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* Password visibility toggle (WC default) */
.viva-auth-container .show-password-input {
    top: 50%;
    transform: translateY(-50%);
    right: 14px;
    color: #94a3b8;
}

/* ---- Custom password field wrapper ---- */
.viva-password-field {
    display: block;
    position: relative;
}

.viva-password-field input {
    padding-right: 48px !important;
}

.viva-pw-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    width: auto;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

.viva-pw-toggle:hover {
    color: #0c0b62;
    transform: translateY(-50%) !important;
    box-shadow: none !important;
    background: none !important;
}

/* Register panel */
.viva-auth-panel {
    width: 100%;
}

.viva-auth-panel .register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.viva-auth-panel h2 {
    display: none !important;
}

/* Hide WC default u-column2 (register) since we use custom panel */
.viva-auth-container .u-column2 {
    display: none !important;
}

/* Password strength meter spacing */
.viva-auth-panel .woocommerce-password-strength {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
}


/* ===========================================
   MY ACCOUNT LAYOUT (Logged In)
   =========================================== */
.viva-account-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
    min-height: 70vh;
}

/* Hide default WC navigation */
.viva-myaccount-page .woocommerce-MyAccount-navigation {
    background: none;
    padding: 0;
    border: none;
    margin: 0;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.viva-myaccount-page .woocommerce-MyAccount-content {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    float: none;
    width: 100%;
}


/* ===== SIDEBAR ===== */
.viva-account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* User Card */
.viva-user-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 22px 22px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.04);
}

.viva-user-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #eb431e, #0c0b62);
}

.viva-user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 14px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #eb431e, #0c0b62) border-box;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    position: relative;
}

.viva-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Fix the gradient border — need outer wrapper */
.viva-user-avatar {
    -webkit-mask: none;
    mask: none;
    background: linear-gradient(135deg, #eb431e, #0c0b62);
    padding: 3px;
}

.viva-user-avatar img {
    border-radius: 50%;
    display: block;
}

.viva-user-info {
    margin-bottom: 16px;
}

.viva-user-name {
    font-size: 17px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0 0 4px;
}

.viva-user-email {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
    word-break: break-word;
}

.viva-user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-top: 1px solid #f1f5f9;
    padding-top: 16px;
}

.viva-user-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.viva-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #0c0b62;
}

.viva-stat-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}

/* VivaMoney Balance Strip */
.viva-user-balance-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.04), rgba(235, 67, 30, 0.03));
    border: 1px solid rgba(12, 11, 98, 0.10);
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.viva-user-balance-strip:hover {
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.07), rgba(235, 67, 30, 0.05));
    border-color: rgba(12, 11, 98, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(12, 11, 98, 0.08);
}

.viva-user-balance-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eb431e, #f05c36);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(235, 67, 30, 0.3);
}

.viva-user-balance-icon i {
    font-size: 14px;
    color: #fff;
}

.viva-user-balance-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
    text-align: left;
}

.viva-user-balance-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.viva-user-balance-amount {
    font-size: 17px;
    font-weight: 800;
    color: #0c0b62;
    line-height: 1.2;
}

.viva-user-balance-amount .woocommerce-Price-amount {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.viva-user-balance-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-size: 12px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.viva-user-balance-strip:hover .viva-user-balance-arrow {
    color: #eb431e;
    transform: translateX(2px);
}

/* Navigation */
.viva-myaccount-page .woocommerce-MyAccount-navigation {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.04);
    width: 100%;
    max-width: 260px;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li {
    margin: 0;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: #94a3b8;
    transition: color 0.25s ease;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li a span {
    flex: 1;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li a:hover {
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.04), rgba(12, 11, 98, 0.04));
    color: #0c0b62;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li a:hover i {
    color: #eb431e;
}

/* Active nav item */
.viva-myaccount-page .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.08), rgba(12, 11, 98, 0.06));
    color: #0c0b62;
    font-weight: 700;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li.is-active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #eb431e, #0c0b62);
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li.is-active a i {
    color: #eb431e;
}

/* Logout item */
.viva-myaccount-page .woocommerce-MyAccount-navigation ul li:last-child {
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
    padding-top: 4px;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li:last-child a {
    color: #94a3b8;
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li:last-child a:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.viva-myaccount-page .woocommerce-MyAccount-navigation ul li:last-child a:hover i {
    color: #ef4444;
}


/* ===== CONTENT AREA ===== */
.viva-account-content {
    min-height: 400px;
}


/* ===========================================
   DASHBOARD
   =========================================== */
.viva-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Greeting */
.viva-dash-greeting {
    background: linear-gradient(135deg, #0c0b62 0%, #1a1985 60%, #2a2790 100%);
    border-radius: 20px;
    padding: 32px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.viva-dash-greeting::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 67, 30, 0.2), transparent 70%);
    pointer-events: none;
}

.viva-dash-greeting::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    pointer-events: none;
}

.viva-dash-greeting-text {
    position: relative;
    z-index: 1;
}

.viva-dash-greeting-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px;
}

.viva-dash-greeting-text h2 span {
    color: #eb431e;
}

.viva-dash-greeting-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

.viva-dash-cta {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: #eb431e;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(235, 67, 30, 0.35);
}

.viva-dash-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.45);
    color: #ffffff;
    background: #f04d28;
}

/* Stats */
.viva-dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.viva-dash-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.viva-dash-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.viva-dash-stat--orders::before { background: linear-gradient(90deg, #eb431e, #f97316); }
.viva-dash-stat--esims::before { background: linear-gradient(90deg, #0c0b62, #6366f1); }
.viva-dash-stat--spent::before { background: linear-gradient(90deg, #059669, #34d399); }

.viva-dash-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(12, 11, 98, 0.08);
}

.viva-dash-stat-card:hover::before {
    opacity: 1;
}

.viva-dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.viva-dash-stat--orders .viva-dash-stat-icon {
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.08), rgba(249, 115, 22, 0.08));
    color: #eb431e;
}

.viva-dash-stat--esims .viva-dash-stat-icon {
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.08), rgba(99, 102, 241, 0.08));
    color: #0c0b62;
}

.viva-dash-stat--spent .viva-dash-stat-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(52, 211, 153, 0.08));
    color: #059669;
}

.viva-dash-stat-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.viva-dash-stat-number {
    font-size: 22px;
    font-weight: 800;
    color: #0c0b62;
    line-height: 1.2;
}

.viva-dash-stat-number .woocommerce-Price-amount {
    font-size: 20px;
}

.viva-dash-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Quick Actions */
.viva-dash-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viva-dash-section-title i {
    color: #eb431e;
    font-size: 16px;
}

.viva-dash-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.viva-dash-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.viva-dash-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(12, 11, 98, 0.08);
    border-color: rgba(235, 67, 30, 0.3);
    color: #0c0b62;
}

.viva-dash-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.06), rgba(12, 11, 98, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #eb431e;
    transition: all 0.3s ease;
}

.viva-dash-action-card:hover .viva-dash-action-icon {
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.3);
}

/* Recent Orders in Dashboard */
.viva-dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.viva-dash-view-all {
    font-size: 13px;
    font-weight: 600;
    color: #eb431e;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.viva-dash-view-all:hover {
    gap: 10px;
    color: #d63a1a;
}

.viva-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.viva-order-row {
    display: grid;
    grid-template-columns: 140px 1fr 100px 120px 50px;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s ease;
}

.viva-order-row:hover {
    box-shadow: 0 4px 16px rgba(12, 11, 98, 0.06);
    border-color: #cbd5e1;
}

.viva-order-hash {
    font-size: 14px;
    font-weight: 700;
    color: #0c0b62;
    display: block;
}

.viva-order-date {
    font-size: 12px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.viva-order-row-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.viva-order-item-name {
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.viva-order-row-total {
    font-size: 14px;
    font-weight: 700;
    color: #0c0b62;
    text-align: center;
}

.viva-order-row-status {
    text-align: center;
}

.viva-status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.viva-status--completed { background: #f0fdf4; color: #16a34a; }
.viva-status--processing { background: #fef9c3; color: #ca8a04; }
.viva-status--on-hold { background: #fef3c7; color: #d97706; }
.viva-status--pending { background: #e0e7ff; color: #4f46e5; }
.viva-status--cancelled { background: #fef2f2; color: #dc2626; }
.viva-status--refunded { background: #f1f5f9; color: #64748b; }
.viva-status--failed { background: #fef2f2; color: #dc2626; }

.viva-order-row-action {
    text-align: center;
}

.viva-btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.06), rgba(235, 67, 30, 0.06));
    color: #0c0b62;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.viva-btn-view:hover {
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(235, 67, 30, 0.25);
}

/* Empty State */
.viva-dash-empty-state {
    text-align: center;
    padding: 50px 24px;
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    border-radius: 20px;
}

.viva-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.06), rgba(12, 11, 98, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #94a3b8;
}

.viva-dash-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0 0 8px;
}

.viva-dash-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px;
    line-height: 1.6;
}

.viva-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.25);
}

.viva-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(235, 67, 30, 0.35);
    color: #ffffff;
}


/* ===========================================
   MY eSIMs PAGE
   =========================================== */
.viva-myesims {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.viva-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.viva-page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #0c0b62;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.viva-page-header h2 i {
    color: #eb431e;
}

.viva-page-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* eSIM Cards Grid */
.viva-esims-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 18px;
}

/* eSIM Card — SIM card inspired design */
.viva-esim-card {
    background: linear-gradient(145deg, #0c0b62 0%, #1a1985 45%, #252380 100%);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 220px;
}

.viva-esim-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 67, 30, 0.15), transparent 70%);
    pointer-events: none;
}

.viva-esim-card::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04), transparent 70%);
    pointer-events: none;
}

.viva-esim-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(12, 11, 98, 0.25);
}

/* Chip */
.viva-esim-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.viva-esim-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #e8c547, #d4a643, #e8c547);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.viva-esim-chip-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 20px;
    height: 14px;
}

.viva-esim-chip-lines span {
    background: rgba(180, 140, 50, 0.5);
    border-radius: 1px;
}

.viva-esim-card-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* Card body */
.viva-esim-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.viva-esim-plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.viva-esim-destination {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.viva-esim-destination i {
    color: #eb431e;
    font-size: 11px;
}

.viva-esim-iccid-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.viva-esim-iccid-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
}

.viva-esim-iccid-value {
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-all;
}

/* Card footer */
.viva-esim-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
    flex-wrap: wrap;
}

.viva-esim-order-ref {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.viva-esim-card-actions {
    display: flex;
    gap: 6px;
}

.viva-esim-btn-qr,
.viva-esim-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
}

.viva-esim-btn-qr {
    background: #eb431e;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(235, 67, 30, 0.35);
}

.viva-esim-btn-qr:hover {
    background: #f04d28;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.45);
}

.viva-esim-btn-details {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.viva-esim-btn-details:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}


/* ===========================================
   QR CODE MODAL
   =========================================== */
.viva-qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 11, 98, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.viva-qr-modal {
    background: #ffffff;
    border-radius: 24px;
    padding: 32px;
    max-width: 440px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 80px rgba(12, 11, 98, 0.2);
    animation: viva-modal-slide 0.35s ease;
}

@keyframes viva-modal-slide {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.viva-qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
    transition: all 0.2s ease;
}

.viva-qr-modal-close:hover {
    background: #fef2f2;
    color: #ef4444;
}

.viva-qr-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.viva-qr-modal-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0 0 6px;
}

.viva-qr-modal-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.viva-qr-modal-body {
    text-align: center;
}

.viva-qr-modal-code {
    display: inline-block;
    padding: 16px;
    border: 3px solid #0c0b62;
    border-radius: 16px;
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.08);
}

.viva-qr-modal-code img {
    display: block;
    width: 240px;
    height: 240px;
}

.viva-qr-modal-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
}

.viva-qr-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.viva-qr-detail-row:not(:last-child) {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.viva-qr-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.viva-qr-detail-value {
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: #0c0b62;
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}

.viva-qr-modal-footer {
    text-align: center;
    margin-top: 20px;
}

.viva-qr-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0c0b62;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.viva-qr-print-btn i {
    color: #eb431e;
}

.viva-qr-print-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(12, 11, 98, 0.06);
}


/* ===========================================
   ORDERS TABLE (WooCommerce)
   =========================================== */
.viva-myaccount-page .woocommerce-orders-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: none;
    background: none;
}

.viva-myaccount-page .woocommerce-orders-table thead th {
    background: #f8fafc;
    padding: 14px 18px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    border: none;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.viva-myaccount-page .woocommerce-orders-table thead th:first-child {
    border-radius: 14px 0 0 0;
}

.viva-myaccount-page .woocommerce-orders-table thead th:last-child {
    border-radius: 0 14px 0 0;
}

.viva-myaccount-page .woocommerce-orders-table tbody td {
    padding: 16px 18px;
    font-size: 14px;
    color: #1e293b;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    vertical-align: middle;
}

.viva-myaccount-page .woocommerce-orders-table tbody tr:hover td {
    background: #fafbfc;
}

.viva-myaccount-page .woocommerce-orders-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 14px;
}

.viva-myaccount-page .woocommerce-orders-table tbody tr:last-child td:last-child {
    border-radius: 0 0 14px 0;
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
    color: #0c0b62;
    text-decoration: none;
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-number a:hover {
    color: #eb431e;
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 600;
    text-transform: capitalize;
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-total {
    font-weight: 700;
    color: #0c0b62;
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.woocommerce-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(235, 67, 30, 0.2);
}

.viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.woocommerce-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.35);
}

/* No orders message */
.viva-myaccount-page .woocommerce-message--info,
.viva-myaccount-page .woocommerce-info {
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.viva-myaccount-page .woocommerce-info::before {
    display: none;
}

/* Pagination */
.viva-myaccount-page .woocommerce-pagination {
    text-align: center;
    margin-top: 24px;
}

.viva-myaccount-page .woocommerce-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin: 0 3px;
    transition: all 0.2s ease;
}

.viva-myaccount-page .woocommerce-pagination .page-numbers.current,
.viva-myaccount-page .woocommerce-pagination .page-numbers:hover {
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #ffffff;
    border-color: #eb431e;
}


/* ===========================================
   EDIT ACCOUNT / FORM STYLES
   =========================================== */
.viva-myaccount-page .woocommerce-EditAccountForm,
.viva-myaccount-page .edit-account {
    max-width: 600px;
}

.viva-myaccount-page .woocommerce-EditAccountForm fieldset {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin: 24px 0;
    background: #ffffff;
}

.viva-myaccount-page .woocommerce-EditAccountForm fieldset legend {
    font-size: 14px;
    font-weight: 700;
    color: #0c0b62;
    padding: 0 8px;
}

.viva-myaccount-page .woocommerce-EditAccountForm .form-row {
    margin-bottom: 20px;
    padding: 0;
}

.viva-myaccount-page .woocommerce-EditAccountForm label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.viva-myaccount-page .woocommerce-EditAccountForm input[type="text"],
.viva-myaccount-page .woocommerce-EditAccountForm input[type="email"],
.viva-myaccount-page .woocommerce-EditAccountForm input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.viva-myaccount-page .woocommerce-EditAccountForm input:focus {
    border-color: #eb431e;
    box-shadow: 0 0 0 3px rgba(235, 67, 30, 0.08);
}

.viva-myaccount-page .woocommerce-EditAccountForm .woocommerce-Button {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.25);
    font-family: inherit;
}

.viva-myaccount-page .woocommerce-EditAccountForm .woocommerce-Button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
}


/* ===========================================
   VIEW ORDER PAGE OVERRIDE
   =========================================== */
.viva-myaccount-page .woocommerce-order-details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.04);
}

.viva-myaccount-page .woocommerce-order-details h2 {
    background: #f8fafc;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
}

.viva-myaccount-page .woocommerce-order-details table {
    border: none;
    margin: 0;
}

.viva-myaccount-page .woocommerce-order-details table th,
.viva-myaccount-page .woocommerce-order-details table td {
    padding: 14px 24px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.viva-myaccount-page .woocommerce-order-details table th {
    background: #fafbfc;
    color: #475569;
    font-weight: 600;
}


/* ===========================================
   MOBILE SIDEBAR TOGGLE
   =========================================== */
.viva-mobile-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0c0b62;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.25s ease;
    font-family: inherit;
    width: 100%;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(12, 11, 98, 0.04);
}

.viva-mobile-sidebar-toggle i {
    color: #eb431e;
}

.viva-mobile-sidebar-toggle:hover {
    border-color: #eb431e;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.1);
}

.viva-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 11, 98, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.viva-sidebar-overlay.viva-overlay-active {
    opacity: 1;
    visibility: visible;
}


/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .viva-account-wrapper {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .viva-dash-stats {
        grid-template-columns: 1fr 1fr;
    }

    .viva-dash-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .viva-order-row {
        grid-template-columns: 120px 1fr 80px 100px 42px;
        gap: 8px;
        padding: 14px 16px;
    }
}

@media (max-width: 768px) {
    /* Auth */
    .viva-auth-container {
        padding: 28px 24px 24px;
        border-radius: 20px;
    }

    .viva-auth-logo-icon {
        width: 56px;
        height: 56px;
    }

    .viva-auth-logo-icon i {
        font-size: 24px;
    }

    .viva-auth-brand-title {
        font-size: 22px;
    }

    /* Account Layout → single column */
    .viva-account-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 14px 40px;
    }

    .viva-mobile-sidebar-toggle {
        display: flex;
    }

    .viva-account-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        overflow-y: auto;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .viva-account-sidebar.viva-sidebar-open {
        left: 0;
        box-shadow: 10px 0 40px rgba(12, 11, 98, 0.15);
    }

    .viva-user-card {
        border-radius: 16px;
    }

    .viva-myaccount-page .woocommerce-MyAccount-navigation {
        border-radius: 14px;
    }

    /* Dashboard */
    .viva-dash-greeting {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .viva-dash-greeting-text h2 {
        font-size: 20px;
    }

    .viva-dash-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .viva-dash-stat-card {
        border-radius: 12px;
        padding: 18px 16px;
    }

    .viva-dash-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .viva-dash-action-card {
        padding: 18px 12px;
        border-radius: 12px;
    }

    /* Orders list */
    .viva-order-row {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 14px;
        position: relative;
    }

    .viva-order-row-items {
        grid-column: 1 / -1;
        display: none;
    }

    .viva-order-row-total {
        text-align: left;
    }

    .viva-order-row-status {
        text-align: left;
        grid-column: 1 / -1;
    }

    .viva-order-row-action {
        text-align: right !important;
        margin-left: auto !important;
        position: absolute !important;
        bottom: 10px !important;
        right: 16px !important;
    }

    /* eSIM cards */
    .viva-esims-grid {
        grid-template-columns: 1fr;
    }

    .viva-esim-card {
        padding: 20px;
        min-height: 200px;
    }

    /* Orders table */
    .viva-myaccount-page .woocommerce-orders-table,
    .viva-myaccount-page .woocommerce-orders-table thead,
    .viva-myaccount-page .woocommerce-orders-table tbody,
    .viva-myaccount-page .woocommerce-orders-table th,
    .viva-myaccount-page .woocommerce-orders-table td,
    .viva-myaccount-page .woocommerce-orders-table tr {
        display: block;
    }

    .viva-myaccount-page .woocommerce-orders-table thead {
        display: none;
    }

    .viva-myaccount-page .woocommerce-orders-table tbody tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 16px;
        margin-bottom: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .viva-myaccount-page .woocommerce-orders-table tbody td {
        padding: 4px 0;
        border: none;
        flex: 1 1 auto;
    }

    .viva-myaccount-page .woocommerce-orders-table tbody td::before {
        content: attr(data-title) ': ';
        font-weight: 600;
        color: #94a3b8;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 2px;
    }

    .viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions {
        width: 100%;
        margin-top: 6px;
    }

    .viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions::before {
        display: none;
    }

    .viva-myaccount-page .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.woocommerce-button {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    /* QR Modal */
    .viva-qr-modal {
        padding: 24px 20px;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .viva-qr-modal-code img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .viva-auth-wrapper {
        padding: 20px 12px;
    }

    .viva-auth-container {
        padding: 24px 20px 20px;
    }

    .viva-auth-brand {
        margin-bottom: 24px;
    }

    .viva-auth-tab {
        font-size: 13px;
        padding: 10px 12px;
    }

    .viva-auth-tab i {
        display: none;
    }

    .viva-dash-stat-number {
        font-size: 18px;
    }

    .viva-esim-card {
        padding: 18px;
    }

    .viva-esim-plan-name {
        font-size: 15px;
    }

    .viva-qr-modal-code img {
        width: 180px;
        height: 180px;
    }

    .viva-qr-detail-value {
        font-size: 11px;
    }
}


/* ===========================================
   WOOCOMMERCE NOTICES OVERRIDE (LOGGED IN)
   =========================================== */
.viva-myaccount-page .woocommerce-message,
.viva-myaccount-page .woocommerce-error,
.viva-myaccount-page .woocommerce-info {
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
    border-left-width: 4px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.viva-myaccount-page .woocommerce-message {
    border-color: #dcfce7;
    border-left-color: #22c55e;
    color: #166534;
    background: #f0fdf4;
}

.viva-myaccount-page .woocommerce-error {
    border-color: #fee2e2;
    border-left-color: #ef4444;
    color: #991b1b;
    background: #fef2f2;
}

.viva-myaccount-page .woocommerce-info {
    border-color: #dbeafe;
    border-left-color: #3b82f6;
    color: #1e40af;
    background: #eff6ff;
}

.viva-myaccount-page .woocommerce-message::before,
.viva-myaccount-page .woocommerce-error::before,
.viva-myaccount-page .woocommerce-info::before {
    display: none;
}

.viva-myaccount-page .woocommerce-message a,
.viva-myaccount-page .woocommerce-info a {
    color: #eb431e;
    font-weight: 600;
}


/* ===========================================
   VIEW ORDER ESIM DETAILS INSIDE ACCOUNT
   =========================================== */
.viva-myaccount-page .esim-details-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.04);
}

.viva-myaccount-page .esim-details-header {
    background: linear-gradient(135deg, #0c0b62, #1a1985);
    color: #ffffff;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.viva-myaccount-page .esim-details-header i {
    font-size: 20px;
    color: #eb431e;
}

.viva-myaccount-page .esim-details-body .esim-qr-section {
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.viva-myaccount-page .esim-details-body .esim-qr-section h2 {
    color: #0c0b62;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    background: none;
    border: none;
    padding: 0;
}

.viva-myaccount-page .esim-details-body .esim-qr-container {
    border: 3px solid #0c0b62;
    border-radius: 14px;
    padding: 16px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(12, 11, 98, 0.08);
}

.viva-myaccount-page .esim-details-body .esim-qr-code {
    width: 220px;
    height: 220px;
    display: block;
}

.viva-myaccount-page .esim-details-body .esim-iccid-display {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px auto 0;
    max-width: 380px;
    text-align: center;
}

.viva-myaccount-page .esim-details-body .iccid-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.viva-myaccount-page .esim-details-body .iccid-value {
    color: #0c0b62;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 1.5px;
}

.viva-myaccount-page .esim-details-body .esim-details-wrapper {
    padding: 24px;
    margin: 0;
    border: none;
    box-shadow: none;
}

.viva-myaccount-page .esim-details-body .esim-logo-section {
    display: none;
}

.viva-myaccount-page .esim-details-body .esim-details-section h2 {
    color: #0c0b62;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    background: none;
    border: none;
    padding: 0;
}

.viva-myaccount-page .esim-details-body .esim-data-table {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.viva-myaccount-page .esim-details-body .esim-data-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    padding: 14px 18px;
    border-color: #f1f5f9;
}

.viva-myaccount-page .esim-details-body .esim-data-table td {
    padding: 14px 18px;
    color: #1e293b;
    font-size: 14px;
    border-color: #f1f5f9;
}

.viva-myaccount-page .esim-details-body .esim-data-table code {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #0c0b62;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}


/* ===========================================
   FAVICON IMAGE IN AUTH LOGO
   =========================================== */
.viva-auth-logo-icon img.viva-auth-favicon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* When favicon is present, adjust the container */
.viva-auth-logo-icon:has(img.viva-auth-favicon) {
    background: none;
    box-shadow: none;
    animation: none;
    overflow: hidden;
}


/* ===========================================
   LOST PASSWORD / RESET PASSWORD PAGE
   =========================================== */

/* Reuse the auth wrapper for lost password */
.viva-auth-lost-password .woocommerce-ResetPassword,
.viva-auth-reset-password .woocommerce-ResetPassword {
    width: 100%;
}

.viva-auth-lost-password .woocommerce-ResetPassword p,
.viva-auth-reset-password .woocommerce-ResetPassword p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Form fields */
.viva-auth-lost-password .woocommerce-ResetPassword .form-row,
.viva-auth-reset-password .woocommerce-ResetPassword .form-row {
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.viva-auth-lost-password .woocommerce-ResetPassword label,
.viva-auth-reset-password .woocommerce-ResetPassword label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.viva-auth-lost-password .woocommerce-ResetPassword label .required,
.viva-auth-reset-password .woocommerce-ResetPassword label .required {
    color: #eb431e;
}

.viva-auth-lost-password .woocommerce-ResetPassword input[type="text"],
.viva-auth-lost-password .woocommerce-ResetPassword input[type="email"],
.viva-auth-lost-password .woocommerce-ResetPassword input[type="password"],
.viva-auth-reset-password .woocommerce-ResetPassword input[type="text"],
.viva-auth-reset-password .woocommerce-ResetPassword input[type="email"],
.viva-auth-reset-password .woocommerce-ResetPassword input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
}

.viva-auth-lost-password .woocommerce-ResetPassword input:focus,
.viva-auth-reset-password .woocommerce-ResetPassword input:focus {
    border-color: #eb431e;
    box-shadow: 0 0 0 3px rgba(235, 67, 30, 0.08);
}

/* Submit button */
.viva-auth-lost-password .woocommerce-ResetPassword .woocommerce-Button,
.viva-auth-reset-password .woocommerce-ResetPassword .woocommerce-Button,
.viva-auth-lost-password .woocommerce-ResetPassword button[type="submit"],
.viva-auth-reset-password .woocommerce-ResetPassword button[type="submit"] {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #eb431e 0%, #d63a1a 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(235, 67, 30, 0.25);
    font-family: inherit;
}

.viva-auth-lost-password .woocommerce-ResetPassword .woocommerce-Button:hover,
.viva-auth-reset-password .woocommerce-ResetPassword .woocommerce-Button:hover,
.viva-auth-lost-password .woocommerce-ResetPassword button[type="submit"]:hover,
.viva-auth-reset-password .woocommerce-ResetPassword button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
    background: linear-gradient(135deg, #f04d28 0%, #eb431e 100%);
}

.viva-auth-lost-password .woocommerce-ResetPassword .woocommerce-Button:active,
.viva-auth-reset-password .woocommerce-ResetPassword .woocommerce-Button:active {
    transform: translateY(0);
}

/* Back to login link */
.viva-auth-back-to-login {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.viva-auth-back-to-login a {
    font-size: 14px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.viva-auth-back-to-login a i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.viva-auth-back-to-login a:hover {
    color: #eb431e;
}

.viva-auth-back-to-login a:hover i {
    transform: translateX(-3px);
}

/* WooCommerce notices inside lost password */
.viva-auth-lost-password .woocommerce-error,
.viva-auth-lost-password .woocommerce-message,
.viva-auth-lost-password .woocommerce-info,
.viva-auth-reset-password .woocommerce-error,
.viva-auth-reset-password .woocommerce-message,
.viva-auth-reset-password .woocommerce-info {
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    border: none;
}

.viva-auth-lost-password .woocommerce-error,
.viva-auth-reset-password .woocommerce-error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.viva-auth-lost-password .woocommerce-message,
.viva-auth-reset-password .woocommerce-message {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

.viva-auth-lost-password .woocommerce-info,
.viva-auth-reset-password .woocommerce-info {
    background: #eff6ff;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

/* Hide the default page title on lost-password */
.woocommerce-account.woocommerce-lost-password .entry-header,
.woocommerce-account.woocommerce-lost-password .entry-title,
.woocommerce-account.woocommerce-reset-password .entry-header,
.woocommerce-account.woocommerce-reset-password .entry-title {
    display: none !important;
}

/* Responsive lost password */
@media (max-width: 480px) {
    .viva-auth-lost-password,
    .viva-auth-reset-password {
        padding: 24px 20px 20px;
    }
}


/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    body.viva-myaccount-page {
        background: #fff !important;
    }

    .viva-account-sidebar,
    .viva-mobile-sidebar-toggle,
    .site-header,
    .site-footer,
    .viva-esim-card-actions,
    .viva-qr-modal-footer {
        display: none !important;
    }

    .viva-account-wrapper {
        grid-template-columns: 1fr;
    }

    .viva-esim-card {
        break-inside: avoid;
        box-shadow: none;
    }
}


/* ===========================================
   LOYALTY & VIVAMONEY PAGE
   =========================================== */

.viva-loyalty-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Hero / Level Card ---------- */
.viva-loyalty-hero {
    position: relative;
    border-radius: 20px;
    padding: 32px 30px;
    overflow: hidden;
    color: #fff;
}

.viva-loyalty-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
}

/* Level-based gradients */
.viva-loyalty-level--new .viva-loyalty-hero-bg {
    background: linear-gradient(135deg, #0c0b62 0%, #1a1985 40%, #2a2790 100%);
}
.viva-loyalty-level--silver .viva-loyalty-hero-bg {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 40%, #9ca3af 100%);
}
.viva-loyalty-level--gold .viva-loyalty-hero-bg {
    background: linear-gradient(135deg, #92400e 0%, #b45309 40%, #d97706 100%);
}
.viva-loyalty-level--platinum .viva-loyalty-hero-bg {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
}

.viva-loyalty-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(235, 67, 30, 0.18), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.viva-loyalty-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 10%;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.viva-loyalty-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.viva-loyalty-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.viva-loyalty-badge {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.viva-loyalty-badge i {
    font-size: 28px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.viva-loyalty-level--gold .viva-loyalty-badge i {
    color: #fbbf24;
}
.viva-loyalty-level--platinum .viva-loyalty-badge i {
    color: #a78bfa;
}

.viva-loyalty-hero-info {
    min-width: 0;
    flex: 1;
}

.viva-loyalty-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 4px;
}

.viva-loyalty-level-name {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.3px;
}

/* Progress bar */
/* .viva-loyalty-progress-wrap {
    max-width: 360px;
} */

.viva-loyalty-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.viva-loyalty-progress-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, #eb431e, #f97316, #fbbf24);
    transition: width 1s ease;
}

.viva-loyalty-progress-labels {
    display: flex;
    justify-content: space-between;
}

.viva-loyalty-plabel {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.viva-loyalty-plabel.reached {
    color: rgba(255, 255, 255, 0.6);
}

.viva-loyalty-plabel.active {
    color: #fbbf24;
    font-weight: 700;
}

/* Cashback badge (right side) */
.viva-loyalty-hero-right {
    text-align: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 20px 28px;
}

.viva-loyalty-cashback-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.viva-loyalty-cashback-value {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    margin-bottom: 4px;
}

.viva-loyalty-cashback-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}


/* ---------- Balance + Earn Row ---------- */
.viva-loyalty-balance-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

.viva-loyalty-balance-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.viva-loyalty-balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #eb431e, #f97316);
}

.viva-loyalty-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(235, 67, 30, 0.1);
}

.viva-loyalty-balance-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.08), rgba(249, 115, 22, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viva-loyalty-balance-icon i {
    font-size: 24px;
    color: #eb431e;
}

.viva-loyalty-balance-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.viva-loyalty-balance-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.viva-loyalty-balance-amount {
    font-size: 28px;
    font-weight: 800;
    color: #0c0b62;
    line-height: 1.2;
}

.viva-loyalty-balance-amount .woocommerce-Price-amount {
    font-size: inherit;
}

/* Earn card */
.viva-loyalty-earn-card {
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.03), rgba(235, 67, 30, 0.03));
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
}

.viva-loyalty-earn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(12, 11, 98, 0.06);
}

.viva-loyalty-earn-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0c0b62, #1a1985);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.viva-loyalty-earn-icon i {
    font-size: 20px;
    color: #fff;
}

.viva-loyalty-earn-info {
    flex: 1;
    min-width: 0;
}

.viva-loyalty-earn-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #0c0b62;
    margin-bottom: 4px;
}

.viva-loyalty-earn-desc {
    display: block;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.viva-loyalty-earn-desc strong {
    color: #eb431e;
}

.viva-loyalty-earn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(235, 67, 30, 0.25);
}

.viva-loyalty-earn-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
    color: #fff;
}


/* ---------- Transaction History ---------- */
.viva-loyalty-history {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 28px;
}

.viva-loyalty-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #0c0b62;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viva-loyalty-section-title i {
    color: #eb431e;
    font-size: 16px;
}

.viva-loyalty-history-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.viva-loyalty-tx {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.viva-loyalty-tx:last-child {
    border-bottom: none;
}

.viva-loyalty-tx:hover {
    background: rgba(248, 250, 252, 0.5);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 10px;
}

.viva-loyalty-tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.viva-tx--earn .viva-loyalty-tx-icon {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(52, 211, 153, 0.08));
    color: #059669;
}

.viva-tx--spend .viva-loyalty-tx-icon {
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.08), rgba(249, 115, 22, 0.08));
    color: #eb431e;
}

.viva-loyalty-tx-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.viva-loyalty-tx-desc {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.viva-loyalty-tx-date {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.viva-loyalty-tx-amount {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.viva-amount--earn {
    color: #059669;
}

.viva-amount--spend {
    color: #eb431e;
}

.viva-amount--earn .woocommerce-Price-amount,
.viva-amount--spend .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Empty history */
.viva-loyalty-empty-history {
    text-align: center;
    padding: 40px 20px;
}

.viva-loyalty-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.06), rgba(235, 67, 30, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #94a3b8;
}

.viva-loyalty-empty-history p {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}

.viva-loyalty-empty-history .viva-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(235, 67, 30, 0.25);
}

.viva-loyalty-empty-history .viva-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
    color: #fff;
}


/* ---------- Redeem Modal ---------- */
.viva-redeem-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(12, 11, 98, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.viva-redeem-overlay.active {
    opacity: 1;
    visibility: visible;
}

.viva-redeem-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 0;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(12, 11, 98, 0.15), 0 1px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.viva-redeem-overlay.active .viva-redeem-modal {
    transform: translateY(0) scale(1);
}

.viva-redeem-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.viva-redeem-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.viva-redeem-modal-header {
    text-align: center;
    padding: 32px 28px 20px;
    background: linear-gradient(135deg, rgba(12, 11, 98, 0.03), rgba(235, 67, 30, 0.03));
    border-bottom: 1px solid #f1f5f9;
}

.viva-redeem-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0c0b62, #1a1985);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: 0 6px 20px rgba(12, 11, 98, 0.2);
}

.viva-redeem-modal-icon i {
    font-size: 22px;
    color: #fff;
}

.viva-redeem-modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0c0b62;
    margin: 0 0 6px;
}

.viva-redeem-modal-header p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

.viva-redeem-modal-body {
    padding: 24px 28px 28px;
}

.viva-redeem-balance-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.viva-redeem-balance-display span {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.viva-redeem-balance-display strong {
    font-size: 18px;
    color: #0c0b62;
    font-weight: 800;
}

.viva-redeem-amount-group {
    margin-bottom: 20px;
}

.viva-redeem-amount-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.viva-redeem-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.viva-redeem-currency {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 700;
    color: #94a3b8;
}

.viva-redeem-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 36px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
    box-sizing: border-box;
}

.viva-redeem-input-wrap input:focus {
    border-color: #0c0b62;
    box-shadow: 0 0 0 3px rgba(12, 11, 98, 0.08);
}

.viva-redeem-quick-amounts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.viva-redeem-quick {
    padding: 8px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.viva-redeem-quick:hover {
    border-color: #0c0b62;
    color: #0c0b62;
    background: rgba(12, 11, 98, 0.04);
}

.viva-redeem-quick--all {
    background: linear-gradient(135deg, rgba(235, 67, 30, 0.06), rgba(12, 11, 98, 0.06));
    border-color: rgba(235, 67, 30, 0.2);
    color: #eb431e;
    font-weight: 700;
}

.viva-redeem-quick .woocommerce-Price-amount {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.viva-redeem-generate-btn {
    width: 100%;
    padding: 15px 24px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #eb431e, #d63a1a);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(235, 67, 30, 0.25);
    font-family: inherit;
    margin-top: 4px;
}

.viva-redeem-generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(235, 67, 30, 0.35);
}

.viva-redeem-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Result */
.viva-redeem-result {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
}

.viva-redeem-success-icon {
    font-size: 36px;
    color: #16a34a;
    margin-bottom: 10px;
}

.viva-redeem-result p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 10px;
}

.viva-redeem-code {
    font-size: 22px;
    font-weight: 800;
    color: #0c0b62;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    background: #fff;
    border: 2px dashed #0c0b62;
    border-radius: 12px;
    margin-bottom: 12px;
    display: inline-block;
    word-break: break-all;
}

.viva-redeem-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1.5px solid #0c0b62;
    border-radius: 10px;
    background: #fff;
    color: #0c0b62;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.viva-redeem-copy-btn:hover {
    background: #0c0b62;
    color: #fff;
}

.viva-redeem-note {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.viva-redeem-error {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #fecaca;
}


/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .viva-loyalty-hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .viva-loyalty-hero-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .viva-loyalty-hero-right {
        width: 100%;
    }

    .viva-loyalty-balance-row {
        grid-template-columns: 1fr;
    }

    .viva-loyalty-earn-card {
        flex-direction: column;
        text-align: center;
    }

    .viva-loyalty-redeem-inner {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
    }

    .viva-loyalty-redeem-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .viva-loyalty-redeem-right {
        width: 100%;
    }

    .viva-loyalty-redeem-balance-wrap {
        width: 100%;
    }

    .viva-loyalty-progress-labels {
        gap: 4px;
        flex-wrap: wrap;
    }

    .viva-loyalty-tx {
        flex-wrap: wrap;
    }

    .viva-loyalty-tx-amount {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }

    .viva-redeem-modal {
        max-width: 100%;
        border-radius: 18px;
    }
}



.woocommerce-form.woocommerce-form-login{
    margin-top: 0px !important;
}
.woocommerce-form.woocommerce-form-register{
    padding: 20px !important;
}