/**
 * Voucher System - Liquid Glass Dark Theme
 * Matches community glassmorphism design
 * Colors: #ff6b35 orange, black bg, warm glass surfaces
 */

/* ========================================================================
   CSS VARIABLES
   ======================================================================== */
:root, .theme-dark {
    --vch-primary: #ff6b35;
    --vch-primary-dark: #e55a2b;
    --vch-primary-light: #ff8f5e;
    --vch-primary-glow: rgba(255, 107, 53, 0.4);
    --vch-success: #22c55e;
    --vch-error: #ef4444;
    --vch-warning: #ffc107;
    --vch-info: #00b8d4;
    --vch-bg: #000000;
    --vch-glass-bg: rgba(44, 24, 16, 0.3);
    --vch-glass-bg-hover: rgba(44, 24, 16, 0.45);
    --vch-glass-border: rgba(255, 107, 53, 0.15);
    --vch-glass-border-subtle: rgba(255, 107, 53, 0.1);
    --vch-glass-shine: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, transparent 60%);
    --vch-glass-shadow: 0 12px 48px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.05) inset;
    --vch-text: #f0ece8;
    --vch-text-sec: #d4ccc4;
    --vch-text-muted: #b8a99a;
    --vch-text-dim: #8a7b6c;
    --vch-blur: 25px;
    --vch-radius: 20px;
    --vch-radius-sm: 12px;
    --vch-transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================================================
   RESET & BASE
   ======================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--vch-text);
    background: var(--vch-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255,107,53,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255,107,53,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: vchAmbient 12s ease-in-out infinite;
}

@keyframes vchAmbient { 0%,100%{opacity:.6} 50%{opacity:1} }

::selection { background: var(--vch-primary-glow); color: var(--vch-text); }

a { color: var(--vch-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--vch-primary-dark); }
img { max-width: 100%; height: auto; }

.vch-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================================================
   HEADER
   ======================================================================== */
.vch-header {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    z-index: 1000;
    background: rgba(44, 24, 16, 0.45);
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid var(--vch-glass-border);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.05) inset;
    transition: all 0.5s var(--vch-transition);
}

.vch-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: var(--vch-glass-shine);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
    z-index: 1;
}

.vch-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    position: relative;
    z-index: 2;
}

.vch-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--vch-text);
    font-size: 1.1rem;
    font-weight: 500;
}
.vch-logo i { color: var(--vch-primary); font-size: 1.3rem; }
.vch-logo strong { color: var(--vch-primary); }

.vch-header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vch-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    color: var(--vch-text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--vch-transition);
    border: 1px solid transparent;
    position: relative;
}

.vch-nav-link:hover {
    color: var(--vch-text);
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.15);
}

.vch-nav-link.active {
    color: var(--vch-primary);
    background: rgba(255,107,53,0.1);
    border-color: rgba(255,107,53,0.25);
}

.vch-admin-link {
    color: var(--vch-primary);
    background: rgba(255,107,53,0.08);
    border: 1px solid rgba(255,107,53,0.2);
}

.vch-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vch-user-menu { position: relative; }

.vch-user-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--vch-text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.vch-user-toggle:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.15);
}

.vch-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,107,53,0.3);
}

.vch-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 200px;
    background: rgba(44, 24, 16, 0.9);
    backdrop-filter: blur(35px);
    border: 1px solid var(--vch-glass-border);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    padding: 8px;
    z-index: 100;
}

.vch-user-dropdown.active { display: block; }

.vch-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--vch-text-sec);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.vch-user-dropdown a:hover {
    background: rgba(255,107,53,0.1);
    color: var(--vch-text);
}

.vch-user-dropdown hr {
    border: none;
    height: 1px;
    background: rgba(255,107,53,0.1);
    margin: 4px 0;
}

/* ========================================================================
   MAIN CONTENT
   ======================================================================== */
.vch-main {
    padding-top: 100px;
    min-height: calc(100vh - 120px);
    position: relative;
    z-index: 1;
}

/* ========================================================================
   BUTTONS
   ======================================================================== */
.vch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--vch-radius-sm);
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s var(--vch-transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-family: inherit;
}

.vch-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
    border-radius: var(--vch-radius-sm) var(--vch-radius-sm) 0 0;
    pointer-events: none;
}

.vch-btn-primary {
    background: linear-gradient(135deg, rgba(255,107,53,0.7), rgba(229,90,43,0.6));
    color: white;
    border-color: rgba(255,107,53,0.4);
    box-shadow: 0 4px 20px rgba(255,107,53,0.25), 0 1px 0 rgba(255,255,255,0.15) inset;
}

.vch-btn-primary:hover {
    background: linear-gradient(135deg, rgba(255,107,53,0.9), rgba(229,90,43,0.8));
    border-color: rgba(255,107,53,0.6);
    box-shadow: 0 8px 32px rgba(255,107,53,0.35), 0 0 50px rgba(255,107,53,0.1), 0 1px 0 rgba(255,255,255,0.2) inset;
    color: white;
    transform: translateY(-1px);
}

.vch-btn-secondary {
    background: rgba(255,107,53,0.06);
    border-color: rgba(255,107,53,0.2);
    color: var(--vch-primary);
}

.vch-btn-secondary:hover {
    background: rgba(255,107,53,0.15);
    border-color: rgba(255,107,53,0.4);
    color: var(--vch-text);
}

.vch-btn-success {
    background: linear-gradient(135deg, rgba(34,197,94,0.7), rgba(22,163,74,0.6));
    color: white;
    border-color: rgba(34,197,94,0.4);
    box-shadow: 0 4px 20px rgba(34,197,94,0.25);
}

.vch-btn-success:hover {
    background: linear-gradient(135deg, rgba(34,197,94,0.9), rgba(22,163,74,0.8));
    transform: translateY(-1px);
    color: white;
}

.vch-btn-danger {
    background: linear-gradient(135deg, rgba(239,68,68,0.7), rgba(220,38,38,0.6));
    color: white;
    border-color: rgba(239,68,68,0.4);
}

.vch-btn-danger:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.9), rgba(220,38,38,0.8));
    color: white;
}

.vch-btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.vch-btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.vch-btn-block { width: 100%; }

/* ========================================================================
   GLASS CARDS
   ======================================================================== */
.vch-glass {
    background: var(--vch-glass-bg);
    backdrop-filter: blur(var(--vch-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--vch-blur)) saturate(180%);
    border: 1px solid var(--vch-glass-border-subtle);
    border-radius: var(--vch-radius);
    box-shadow: var(--vch-glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--vch-transition);
}

.vch-glass::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: var(--vch-glass-shine);
    border-radius: var(--vch-radius) var(--vch-radius) 0 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.vch-glass:hover {
    border-color: rgba(255,107,53,0.25);
    box-shadow: var(--vch-glass-shadow), 0 0 30px var(--vch-primary-glow);
}
.vch-glass:hover::before { opacity: 1; }

/* ========================================================================
   ALERTS
   ======================================================================== */
.vch-alert {
    padding: 14px 0;
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    z-index: 999;
    border-radius: 14px;
    backdrop-filter: blur(25px);
    animation: vchSlideDown 0.4s var(--vch-transition);
}

@keyframes vchSlideDown { from { opacity:0; transform:translateX(-50%) translateY(-20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

.vch-alert .vch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vch-alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--vch-success);
}

.vch-alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--vch-error);
}

.vch-alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 6px;
}

/* ========================================================================
   LOGIN PROMPT (not logged in)
   ======================================================================== */
.vch-login-prompt {
    max-width: 500px;
    margin: 80px auto;
    padding: 60px 40px;
    text-align: center;
    background: rgba(44, 24, 16, 0.35);
    backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255,107,53,0.15);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.vch-login-prompt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: var(--vch-glass-shine);
    pointer-events: none;
}

.vch-login-prompt .vch-lock-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.vch-login-prompt h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vch-text);
    margin-bottom: 10px;
}

.vch-login-prompt p {
    color: var(--vch-text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.vch-hero {
    padding: 50px 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(44, 24, 16, 0.3);
    backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255,107,53,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 1px 0 rgba(255,255,255,0.06) inset;
    margin-bottom: 40px;
}

.vch-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, transparent 60%);
    border-radius: 30px 30px 0 0;
    pointer-events: none;
    z-index: 1;
}

.vch-hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -30%;
    width: 160%; height: 200%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,107,53,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: vchHeroPulse 8s ease-in-out infinite;
}

@keyframes vchHeroPulse { 0%,100%{opacity:.6;transform:scale(1)} 50%{opacity:1;transform:scale(1.05)} }

.vch-hero-content {
    position: relative;
    z-index: 2;
}

.vch-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--vch-text);
}

.vch-hero h1 span {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8f5e 50%, #e55a2b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vch-hero p {
    font-size: 1.1rem;
    color: var(--vch-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.vch-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: var(--vch-success);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========================================================================
   VOUCHER GRID
   ======================================================================== */
.vch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

/* ========================================================================
   VOUCHER CARD
   ======================================================================== */
.vch-card {
    background: var(--vch-glass-bg);
    backdrop-filter: blur(var(--vch-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--vch-blur)) saturate(180%);
    border: 1px solid var(--vch-glass-border-subtle);
    border-radius: var(--vch-radius);
    box-shadow: var(--vch-glass-shadow);
    overflow: hidden;
    transition: all 0.4s var(--vch-transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.vch-card:hover {
    border-color: rgba(255,107,53,0.3);
    box-shadow: var(--vch-glass-shadow), 0 0 40px rgba(255,107,53,0.12);
    transform: translateY(-4px);
}

.vch-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255,107,53,0.1);
}

.vch-card-image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44,24,16,0.5);
    border-bottom: 1px solid rgba(255,107,53,0.1);
    font-size: 3rem;
    color: var(--vch-primary);
}

.vch-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vch-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vch-text);
    margin-bottom: 8px;
}

.vch-card-desc {
    color: var(--vch-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vch-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,107,53,0.1);
}

.vch-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--vch-primary);
}

.vch-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255,107,53,0.1);
    border: 1px solid rgba(255,107,53,0.2);
}

.vch-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vch-stock-available {
    background: rgba(34,197,94,0.1);
    color: var(--vch-success);
    border: 1px solid rgba(34,197,94,0.2);
}

.vch-stock-limited {
    background: rgba(255,193,7,0.1);
    color: var(--vch-warning);
    border: 1px solid rgba(255,193,7,0.2);
}

.vch-stock-out {
    background: rgba(239,68,68,0.1);
    color: var(--vch-error);
    border: 1px solid rgba(239,68,68,0.2);
}

/* ========================================================================
   CHECKOUT PAGE
   ======================================================================== */
.vch-checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

.vch-checkout-card {
    padding: 35px;
    border-radius: 24px;
    background: rgba(44,24,16,0.35);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,107,53,0.12);
    box-shadow: 0 12px 48px rgba(0,0,0,0.25), 0 1px 0 rgba(255,255,255,0.05) inset;
    position: relative;
    overflow: hidden;
}

.vch-checkout-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    border-radius: 24px 24px 0 0;
    pointer-events: none;
}

.vch-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,107,53,0.15);
}

.vch-card-header i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,107,53,0.12);
    border-radius: 12px;
    color: var(--vch-primary);
    font-size: 1.2rem;
    border: 1px solid rgba(255,107,53,0.25);
}

.vch-card-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vch-text);
    margin: 0;
}

/* Voucher preview in checkout */
.vch-voucher-preview {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.vch-voucher-preview img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,107,53,0.15);
}

.vch-voucher-preview-placeholder {
    width: 120px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(44,24,16,0.5);
    border: 1px solid rgba(255,107,53,0.15);
    font-size: 2rem;
    color: var(--vch-primary);
    flex-shrink: 0;
}

.vch-voucher-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--vch-text);
    margin-bottom: 6px;
}

.vch-voucher-info p {
    color: var(--vch-text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Price summary */
.vch-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,107,53,0.08);
    color: var(--vch-text-sec);
    font-size: 0.95rem;
}

.vch-summary-row.total {
    border-bottom: none;
    padding-top: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--vch-text);
}

.vch-summary-row.total span:last-child {
    color: var(--vch-primary);
}

/* ========================================================================
   PAYMENT FORM
   ======================================================================== */
.vch-form-group {
    margin-bottom: 20px;
}

.vch-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--vch-text-sec);
}

.vch-form-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--vch-radius-sm);
    border: 1px solid rgba(255,107,53,0.15);
    background: rgba(44,24,16,0.5);
    color: var(--vch-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.vch-form-input:focus {
    outline: none;
    border-color: rgba(255,107,53,0.4);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.vch-form-input::placeholder { color: var(--vch-text-dim); }

textarea.vch-form-input { resize: vertical; min-height: 80px; }
select.vch-form-input { cursor: pointer; }

/* Stripe element container */
.vch-stripe-element {
    padding: 14px 16px;
    border-radius: var(--vch-radius-sm);
    border: 1px solid rgba(255,107,53,0.15);
    background: rgba(44,24,16,0.5);
    transition: all 0.3s ease;
}

.vch-stripe-element.focused {
    border-color: rgba(255,107,53,0.4);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

/* ========================================================================
   SUCCESS PAGE
   ======================================================================== */
.vch-success-wrapper {
    max-width: 700px;
    margin: 40px auto;
    text-align: center;
    padding: 60px 40px;
    background: rgba(44,24,16,0.35);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(34,197,94,0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vch-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(34,197,94,0.15);
    border: 2px solid rgba(34,197,94,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--vch-success);
    animation: vchSuccessPop 0.6s var(--vch-transition);
}

@keyframes vchSuccessPop { 0%{transform:scale(0)} 60%{transform:scale(1.2)} 100%{transform:scale(1)} }

.vch-success-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vch-text);
    margin-bottom: 10px;
}

.vch-success-wrapper p {
    color: var(--vch-text-muted);
    margin-bottom: 30px;
}

.vch-success-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================================
   RECEIPT
   ======================================================================== */
.vch-receipt {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    background: rgba(44,24,16,0.35);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255,107,53,0.15);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.vch-receipt-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,107,53,0.15);
    margin-bottom: 24px;
}

.vch-receipt-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vch-text);
}

.vch-receipt-header .receipt-code {
    color: var(--vch-primary);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-top: 8px;
}

.vch-receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,107,53,0.06);
}

.vch-receipt-row .label {
    color: var(--vch-text-muted);
    font-size: 0.9rem;
}

.vch-receipt-row .value {
    color: var(--vch-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.vch-receipt-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(255,107,53,0.2);
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
}

.vch-receipt-total .value { color: var(--vch-primary); }

.vch-receipt-actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================================================
   PURCHASES TABLE
   ======================================================================== */
.vch-table-wrap {
    overflow-x: auto;
    border-radius: var(--vch-radius);
    border: 1px solid var(--vch-glass-border-subtle);
}

.vch-table {
    width: 100%;
    border-collapse: collapse;
}

.vch-table th, .vch-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,107,53,0.06);
    font-size: 0.9rem;
}

.vch-table th {
    background: rgba(44,24,16,0.5);
    color: var(--vch-text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vch-table td { color: var(--vch-text-sec); }

.vch-table tbody tr {
    transition: background 0.2s;
}

.vch-table tbody tr:hover {
    background: rgba(255,107,53,0.04);
}

/* ========================================================================
   PAGINATION
   ======================================================================== */
.vch-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.vch-pagination a, .vch-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,107,53,0.1);
    color: var(--vch-text-sec);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    background: var(--vch-glass-bg);
}

.vch-pagination a:hover {
    border-color: rgba(255,107,53,0.3);
    background: rgba(255,107,53,0.1);
    color: var(--vch-text);
}

.vch-pagination .active {
    background: linear-gradient(135deg, rgba(255,107,53,0.7), rgba(229,90,43,0.6));
    border-color: rgba(255,107,53,0.4);
    color: white;
    font-weight: 600;
}

/* ========================================================================
   EMPTY STATE
   ======================================================================== */
.vch-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(44,24,16,0.2);
    border: 1px solid rgba(255,107,53,0.08);
    border-radius: var(--vch-radius);
}

.vch-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.vch-empty h3 {
    color: var(--vch-text-muted);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.vch-empty p {
    color: var(--vch-text-dim);
    font-size: 0.9rem;
}

/* ========================================================================
   ADMIN STYLES
   ======================================================================== */
.vch-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.vch-stat-card {
    padding: 24px;
    background: var(--vch-glass-bg);
    backdrop-filter: blur(var(--vch-blur));
    border: 1px solid var(--vch-glass-border-subtle);
    border-radius: var(--vch-radius);
    text-align: center;
}

.vch-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--vch-primary);
    margin-bottom: 4px;
}

.vch-stat-card .stat-label {
    color: var(--vch-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vch-admin-section {
    margin-bottom: 30px;
}

.vch-admin-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vch-text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Filters bar */
.vch-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--vch-glass-bg);
    border: 1px solid var(--vch-glass-border-subtle);
    border-radius: var(--vch-radius);
}

.vch-filters .vch-form-input {
    flex: 1;
    min-width: 180px;
}

/* Image upload */
.vch-image-upload {
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(255,107,53,0.2);
    border-radius: var(--vch-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.vch-image-upload:hover {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.04);
}

.vch-image-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.vch-image-upload .upload-content {
    text-align: center;
    color: var(--vch-text-muted);
}

.vch-image-upload .upload-content i {
    font-size: 2rem;
    color: var(--vch-primary);
    margin-bottom: 8px;
    display: block;
}

.vch-image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--vch-radius);
    border: 1px solid rgba(255,107,53,0.15);
    margin-bottom: 10px;
}

/* Status badges */
.vch-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vch-badge-active {
    background: rgba(34,197,94,0.1);
    color: var(--vch-success);
    border: 1px solid rgba(34,197,94,0.2);
}

.vch-badge-inactive {
    background: rgba(239,68,68,0.1);
    color: var(--vch-error);
    border: 1px solid rgba(239,68,68,0.2);
}

.vch-badge-pending {
    background: rgba(255,193,7,0.1);
    color: var(--vch-warning);
    border: 1px solid rgba(255,193,7,0.2);
}

/* Toggle switch */
.vch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.vch-toggle input { opacity: 0; width: 0; height: 0; }

.vch-toggle .slider {
    position: absolute;
    inset: 0;
    border-radius: 26px;
    background: rgba(44,24,16,0.6);
    border: 1px solid rgba(255,107,53,0.15);
    cursor: pointer;
    transition: 0.3s;
}

.vch-toggle .slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: var(--vch-text-muted);
    border-radius: 50%;
    transition: 0.3s;
}

.vch-toggle input:checked + .slider {
    background: rgba(34,197,94,0.3);
    border-color: rgba(34,197,94,0.5);
}

.vch-toggle input:checked + .slider::before {
    transform: translateX(22px);
    background: var(--vch-success);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.vch-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid rgba(255,107,53,0.08);
    position: relative;
    z-index: 1;
}

.vch-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vch-footer-left { color: var(--vch-text-dim); font-size: 0.85rem; }

.vch-footer-right {
    display: flex;
    gap: 20px;
}

.vch-footer-right a {
    color: var(--vch-text-muted);
    font-size: 0.85rem;
}

.vch-footer-right a:hover { color: var(--vch-primary); }

/* ========================================================================
   LOADING / SPINNER
   ======================================================================== */
.vch-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: var(--vch-primary);
    animation: vchSpin 0.8s linear infinite;
}

@keyframes vchSpin { to { transform: rotate(360deg); } }

.vch-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ========================================================================
   MODAL
   ======================================================================== */
.vch-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}

.vch-modal-overlay.active { display: flex; }

.vch-modal {
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(44,24,16,0.9);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    padding: 30px;
}

.vch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,107,53,0.12);
}

.vch-modal-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--vch-text);
}

.vch-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,107,53,0.1);
    border-radius: 10px;
    color: var(--vch-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.vch-modal-close:hover {
    background: rgba(255,107,53,0.2);
    color: var(--vch-text);
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
    .vch-checkout-grid { grid-template-columns: 1fr; }
    .vch-hero h1 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .vch-header-content { padding: 10px 16px; }
    .vch-header-nav { display: none; }
    .vch-header { width: calc(100% - 20px); top: 8px; border-radius: 14px; }
    .vch-main { padding-top: 80px; }
    .vch-grid { grid-template-columns: 1fr; }
    .vch-hero { padding: 30px 20px; margin-bottom: 24px; }
    .vch-hero h1 { font-size: 1.6rem; }
    .vch-checkout-card { padding: 24px; }
    .vch-receipt { padding: 24px; }
    .vch-voucher-preview { flex-direction: column; }
    .vch-success-buttons { flex-direction: column; }
    .vch-Footer-content { flex-direction: column; gap: 10px; text-align: center; }
    .vch-admin-grid { grid-template-columns: 1fr 1fr; }
    .vch-filters { flex-direction: column; }
    .vch-user-name { display: none; }
}

@media (max-width: 480px) {
    .vch-admin-grid { grid-template-columns: 1fr; }
}

/* ========================================================================
   PRINT STYLES (for receipt)
   ======================================================================== */
@media print {
    body { background: white !important; color: #000 !important; }
    body::before { display: none; }
    .vch-header, .vch-footer, .vch-alert, .vch-receipt-actions, .vch-nav-link { display: none !important; }
    .vch-main { padding-top: 0; }
    .vch-receipt {
        background: white !important;
        backdrop-filter: none !important;
        border: 2px solid #333 !important;
        box-shadow: none !important;
        color: #000 !important;
    }
    .vch-receipt * { color: #000 !important; }
    .vch-receipt-total .value { color: #e55a2b !important; }
}
