/**
 * QuizzMan Payment Gateway - Styles
 * Using QMF Design System
 */

/* ============================================
   LAYOUT
   ============================================ */

:root {
    --payment-primary: #10b981;
    --payment-primary-dark: #059669;
    --payment-primary-light: #34d399;
    --payment-bg: var(--qmf-color-bg-secondary, #f9fafb);
    --payment-card-bg: var(--qmf-color-surface, #ffffff);
    --payment-border: var(--qmf-color-border, #e5e7eb);
    --payment-text: var(--qmf-color-text, #1f2937);
    --payment-text-muted: var(--qmf-color-text-secondary, #6b7280);
    --payment-radius: 12px;
    --payment-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--qmf-font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    background: var(--payment-bg);
    color: var(--payment-text);
    min-height: 100vh;
    line-height: 1.5;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================
   LOADING
   ============================================ */

.qmf-loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--payment-bg);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.qmf-loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.qmf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--payment-border);
    border-top-color: var(--payment-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.qmf-loading-spinner.small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.qmf-loading-text {
    margin-top: 1rem;
    color: var(--payment-text-muted);
    font-size: 0.875rem;
}

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

/* ============================================
   HEADER
   ============================================ */

.payment-header {
    background: var(--payment-card-bg);
    border-bottom: 1px solid var(--payment-border);
    padding: 0 1.5rem;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--payment-text);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--payment-primary);
    font-weight: 500;
}

.header-title i {
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--payment-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.payment-main {
    flex: 1;
    padding: 2rem 1.5rem;
}

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
}

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

/* ============================================
   ORDER SUMMARY
   ============================================ */

.order-summary {
    background: var(--payment-card-bg);
    border-radius: var(--payment-radius);
    padding: 1.5rem;
    box-shadow: var(--payment-shadow);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--payment-border);
}

.section-title i {
    color: var(--payment-primary);
}

.order-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--payment-bg);
    border-radius: 8px;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item-name {
    font-weight: 500;
}

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

.order-item-price {
    font-weight: 600;
    color: var(--payment-primary);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--payment-border);
    font-weight: 600;
}

.total-amount {
    font-size: 1.5rem;
    color: var(--payment-primary);
}

/* ============================================
   PAYMENT METHODS
   ============================================ */

.payment-methods {
    background: var(--payment-card-bg);
    border-radius: var(--payment-radius);
    padding: 1.5rem;
    box-shadow: var(--payment-shadow);
}

.providers-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.loading-providers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--payment-text-muted);
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--payment-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--payment-card-bg);
}

.provider-card:hover {
    border-color: var(--payment-primary-light);
    background: rgba(16, 185, 129, 0.05);
}

.provider-card.selected {
    border-color: var(--payment-primary);
    background: rgba(16, 185, 129, 0.1);
}

.provider-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.provider-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--payment-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.provider-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.provider-icon.stripe { color: #635bff; }
.provider-icon.paypal { color: #003087; }
.provider-icon.momo { color: #d82d8b; }
.provider-icon.vnpay { color: #0066b3; }
.provider-icon.zalopay { color: #0068ff; }
.provider-icon.banking { color: #059669; }

.provider-info-section {
    flex: 1;
}

.provider-name {
    font-weight: 600;
    font-size: 1rem;
}

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

.provider-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--payment-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.provider-card.selected .provider-radio {
    border-color: var(--payment-primary);
    background: var(--payment-primary);
}

.provider-card.selected .provider-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Provider Info (banking details etc) */
.provider-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--payment-primary-light);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.provider-info.hidden {
    display: none;
}

.bank-info {
    display: grid;
    gap: 0.75rem;
}

.bank-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--payment-border);
}

.bank-info-row:last-child {
    border-bottom: none;
}

.bank-info-label {
    color: var(--payment-text-muted);
    font-size: 0.875rem;
}

.bank-info-value {
    font-weight: 600;
    font-family: var(--qmf-font-family-mono, monospace);
}

.copy-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--payment-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: var(--payment-primary-dark);
}

.bank-qr {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--payment-border);
}

.bank-qr img {
    max-width: 200px;
    border-radius: 8px;
}

/* ============================================
   PAY BUTTON
   ============================================ */

.pay-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--payment-primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.pay-button:hover:not(:disabled) {
    background: var(--payment-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pay-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pay-button.loading {
    pointer-events: none;
}

.pay-button.loading i {
    animation: spin 1s linear infinite;
}

/* Security Notice */
.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--payment-text-muted);
    font-size: 0.75rem;
}

.security-notice i {
    color: var(--payment-primary);
}

/* ============================================
   FOOTER
   ============================================ */

.payment-footer {
    background: var(--payment-card-bg);
    border-top: 1px solid var(--payment-border);
    padding: 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--payment-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--payment-primary);
}

.footer-copyright {
    color: var(--payment-text-muted);
    font-size: 0.75rem;
}

@media (max-width: 640px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   TOASTS
   ============================================ */

.qmf-toasts {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.toast {
    background: var(--payment-card-bg);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    box-shadow: var(--payment-shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
    max-width: 360px;
}

.toast.success { border-left: 4px solid var(--qmf-color-success, #10b981); }
.toast.error { border-left: 4px solid var(--qmf-color-danger, #ef4444); }
.toast.warning { border-left: 4px solid var(--qmf-color-warning, #f59e0b); }
.toast.info { border-left: 4px solid var(--qmf-color-info, #3b82f6); }

.toast-icon {
    font-size: 1.25rem;
}

.toast.success .toast-icon { color: var(--qmf-color-success); }
.toast.error .toast-icon { color: var(--qmf-color-danger); }
.toast.warning .toast-icon { color: var(--qmf-color-warning); }
.toast.info .toast-icon { color: var(--qmf-color-info); }

.toast-message {
    flex: 1;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--payment-text-muted);
    cursor: pointer;
    padding: 0.25rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   AUTH VISIBILITY
   ============================================ */

.guest-only {
    display: block;
}

.auth-only {
    display: none !important;
}

body.authenticated .guest-only {
    display: none !important;
}

body.authenticated .auth-only {
    display: block !important;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b6b 100%);
    opacity: 0.95;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    color: white;
}

.hero__title {
    margin-bottom: 1.5rem;
}

.hero__title-main {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero__title-brand {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero__subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero__features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.hero__feature i {
    color: #ffd700;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ============================================
   LANDING SECTIONS
   ============================================ */

.landing-section {
    padding: 4rem 2rem;
}

.landing-section--alt {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--payment-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.landing-section__title i {
    color: #667eea;
}

.landing-section__subtitle {
    text-align: center;
    color: var(--payment-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ============================================
   PAYMENT PROVIDERS GRID
   ============================================ */

.payment-providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.provider-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.provider-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
}

.provider-card__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.provider-card__icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.provider-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--payment-text);
    margin-bottom: 0.5rem;
}

.provider-card__desc {
    font-size: 0.875rem;
    color: var(--payment-text-muted);
}

/* ============================================
   PRICING GRID
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.pricing-grid--dashboard {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card--featured {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.pricing-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card__header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--payment-border);
    margin-bottom: 1.5rem;
}

.pricing-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--payment-text);
    margin-bottom: 1rem;
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
}

.price-currency {
    font-size: 1rem;
    color: var(--payment-text-muted);
}

.pricing-card__period {
    color: var(--payment-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--payment-text);
    font-size: 0.95rem;
}

.pricing-card__features li i {
    width: 20px;
    text-align: center;
    color: #10b981;
}

.pricing-card__features li.disabled {
    color: var(--payment-text-muted);
    opacity: 0.6;
}

.pricing-card__features li.disabled i {
    color: #ef4444;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 1rem;
    background: #f1f5f9;
    color: var(--payment-text);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pricing:hover {
    background: #e2e8f0;
}

.btn-pricing-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-pricing-featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* ============================================
   TRUST BADGES
   ============================================ */

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.trust-badge i {
    font-size: 1.5rem;
    color: #667eea;
}

.trust-badge span {
    font-weight: 600;
    color: var(--payment-text);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.payment-dashboard {
    padding-top: calc(var(--header-height, 64px) + 2rem);
    min-height: 100vh;
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.dashboard-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--payment-text);
    margin-bottom: 1.5rem;
}

.section-title i {
    color: #667eea;
}

.close-section-btn {
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--payment-text-muted);
    transition: all 0.2s ease;
}

.close-section-btn:hover {
    background: #e2e8f0;
    color: var(--payment-text);
}

/* ============================================
   QUICK ACTIONS
   ============================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 1rem;
}

.quick-action-icon i {
    font-size: 1.5rem;
    color: white;
}

.quick-action-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quick-action-card p {
    font-size: 0.875rem;
    color: var(--payment-text-muted);
}

/* ============================================
   AMOUNT PRESETS
   ============================================ */

.amount-presets {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amount-preset {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-preset:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.amount-preset.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

/* ============================================
   SUBSCRIPTION
   ============================================ */

.subscription-card {
    text-align: center;
    padding: 2rem;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subscription-status.free {
    background: #f1f5f9;
    color: #64748b;
}

.subscription-status.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.subscription-desc {
    color: var(--payment-text-muted);
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.qmf-footer {
    background: #1f2937;
    color: white;
    padding: 2rem;
    margin-top: auto;
}

.qmf-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qmf-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.qmf-footer__logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.qmf-footer__links {
    display: flex;
    gap: 2rem;
}

.qmf-footer__links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qmf-footer__links a:hover {
    color: white;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.qmf-toasts {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qmf-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: slideInToast 0.3s ease;
}

.qmf-toast--success {
    border-left: 4px solid #10b981;
}

.qmf-toast--error {
    border-left: 4px solid #ef4444;
}

@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .hero__title-main {
        font-size: 1.5rem;
    }

    .hero__title-brand {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__features {
        gap: 1rem;
    }

    .hero__feature {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    .landing-section {
        padding: 3rem 1rem;
    }

    .landing-section__title {
        font-size: 1.5rem;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-5px);
    }

    .dashboard-section {
        padding: 1.5rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-action-card {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   DARK MODE
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --payment-bg: #111827;
        --payment-card-bg: #1f2937;
        --payment-border: #374151;
        --payment-text: #f9fafb;
        --payment-text-muted: #9ca3af;
    }
    
    .provider-card,
    .pricing-card,
    .dashboard-section,
    .trust-badge {
        background: var(--payment-card-bg);
    }
    
    .quick-action-card {
        background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    }

    .landing-section--alt {
        background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    }

    .btn-pricing {
        background: #374151;
        color: var(--payment-text);
    }

    .btn-pricing:hover {
        background: #4b5563;
    }

    .amount-preset {
        background: #374151;
        color: var(--payment-text);
    }

    .amount-preset:hover {
        background: #4b5563;
    }
}
