/* ==========================================
   TemanQRIS - Modern Design System
   ========================================== */

/* Google Fonts - Playful modern style */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

/* CSS Variables - TemanQRIS Brand Colors */
:root {
    /* Primary Brand Colors */
    --primary-orange: #ff6b35;
    --primary-yellow: #ffc107;
    --primary-pink: #ff6b9d;
    --primary-coral: #ff7f7f;
    --primary-blue: #5dade2;
    --primary-purple: #a29bfe;
    --primary-green: #55efc4;

    /* Announcement bar */
    --announcement-bg: #ffd93d;

    /* Background */
    --bg-cream: #fffaf0;
    --bg-white: #ffffff;
    --bg-light: #f8f6f0;

    /* Text */
    --text-dark: #1a1a2e;
    --text-gray: #666666;
    --text-light: #999999;

    /* Borders & Shadows */
    --border-dark: #1a1a2e;
    --border-width: 2px;
    --shadow-offset: 4px;

    /* Fonts */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50px;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   Announcement Bar
   ========================================== */

.announcement-bar {
    background: var(--announcement-bg);
    padding: 10px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.announcement-bar a {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* ==========================================
   Header
   ========================================== */

.header {
    background: var(--bg-cream);
    padding: 15px 0;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
}

.logo-text span {
    color: var(--primary-orange);
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 24px;
    margin-left: auto;
    margin-right: 24px;
}

.header-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 4px;
    transition: color 0.2s;
    text-decoration: none;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    color: var(--primary-orange);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 2px solid var(--border-dark);
    padding: 20px;
    gap: 8px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: var(--text-dark);
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-menu a:hover {
    background: var(--bg-cream);
    color: var(--primary-orange);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .header-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid var(--border-dark);
    text-decoration: none;
}

/* Primary button - filled */
.btn-primary {
    background: var(--text-dark);
    color: white;
}

.btn-primary:hover {
    background: #2d2d4a;
    transform: translateY(-2px);
}

/* Secondary button - outline */
.btn-secondary {
    background: white;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

/* Pink button */
.btn-pink {
    background: var(--primary-pink);
    color: white;
    border-color: var(--primary-pink);
}

.btn-pink:hover {
    background: #ff5a8a;
    transform: translateY(-2px);
}

/* Orange button */
.btn-orange {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.btn-orange:hover {
    background: #e55a2b;
}

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

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

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: var(--bg-cream);
    text-align: center;
    padding: 40px 20px 60px;
}

.hero-mascot {
    max-width: 280px;
    margin: 0 auto 20px;
}

.hero-mascot svg {
    width: 100%;
    height: auto;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
}

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

/* ==========================================
   Info Box
   ========================================== */

.info-box {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin: 40px auto;
    max-width: 700px;
    position: relative;
    box-shadow: 4px 4px 0 var(--border-dark);
}

.info-box-title {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.payment-methods {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.payment-column h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.payment-column ul {
    list-style: none;
}

.payment-column li {
    padding: 3px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.payment-column li::before {
    content: '•';
    color: var(--primary-orange);
    margin-right: 8px;
    font-weight: bold;
}

.info-box-footer {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.info-box-mascot {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 100px;
}

/* ==========================================
   CTA Section
   ========================================== */

.cta-section {
    text-align: center;
    padding: 20px;
}

/* ==========================================
   Cards
   ========================================== */

.card {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 4px 4px 0 var(--border-dark);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--border-dark);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card-icon.orange {
    background: #fff0e6;
}

.card-icon.pink {
    background: #ffe6ee;
}

.card-icon.blue {
    background: #e6f4ff;
}

.card-icon.green {
    background: #e6fff5;
}

.card-icon.purple {
    background: #f0e6ff;
}

.card-icon.yellow {
    background: #fff9e6;
}

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

.card-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   Section Styling
   ========================================== */

.section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.section-white {
    background: var(--bg-white);
}

.section-cream {
    background: var(--bg-cream);
}

/* ==========================================
   Steps / How It Works
   ========================================== */

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

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ==========================================
   Pricing
   ========================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--border-dark);
}

.pricing-card.featured {
    border-color: var(--primary-orange);
    box-shadow: 4px 4px 0 var(--primary-orange);
}

.pricing-badge {
    display: inline-block;
    padding: 4px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.badge-free {
    background: #f0f0f0;
    color: var(--text-dark);
}

.badge-premium {
    background: var(--primary-orange);
    color: white;
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-gray);
}

.pricing-subtitle {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pricing-features li.disabled {
    color: var(--text-light);
}

/* ==========================================
   Forms
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-primary);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    transition: box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    box-shadow: 3px 3px 0 var(--primary-orange);
}

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

.form-hint {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 6px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================
   Auth Pages
   ========================================== */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-cream);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.auth-title p {
    color: var(--text-gray);
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--primary-orange);
    font-weight: 700;
}

/* ==========================================
   Public Footer - Cream Theme
   ========================================== */

.footer-new {
    background: var(--bg-cream, #fffaf0);
    color: var(--text-dark, #1a1a2e);
    padding: 60px 24px 30px;
    border-top: 3px solid var(--border-dark, #1a1a2e);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark, #1a1a2e);
}

.footer-brand .logo-text span {
    color: #ff6b35;
}

.footer-brand>p {
    color: #666;
    font-size: 0.9rem;
    margin-top: 12px;
    line-height: 1.6;
}

/* Security Badges */
.security-badges {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a2e;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #55efc4;
    border: 2px solid #1a1a2e;
}

.security-badge svg {
    stroke: #55efc4;
}

/* Footer Columns with Cards */
.footer-col {
    background: white;
    border: 2px solid var(--border-dark, #1a1a2e);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 3px 3px 0 var(--border-dark, #1a1a2e);
}

.footer-col:nth-child(2) {
    background: #fff5f0;
}

.footer-col:nth-child(3) {
    background: #f0fff4;
}

.footer-col:nth-child(4) {
    background: #f0f4ff;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark, #1a1a2e);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-dark, #1a1a2e);
}

.footer-col a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ff6b35;
}

/* Security Disclaimer */
.security-disclaimer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff5f0;
    border: 2px solid #ff6b35;
    border-radius: 12px;
    padding: 14px 24px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.security-disclaimer svg {
    stroke: #ff6b35;
    flex-shrink: 0;
}

.security-disclaimer p {
    color: #333;
    font-size: 0.85rem;
    margin: 0;
}

.security-disclaimer strong {
    color: #ff6b35;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid var(--border-dark, #1a1a2e);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom a {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .security-badges {
        justify-content: center;
    }

    .security-disclaimer {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .security-badges {
        justify-content: center;
    }

    .security-badge {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}

/* ==========================================
   Dashboard Layout
   ========================================== */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: var(--bg-cream);
}

.sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 2px solid var(--border-dark);
    padding: 24px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-logo {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: #fff5f0;
    color: var(--primary-orange);
}

.sidebar-nav a.active {
    background: #fff5f0;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: 32px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-title h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.dashboard-title p {
    color: var(--text-gray);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 3px 3px 0 var(--border-dark);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    float: right;
}

/* ==========================================
   Tables
   ========================================== */

.table-container {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: 4px 4px 0 var(--border-dark);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-dark);
    background: var(--bg-light);
}

.table-title {
    font-size: 1.1rem;
    font-weight: 700;
}

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

th,
td {
    padding: 14px 24px;
    text-align: left;
}

th {
    background: var(--bg-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-gray);
    border-bottom: 2px solid var(--border-dark);
}

tr:not(:last-child) td {
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background: #fffaf5;
}

/* Table Scroll Wrapper - for responsive tables */
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
}

.table-scroll table {
    min-width: 600px;
}

/* API Key Container */
.api-key-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.api-key-value {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 200px;
    word-break: break-all;
}

@media (max-width: 768px) {
    .api-key-container {
        flex-direction: column;
        align-items: stretch;
    }

    .api-key-value {
        min-width: 100%;
        text-align: center;
    }

    .api-key-container .btn {
        width: 100%;
    }
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

/* ==========================================
   Alerts
   ========================================== */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-weight: 600;
    border: 2px solid;
}

.alert-success {
    background: #e6fff5;
    color: #059669;
    border-color: #059669;
}

.alert-error {
    background: #ffe6e6;
    color: #dc2626;
    border-color: #dc2626;
}

.alert-warning {
    background: #fff9e6;
    color: #d97706;
    border-color: #d97706;
}

.alert-info {
    background: #e6f4ff;
    color: #2563eb;
    border-color: #2563eb;
}

/* ==========================================
   QRIS Generator
   ========================================== */

.qris-generator {
    background: var(--bg-white);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 4px 4px 0 var(--border-dark);
}

.qris-preview {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.qris-image {
    max-width: 250px;
    border: 3px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background: white;
}

.qris-string {
    margin-top: 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--text-gray);
    word-break: break-all;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-white);
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
}

/* ==========================================
   API Key
   ========================================== */

.api-key-container {
    background: var(--bg-light);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.api-key-value {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
    word-break: break-all;
}

/* ==========================================
   Progress Bar
   ========================================== */

.progress-container {
    margin-top: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.progress-bar {
    height: 10px;
    background: var(--bg-light);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-pink));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-orange);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

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

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================
   Footer New (Neobrutalism Design)
   ========================================== */

.footer-new {
    background: var(--bg-cream);
    padding: 60px 20px 40px;
    border-top: 4px solid var(--border-dark);
    position: relative;
}

.footer-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
            var(--primary-orange) 0%,
            var(--primary-pink) 25%,
            var(--primary-purple) 50%,
            var(--primary-blue) 75%,
            var(--primary-green) 100%);
}

.footer-new .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto 40px;
}

/* Brand Section */
.footer-new .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-new .footer-brand .logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: inline-block;
}

.footer-new .footer-brand .logo-text span {
    color: var(--primary-orange);
}

.footer-new .footer-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}

/* Footer Columns with Neobrutalism Cards */
.footer-new .footer-col {
    background: var(--bg-white);
    border: 3px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: 4px 4px 0 var(--border-dark);
    transition: all 0.2s ease;
}

.footer-new .footer-col:nth-child(2) {
    background: #fff5f0;
}

.footer-new .footer-col:nth-child(3) {
    background: #f0fff4;
}

.footer-new .footer-col:nth-child(4) {
    background: #f0f4ff;
}

.footer-new .footer-col:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--border-dark);
}

.footer-new .footer-col h4 {
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-dark);
}

.footer-new .footer-col a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
    padding: 8px 0;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-new .footer-col a::before {
    content: '→';
    font-size: 0.8rem;
    color: var(--primary-orange);
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
}

.footer-new .footer-col a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-new .footer-col a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Bottom */
.footer-new .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 3px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-new .footer-bottom p {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-new .footer-bottom a {
    color: var(--primary-orange);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.footer-new .footer-bottom a:hover {
    border-bottom-color: var(--primary-orange);
}

/* Social/Made with love styling */
.footer-new .footer-bottom p:last-child {
    background: linear-gradient(135deg, var(--primary-pink), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-new .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-new .footer-brand {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }

    .footer-new .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .footer-new {
        padding: 40px 16px 30px;
    }

    .footer-new .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-new .footer-brand {
        grid-column: span 1;
    }

    .footer-new .footer-col {
        padding: 16px;
        box-shadow: 3px 3px 0 var(--border-dark);
    }

    .footer-new .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .info-box {
        margin: 20px;
    }

    .payment-methods {
        flex-direction: column;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Sidebar handled by new dashboard mobile styles below */

    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   Utilities
   ========================================== */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-gray);
}

.text-small {
    font-size: 0.85rem;
}

.font-bold {
    font-weight: 700;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    pointer-events: auto;
    border-left: 4px solid #ddd;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: #2ecc71;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-warning {
    border-left-color: #f1c40f;
}

.toast-info {
    border-left-color: #3498db;
}

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

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 4px;
}

.toast-close:hover {
    color: #555;
}

/* ==========================================
   MOBILE RESPONSIVE STYLES
   ========================================== */

/* Prevent horizontal scroll on all pages */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Tablet */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .info-box {
        padding: 20px 24px;
    }

    .payment-methods {
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero {
        padding: 30px 16px 40px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .card {
        padding: 20px;
    }

    .info-box {
        padding: 16px;
        margin: 30px 16px;
    }

    .info-box-title {
        font-size: 0.9rem;
    }

    .payment-methods {
        flex-direction: column;
        gap: 16px;
    }

    .info-box-mascot {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .legal-container {
        padding: 30px 16px;
    }

    .legal-header h1 {
        font-size: 1.8rem;
    }

    .toc {
        padding: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .pricing-price {
        font-size: 1.8rem;
    }

    #toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* ==========================================
   DASHBOARD MOBILE RESPONSIVE
   ========================================== */

/* Mobile Toggle Button for Sidebar */
.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: var(--primary-orange);
    color: white;
    border: 3px solid var(--border-dark);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 4px 4px 0 var(--border-dark);
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--border-dark);
}

.sidebar-toggle:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-dark);
}

/* Mobile Overlay for sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* Tablet Dashboard */
@media (max-width: 992px) {

    /* CRITICAL: Force container to respect viewport */
    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .dashboard-container {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .dashboard-main {
        margin-left: 0;
        padding: 24px 16px;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Force all cards to fit */
    .card,
    .stat-card,
    .table-container,
    .upgrade-hero {
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }

    /* Dashboard header stack */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        width: 260px;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    .sidebar.active {
        left: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.3);
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .table-container {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }
}

/* Mobile Dashboard */
@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px 16px;
    }

    .dashboard-title h1 {
        font-size: 1.3rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    th,
    td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .card {
        padding: 16px;
    }

    /* Generator page */
    .generator-grid {
        grid-template-columns: 1fr;
    }

    /* Quick actions grid */
    .quick-actions {
        grid-template-columns: 1fr;
    }

    /* Settings form */
    .settings-form {
        padding: 20px 16px;
    }
}

/* Small Mobile Dashboard */
@media (max-width: 480px) {
    .dashboard-main {
        padding: 16px 12px;
        padding-bottom: 80px;
        /* Space for floating button */
    }

    .sidebar-toggle {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .dashboard-title h1 {
        font-size: 1.2rem;
    }

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

    .stat-card {
        padding: 14px;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* ==========================================
   EXTENDED DASHBOARD MOBILE STYLES
   For: upgrade, payments, orders, api_usage
   ========================================== */

@media (max-width: 768px) {

    /* Upgrade page */
    .upgrade-hero {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .price-display {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .benefit-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Orders page filter bar */
    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

    /* All tables scroll horizontal */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
    }

    .orders-table th,
    .orders-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    /* Payment modal */
    .payment-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .payment-body {
        padding: 16px;
    }

    .qr-container img {
        max-width: 180px !important;
    }

    .timer-display {
        font-size: 1.5rem !important;
    }

    /* API key container */
    .api-key-container {
        flex-direction: column;
        gap: 8px;
    }

    .api-key-value {
        font-size: 0.8rem;
        word-break: break-all;
    }

    /* Status cards */
    .status-card {
        padding: 20px 16px;
    }

    .status-icon {
        font-size: 2.5rem;
    }

    /* Empty states */
    .empty-state {
        padding: 32px 16px;
    }

    .empty-state .icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {

    /* More compact on very small screens */
    .upgrade-hero h2 {
        font-size: 1.3rem;
    }

    .price-display {
        font-size: 1.8rem;
    }

    .price-display small {
        font-size: 0.85rem;
    }

    .benefit-item {
        padding: 10px;
        font-size: 0.85rem;
    }

    .benefit-item .icon {
        font-size: 1.2rem;
    }

    /* Payment modal buttons */
    .payment-footer {
        flex-direction: column;
        gap: 8px;
    }

    .payment-footer .btn {
        width: 100%;
    }

    /* Status badges */
    .status-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    /* Subscription info flex */
    .card>div[style*="display: flex"] {
        flex-direction: column;
        gap: 16px;
    }
}