/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --bg-dark: #070913;
    --bg-card: rgba(15, 20, 38, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow-cyan: rgba(0, 229, 255, 0.25);
    
    --color-primary: #00E5FF;
    --color-secondary: #7C3AED;
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --text-cyan: #E0F7FA;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 0 20px rgba(0, 229, 255, 0.25);
    --shadow-neon-purple: 0 0 20px rgba(124, 58, 237, 0.25);
}

/* ==========================================================================
   LIGHT MODE VARIABLES & OVERRIDES
   ========================================================================== */
body.light-theme {
    --bg-dark: #F1F5F9;
    --bg-card: rgba(255, 255, 255, 0.78);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-glow-cyan: rgba(14, 116, 144, 0.15);
    
    --text-main: #0B0F19; /* Deep Navy matching ProntoCert logo */
    --text-muted: #475569;
    --text-cyan: #0A8484; /* Soft rich teal from logo */
    
    --shadow-neon: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    --shadow-neon-purple: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* Light Theme Component Specific Overrides */
body.light-theme .form-input {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0F172A;
}

body.light-theme .form-input::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

body.light-theme .form-input:focus {
    background: #FFFFFF;
    border-color: #008080;
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.15);
}

body.light-theme .form-input.invalid {
    border-color: #DC2626 !important;
    border-width: 2px;
    background-color: #FEF2F2;
    color: #991B1B;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.25);
}

body.light-theme .form-input.invalid + .input-icon {
    color: #DC2626;
}

body.light-theme .error-msg {
    color: #DC2626;
    font-weight: 700;
    margin-top: 0.15rem;
}

body.light-theme .product-toggle {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .toggle-btn:not(.active) {
    color: #475569;
}

body.light-theme .toggle-btn.active {
    background: linear-gradient(135deg, #008080, #0A1C3E);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.25);
}

body.light-theme .copia-cola-input {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #475569;
}

body.light-theme .qr-code-box {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 15px rgba(0, 128, 128, 0.1);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

body.light-theme .payment-status-footer {
    background: rgba(15, 23, 42, 0.01);
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .success-info-box {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
}

body.light-theme .btn-secondary {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0F172A;
}

body.light-theme .btn-secondary:hover {
    background: rgba(15, 23, 42, 0.08);
}

body.light-theme .dev-panel {
    background: rgba(255, 255, 255, 0.98);
    border-left: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

body.light-theme .dev-panel-header h3 {
    color: #0F172A;
}

body.light-theme .radio-card {
    background: rgba(15, 23, 42, 0.02);
    border-color: rgba(15, 23, 42, 0.06);
}

body.light-theme .dev-input {
    background: #FFFFFF;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0F172A;
}

body.light-theme .logo-text {
    color: #0A1C3E; /* Deep Navy from ProntoCert */
}

body.light-theme .logo-highlight {
    color: #008080; /* Teal from ProntoCert */
    text-shadow: none;
}

body.light-theme .logo-icon {
    background: linear-gradient(135deg, #008080, #0A1C3E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

body.light-theme .panel-title {
    background: linear-gradient(135deg, #0B0F19, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .panel-title.text-success {
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .status-text-pulse {
    color: #008080;
    text-shadow: none;
}

body.light-theme .loading-spinner {
    border-top-color: #008080;
    border-right-color: rgba(0, 128, 128, 0.1);
    border-bottom-color: rgba(0, 128, 128, 0.1);
    border-left-color: rgba(0, 128, 128, 0.1);
}

body.light-theme .total-value {
    color: #008080;
    text-shadow: none;
}

body.light-theme .warning-icon-wrapper {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}

body.light-theme .warning-icon {
    color: #DC2626;
    animation: warningPulseRed 1.5s infinite alternate ease-in-out;
}

@keyframes warningPulseRed {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 2px rgba(220, 38, 38, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.6)); }
}

body.light-theme .warning-modal-title {
    color: #DC2626;
}

body.light-theme .countdown-progress-circle {
    stroke: #DC2626;
}

body.light-theme .countdown-number {
    color: #DC2626;
}

body.light-theme .warning-btn {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.25);
}

body.light-theme .warning-btn:hover {
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Deep Space Blur Backgrounds */
.glow-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, rgba(7, 9, 19, 0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    animation: drift 15s infinite alternate ease-in-out;
}

.glow-bg-secondary {
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(7, 9, 19, 0) 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
    animation: drift 15s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

/* ==========================================================================
   APP CONTAINER & LAYOUT
   ========================================================================== */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 10;
}

/* App Header & Logo */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    max-height: 48px; /* Small and elegant sizing */
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo-highlight {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Header Right Align & Theme Switcher */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-neon);
}

.btn-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

body.light-theme .btn-theme-toggle {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0F172A;
}

body.light-theme .btn-theme-toggle:hover {
    background: rgba(15, 23, 42, 0.08);
}

/* Progressive Step Tracker */
.step-tracker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: var(--transition-smooth);
}

.step.active {
    opacity: 1;
}

.step.completed .step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.step.active .step-num {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-color: transparent;
    color: var(--bg-dark);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-heading);
}

.step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    transition: var(--transition-smooth);
}

.step-line.completed {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* ==========================================================================
   CHECKOUT MAIN GRID
   ========================================================================== */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   GLASSMORPHISM CARDS (CHECKOUT PANELS)
   ========================================================================== */
.checkout-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    display: none; /* Controlled via JS */
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
    animation: slideIn 0.4s ease-out;
}

.checkout-card.active {
    display: flex;
}

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

.panel-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFF, #C7D2FE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-title.text-success {
    background: linear-gradient(135deg, #FFF, var(--color-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: -0.5rem;
}

/* ==========================================================================
   PRODUCT SELECTOR / TOGGLE (STEP 1)
   ========================================================================== */
.product-toggle-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.35rem;
    border-radius: 14px;
    gap: 0.25rem;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.85rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.toggle-btn:hover {
    color: var(--text-main);
}

.toggle-btn.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

/* ==========================================================================
   FORM CONTROLS & MASKS
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.8rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.form-input:focus + .input-icon {
    color: var(--color-primary);
}

/* Input Validations Styles */
.form-input.invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

.error-msg {
    font-size: 0.8rem;
    color: var(--color-error);
    display: none;
}

.form-input.invalid ~ .error-msg {
    display: block;
}

.input-helper {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 0.1rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-primary {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 14px;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.2);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.35);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.glow-green {
    background: linear-gradient(135deg, var(--color-success), #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary.glow-green:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-back {
    align-self: flex-start;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-back:hover {
    color: var(--color-primary);
}

.icon-next {
    transition: var(--transition-smooth);
}

.btn-primary:hover .icon-next {
    transform: translateX(4px);
}

/* ==========================================================================
   STEP 2: PIX DETAIL LAYOUT
   ========================================================================== */
.payment-layout {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 2rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }
}

/* QR Code Section style */
.qr-code-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.qr-code-box {
    position: relative;
    background: white;
    padding: 1.25rem;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    height: 220px;
    box-shadow: var(--shadow-neon);
}

.qr-code-box.glow-cyan {
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.35);
}

#pix-qrcode {
    width: 180px;
    height: 180px;
}

.qr-logo-overlay {
    position: absolute;
    width: 48px;
    height: 48px;
    background: #0B0F19;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pix-badge {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: -0.5px;
}

.pix-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.timer-countdown {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
}

/* Payment Instructions */
.payment-instructions-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-badge {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: var(--color-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.instructions-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.instructions-list {
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.instructions-list li strong {
    color: var(--text-main);
}

/* Copia e Cola box */
.copia-cola-container {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.copia-cola-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.copia-cola-wrapper {
    display: flex;
    gap: 0.5rem;
}

.copia-cola-input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    outline: none;
    transition: var(--transition-smooth);
}

.copia-cola-input:focus {
    border-color: var(--color-primary);
}

.btn-copy {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    color: var(--bg-dark);
    padding: 0 1.25rem;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.btn-copy:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-copy.copied {
    background: var(--color-success);
    color: white;
}

/* Payment Status Indicator */
.payment-status-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    margin-top: 1rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 229, 255, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text-pulse {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    animation: pulseText 2s infinite alternate ease-in-out;
}

@keyframes pulseText {
    0% { opacity: 0.6; }
    100% { opacity: 1; text-shadow: 0 0 8px rgba(0, 229, 255, 0.3); }
}

/* ==========================================================================
   STEP 3: SUCCESS STATE STYLE
   ========================================================================== */
.text-center {
    text-align: center;
}

.success-icon-wrapper {
    position: relative;
    margin: 1.5rem auto;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.success-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-success);
    opacity: 0.2;
    filter: blur(8px);
    animation: successPulse 2s infinite alternate;
}

.success-icon {
    font-size: 4.8rem;
    color: var(--color-success);
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.4));
    z-index: 2;
}

@keyframes successPulse {
    0% { transform: scale(0.9); opacity: 0.15; }
    100% { transform: scale(1.15); opacity: 0.35; }
}

.success-info-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: left;
    margin: 0.5rem 0;
}

.info-box-title {
    color: var(--color-success);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.info-box-desc strong {
    color: var(--text-main);
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ==========================================================================
   SIDEBAR & ORDER SUMMARY
   ========================================================================== */
.checkout-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Product Info Summary Block */
.sidebar-product-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.25rem 0;
}

.product-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.2));
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
}

.product-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
}

/* Price Breakdown details */
.price-breakdown {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.price-item.text-green {
    color: var(--color-success);
}

.text-free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-total span:first-child {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
}

.total-value {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.security-badges .badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.security-badges .badge i {
    color: var(--color-primary);
}

/* ==========================================================================
   APP FOOTER
   ========================================================================== */
.app-footer {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.app-footer .footer-sub {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

/* ==========================================================================
   FLOATING DEVELOPER SETTINGS DRAWER
   ========================================================================== */
.btn-dev-settings {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), #4F46E5);
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    z-index: 999;
    transition: var(--transition-smooth);
}

.btn-dev-settings:hover {
    transform: rotate(45deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.dev-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    animation: badgePulse 1.5s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
    100% { transform: scale(0.9); opacity: 0; }
}

/* Developer Drawer container */
.dev-panel {
    position: fixed;
    top: 0;
    right: -360px; /* Hidden by default */
    width: 360px;
    height: 100vh;
    background: rgba(10, 12, 26, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    overflow-y: auto;
}

.dev-panel.open {
    right: 0;
}

.dev-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.dev-panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-close-dev {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close-dev:hover {
    color: white;
}

.dev-panel-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dev-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.dev-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dev-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.dev-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dev-radio-option input {
    display: none; /* Hide real radio button */
}

.radio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    transition: var(--transition-smooth);
}

.dev-radio-option input:checked + .radio-card {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.15);
}

.radio-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.dev-radio-option input:checked + .radio-card .radio-title {
    color: var(--color-primary);
}

.radio-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dev-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.dev-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

.dev-helper {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Conditional Settings classes */
.dev-conditional-fields {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Simulator controller inside Dev drawer */
.dev-simulator-actions {
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.1);
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.dev-simulator-actions h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
}

.dev-simulator-actions p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.btn-simulate-pay {
    width: 100%;
    padding: 0.75rem;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-simulate-pay:hover {
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
    filter: brightness(1.1);
}

.dev-footer-info {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* ==========================================================================
   ATTENTION WARNING MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 6, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.15), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 580px;
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.open .modal-card {
    transform: scale(1);
}

.warning-icon-wrapper {
    margin: 0 auto 0.5rem auto;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.warning-icon {
    font-size: 3.2rem;
    color: #F59E0B;
    animation: warningPulse 1.5s infinite alternate ease-in-out;
}

@keyframes warningPulse {
    0% { transform: scale(0.95); filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.7)); }
}

.warning-modal-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #F59E0B;
}

.warning-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    color: var(--text-main);
    text-align: center;
    border-radius: 12px;
    padding: 1.25rem;
    background: rgba(245, 158, 11, 0.04);
    border: 1px solid rgba(245, 158, 11, 0.1);
}

body.light-theme .warning-text {
    color: #854D0E;
    background: rgba(254, 240, 138, 0.25);
    border-color: rgba(234, 179, 8, 0.2);
}

/* Modal Countdown styling */
.modal-countdown-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

body.light-theme .modal-countdown-container {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.08);
}

.countdown-circle-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.countdown-svg {
    width: 70px;
    height: 70px;
    transform: rotate(-90deg);
}

.countdown-bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 5;
}

body.light-theme .countdown-bg-circle {
    stroke: rgba(0, 0, 0, 0.05);
}

.countdown-progress-circle {
    fill: none;
    stroke: #F59E0B;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 175.9; /* 2 * PI * r = 2 * 3.14159 * 28 = 175.92 */
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}

.countdown-number {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #F59E0B;
}

.countdown-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: left;
    line-height: 1.45;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.warning-btn {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
    border: none;
}

.warning-btn:hover {
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    transform: translateY(-1px);
}

.support-btn {
    width: 100%;
}

/* ==========================================================================
   PARTNER COUPONS & ADMINISTRATIVE DASHBOARD
   ========================================================================== */

/* Coupon Input on Sidebar */
.partner-code-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.partner-code-wrapper {
    display: flex;
    gap: 0.5rem;
}

.partner-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3) !important;
}

body.light-theme .partner-input {
    background: rgba(255, 255, 255, 0.8) !important;
}

.btn-apply-coupon {
    padding: 0 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    border-radius: 12px;
    color: var(--bg-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-apply-coupon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.25);
    filter: brightness(1.1);
}

.coupon-status-msg {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.15rem;
    display: none;
    animation: fadeIn 0.25s ease-out;
}

.coupon-status-msg.success {
    display: block;
    color: var(--color-success);
}

.coupon-status-msg.error {
    display: block;
    color: var(--color-error);
}

/* Applied Coupon Active Badge */
.applied-coupon-container {
    animation: slideIn 0.3s ease-out;
}

.coupon-active-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.65rem 1rem;
    border-radius: 12px;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

body.light-theme .coupon-active-badge {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
}

.coupon-badge-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.coupon-badge-info i {
    color: var(--color-success);
    font-size: 1rem;
}

.btn-remove-coupon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn-remove-coupon:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

/* Tab controls inside drawer */
.dev-tabs {
    display: flex;
    gap: 0.35rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 0.5rem;
}

.dev-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.dev-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

body.light-theme .dev-tab-btn:hover {
    background: rgba(15, 23, 42, 0.03);
}

.dev-tab-btn.active {
    color: var(--color-primary);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

body.light-theme .dev-tab-btn.active {
    color: #008080;
    background: rgba(0, 128, 128, 0.08);
    border-color: rgba(0, 128, 128, 0.15);
}

/* Tab content visibility */
.dev-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.dev-tab-content.active {
    display: block;
}

/* Admin Access Restricted Screen */
.admin-login-box {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    margin-top: 0.5rem;
    animation: fadeIn 0.3s ease-out;
}

body.light-theme .admin-login-box {
    background: rgba(15, 23, 42, 0.01);
}

.admin-lock-icon {
    animation: lockPulse 2s infinite alternate ease-in-out;
}

@keyframes lockPulse {
    0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.2)); }
    100% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
}

/* Coupon Items list */
.admin-coupon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    animation: slideIn 0.25s ease-out;
}

body.light-theme .admin-coupon-item {
    background: rgba(15, 23, 42, 0.02);
}

.admin-coupon-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.admin-coupon-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.admin-coupon-value {
    font-size: 0.75rem;
    color: var(--color-success);
    font-weight: 600;
}

.btn-delete-coupon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.btn-delete-coupon:hover {
    color: var(--color-error);
    background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */

@media (max-width: 968px) {
    body {
        align-items: flex-start;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }

    .app-container {
        margin: 0 auto;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .app-header {
        position: relative;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
        padding-bottom: 1rem;
    }

    .header-logo-container {
        justify-content: center;
        width: 100%;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
        gap: 0;
    }

    .btn-theme-toggle {
        position: absolute;
        top: 0.25rem;
        right: 0.5rem;
        width: 38px;
        height: 38px;
    }

    .checkout-card {
        padding: 1.75rem;
    }
    
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .qr-code-section {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .app-container {
        margin: 0 auto;
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .checkout-card {
        padding: 1.25rem;
        border-radius: 16px;
        gap: 1.25rem;
    }
    
    .sidebar-card {
        padding: 1.25rem;
        border-radius: 16px;
        gap: 1rem;
    }
    
    .panel-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .panel-subtitle {
        font-size: 0.85rem;
        text-align: center;
        margin-top: -0.25rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.85rem 1rem 0.85rem 2.5rem;
    }
    
    .input-icon {
        left: 0.85rem;
        font-size: 1rem;
    }
    
    .btn-primary {
        padding: 0.95rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .step-tracker {
        gap: 0.25rem;
        margin: 0 auto;
    }
    
    .step-line {
        width: 20px;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .logo-img {
        max-height: 38px;
    }
    
    .logo-text {
        font-size: 1.35rem;
    }

    /* Success state adaptations */
    .success-info-box {
        padding: 1rem;
    }

    /* Modal adjustments */
    .modal-card {
        padding: 1.25rem;
        border-radius: 16px;
        gap: 1rem;
        width: 95%;
    }
    
    .warning-modal-title {
        font-size: 1.35rem;
    }
    
    .warning-text {
        font-size: 0.85rem;
        padding: 0.85rem;
    }
    
    .modal-countdown-container {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
    
    .countdown-circle-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .countdown-svg {
        width: 50px;
        height: 50px;
    }
    
    .countdown-number {
        font-size: 1.1rem;
    }
    
    .countdown-text {
        font-size: 0.75rem;
    }
    
    .warning-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    /* Developer drawer */
    .dev-panel {
        width: 100%;
        right: -100%;
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none; /* Hide step labels on mobile screens to keep layout clean */
    }
    
    .step-line {
        width: 35px;
    }
    
    .checkout-card {
        padding: 1rem;
    }
    
    .sidebar-card {
        padding: 1rem;
    }

    .panel-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .btn-reseller {
        width: 100%;
        justify-content: center;
    }

    .reseller-modal-card {
        margin: 1rem;
        padding: 1.75rem 1.25rem;
    }
}

/* ==========================================================================
   RESELLER BUTTON & MODAL
   ========================================================================== */

/* Panel Header Row — title + reseller button side by side */
.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.panel-header-row .panel-title {
    margin-bottom: 0;
}

/* Reseller Button — Golden/Amber gradient for visual distinction */
.btn-reseller {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.18) 100%);
    color: #F59E0B;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-reseller::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-reseller:hover {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.2), 0 0 40px rgba(245, 158, 11, 0.08);
    transform: translateY(-1px);
    color: #FCD34D;
}

.btn-reseller:hover::before {
    opacity: 1;
}

.btn-reseller:active {
    transform: translateY(0);
}

.btn-reseller i {
    font-size: 0.9rem;
}

/* Light theme adjustments */
body.light-theme .btn-reseller {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.12) 100%);
    border-color: rgba(217, 119, 6, 0.25);
    color: #B45309;
}

body.light-theme .btn-reseller:hover {
    border-color: rgba(217, 119, 6, 0.5);
    box-shadow: 0 0 18px rgba(217, 119, 6, 0.15);
    color: #92400E;
}

/* ==========================================================================
   RESELLER MODAL POPUP
   ========================================================================== */

.reseller-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reseller-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.reseller-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 158, 11, 0.08);
    animation: resellerModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes resellerModalIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reseller-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.reseller-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: var(--color-error);
}

.reseller-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #F59E0B;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

.reseller-modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.reseller-modal-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Modal Form */
.reseller-modal-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.reseller-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.reseller-input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.reseller-modal-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}

.reseller-modal-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.reseller-modal-input:focus {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.reseller-modal-input:focus + .reseller-input-icon,
.reseller-modal-input:focus ~ .reseller-input-icon {
    color: #F59E0B;
}

.reseller-input-wrapper:focus-within .reseller-input-icon {
    color: #F59E0B;
}

.reseller-modal-input.invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.reseller-modal-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #1C1917;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reseller-modal-btn:hover {
    background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.reseller-modal-btn:active {
    transform: translateY(0);
}

.reseller-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Status Messages */
.reseller-modal-status {
    margin-top: 1rem;
    padding: 0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.reseller-modal-status.active {
    padding: 0.85rem 1rem;
    max-height: 80px;
    opacity: 1;
}

.reseller-modal-status.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
}

.reseller-modal-status.error i {
    margin-right: 0.4rem;
}

.reseller-modal-status.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
}

.reseller-modal-status.success i {
    margin-right: 0.4rem;
}

/* Light theme for modal */
body.light-theme .reseller-modal-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(217, 119, 6, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}

body.light-theme .reseller-modal-input {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0F172A;
}

body.light-theme .reseller-modal-close {
    background: rgba(0, 0, 0, 0.04);
}

body.light-theme .reseller-modal-status.error {
    background: rgba(239, 68, 68, 0.08);
    color: #DC2626;
}

body.light-theme .reseller-modal-status.success {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
}

/* ==========================================================================
   ADMIN RESELLER LIST ITEMS
   ========================================================================== */

.admin-reseller-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.admin-reseller-item:hover {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.04);
}

.admin-reseller-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.admin-reseller-code {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: #F59E0B;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-reseller-name {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.admin-reseller-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-reseller-discount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--color-success);
}

.btn-delete-reseller {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: var(--transition-smooth);
}

.btn-delete-reseller:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

/* ==========================================================================
   RESELLER INFO BLOCK (STEP 2)
   ========================================================================== */

.reseller-info-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, rgba(217, 119, 6, 0.02) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.reseller-info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #F59E0B, #D97706);
}

.reseller-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed rgba(245, 158, 11, 0.2);
}

.reseller-info-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #F59E0B;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.btn-remove-reseller {
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-remove-reseller:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--color-error);
}

.readonly-input {
    background: rgba(0, 0, 0, 0.2) !important;
    color: var(--text-muted) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

.readonly-input:focus {
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

body.light-theme .reseller-info-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
    border-color: rgba(245, 158, 11, 0.4);
}

body.light-theme .readonly-input {
    background: rgba(0, 0, 0, 0.04) !important;
    color: #64748B !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS (SMARTPHONES & TABLETS)
   ========================================================================== */

@media screen and (max-width: 900px) {
    body {
        padding: 1rem 0;
    }

    .checkout-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .checkout-sidebar {
        width: 100%;
        max-width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
    
    .checkout-main {
        padding-right: 0;
    }
    
    .checkout-card {
        padding: 1.5rem;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step-line {
        display: none;
    }

    .product-selector-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .modal-card, .reseller-modal-card {
        padding: 1.5rem;
        width: 95%;
    }
    
    .reseller-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-remove-reseller {
        width: 100%;
        justify-content: center;
    }
    
    .payment-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qr-code-box {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .pix-input-group {
        flex-direction: column;
    }
    
    .btn-copy-pix {
        width: 100%;
        justify-content: center;
    }

    .admin-drawer.open {
        width: 100%;
        max-width: 100%;
    }

    .warning-modal-title {
        font-size: 1.25rem;
    }
    
    .warning-text {
        font-size: 0.75rem;
        padding: 1rem;
    }

    .modal-countdown-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .countdown-circle-wrapper {
        width: auto;
        height: auto;
        margin: 0 auto;
    }
    
    .countdown-svg {
        display: none;
    }
    
    .countdown-number {
        position: relative;
        font-size: 2.2rem;
    }

    .countdown-text {
        text-align: center;
        font-size: 0.75rem;
    }
}
