@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

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

:root {
    --primary-color: #8b3dff;
    --secondary-color: #d4a5ff;
    --neutral-color: #6e5ca8;
    --accent-color: #8b3dff;
    --danger-color: #ef4444;
    --light-color: #faf5ff;
    --border-color: #e9d5ff;
    --text-color: #4a3764;
    --text-light: #9378c4;

    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-title: 'Poppins', sans-serif;

    /* Base font size */
    --base-font-size: 16px;

    /* Spacing rhythm (multiples of 8px) */
    --spacing-unit: 8px;
}

html {
    font-size: var(--base-font-size);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.5;
    background-color: #fff;
}

/* Typography System - Headings */
h1 {
    font-family: var(--font-title);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

h2 {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h5 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

h6 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    margin-bottom: var(--spacing-unit);
}

/* Body Text */
p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.body-large {
    font-size: 18px;
    line-height: 1.55;
}

.small-text {
    font-size: 14px;
    line-height: 1.45;
}

/* UI and Supporting Text */
.caption {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
}

.label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

strong, b {
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 1199px) and (min-width: 768px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    h3 { font-size: 28px; }
}

@media (max-width: 767px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
    p { font-size: 15px; }
}

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

/* Page Management */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 80px;
    width: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: var(--light-color);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger, .btn-success {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    color: white !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background: #8b73d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 135, 245, 0.4);
    color: white !important;
}

.btn-secondary {
    background: var(--neutral-color);
    color: white !important;
}

.btn-secondary:hover {
    background: #5c4d8f;
    color: white !important;
}

.btn-danger {
    background: var(--danger-color);
    color: white !important;
}

.btn-success {
    background: var(--primary-color);
    color: white !important;
}

.btn-success:hover {
    background: #8b73d9;
}

.btn-full {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1,
.hero .subtitle,
.hero p {
    color: white;
}

.subtitle {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.city-search {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.city-search input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--light-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    text-align: center;
    background: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-footer {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Compact Register Modal */
#register-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.5rem;
}

#register-modal h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#register-modal .form-group {
    margin-bottom: 1rem;
}

#register-modal .form-group label {
    margin-bottom: 0.375rem;
    font-size: 14px;
}

#register-modal .form-group input,
#register-modal .form-group select {
    padding: 0.625rem;
    font-size: 15px;
}

#register-modal .btn-full {
    margin-top: 0.5rem;
}

#register-modal .form-footer {
    margin-top: 0.75rem;
    font-size: 14px;
}

/* Dashboard Layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.sidebar-header {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-header h2 {
    font-size: 1.5rem;
}

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

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-content {
    flex: 1;
    background: var(--light-color);
}

.top-bar {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.content-area {
    padding: 2rem;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.stat-change {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--secondary-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    text-align: left;
    padding: 1rem;
    background: var(--light-color);
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid var(--border-color);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.table tr:hover {
    background: var(--light-color);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

/* Payment Accounts */
.payment-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
}

.payment-account-item:hover {
    box-shadow: 0 4px 12px rgba(155, 135, 245, 0.15);
    border-color: var(--primary-color);
}

.payment-account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-account-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
}

/* Business Grid */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.business-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.business-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.business-category {
    color: var(--text-light);
    font-size: 0.875rem;
}

.business-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.business-stat {
    flex: 1;
}

.business-stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

.business-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* QR Code */
.qr-container {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
}

.qr-code {
    margin: 2rem auto;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    display: inline-block;
}

/* Stars Display */
.stars-display {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 2rem;
}

.stars-count {
    font-size: 4rem;
    margin: 1rem 0;
}

.stars-visual {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 3rem;
    margin: 1rem 0;
}

.star {
    opacity: 0.3;
}

.star.filled {
    opacity: 1;
}

/* Campaign Form */
.campaign-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Chart Container */
.chart-container {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    .city-search {
        flex-direction: column;
        padding: 0 1rem;
    }

    .city-search input {
        width: 100%;
    }

    .city-search button {
        width: 100%;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        max-width: 400px;
        padding: 1.5rem;
        margin: 1rem;
    }

    .modal h2 {
        font-size: 1.5rem;
    }

    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
        padding: 0.875rem;
    }

    /* Dashboard */
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 1rem 0;
    }

    .sidebar-header {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

    .sidebar-header h2 {
        font-size: 1.25rem;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .sidebar-menu li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .sidebar-menu a {
        padding: 0.5rem 1rem;
        white-space: nowrap;
        font-size: 14px;
        border-radius: 8px;
    }

    .main-content {
        padding: 1rem;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .top-bar h1 {
        font-size: 1.5rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    /* Business Grid */
    .business-grid {
        grid-template-columns: 1fr;
    }

    /* Features */
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Tables */
    .table-container {
        overflow-x: auto;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 0.5rem;
    }

    /* Buttons */
    .btn-primary,
    .btn-secondary,
    .btn-full {
        padding: 0.75rem 1rem;
        font-size: 16px; /* Prevents iOS zoom */
    }

    /* Stars Display */
    .stars-display {
        padding: 1.5rem;
    }

    .stars-visual {
        font-size: 2rem;
    }

    /* Celebration Modal */
    .celebration-modal .modal-content {
        width: 90%;
        padding: 1.5rem;
    }

    .celebration-title {
        font-size: 28px;
    }

    .celebration-stars {
        font-size: 2rem;
    }

    /* Payment Accounts */
    .payment-account-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .payment-account-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .payment-account-actions button {
        flex: 1;
    }

    /* Cards */
    .card {
        margin-bottom: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-content {
        padding: 1rem;
    }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
    }

    .nav-links a {
        padding: 0.5rem 0.875rem;
        font-size: 14px;
        white-space: nowrap;
    }

    .nav-links .btn-primary {
        padding: 0.5rem 0.875rem;
    }
}

/* Scanner */
.scanner-container {
    position: relative;
    max-width: 500px;
    margin: 2rem auto;
}

#scanner {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    pointer-events: none;
}

.scan-result {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 8px;
}

/* Celebration Modal */
.celebration-modal .modal-content {
    max-width: 500px;
    text-align: center;
    animation: celebrationPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes celebrationPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-stars {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: starFloat 2s ease-in-out infinite;
}

@keyframes starFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.celebration-title {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.celebration-business {
    margin-bottom: 2rem;
}

.celebration-text {
    font-size: 18px;
    color: var(--text-color);
}

.celebration-progress {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.stars-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.star-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    transition: all 0.3s;
}

.star-icon.filled {
    opacity: 1;
    animation: starPulse 0.6s ease-in-out;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.celebration-subtext {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 400;
}

.celebration-cta {
    margin-top: 2rem;
}

.celebration-message {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.celebration-footer {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Business Onboarding Wizard */
.onboarding-modal {
    padding: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

.onboarding-container {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUpFade 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
    position: relative;
}

.onboarding-container .close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.3s;
}

.onboarding-container .close:hover {
    color: var(--text-color);
}

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

/* Progress Bar */
.onboarding-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.progress-step.completed .step-number {
    background: var(--primary-color);
    color: white;
}

.step-label {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.progress-step.active .step-label {
    color: var(--primary-color);
    font-weight: 800;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 -1rem;
    position: relative;
    top: -15px;
}

/* Onboarding Steps */
.onboarding-step {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-animation {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.onboarding-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* City Selector */
.city-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.city-option {
    background: var(--light-color);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.2);
}

.city-option:active {
    transform: translateY(-2px);
}

.city-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.city-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* Onboarding Form */
.onboarding-form {
    max-width: 500px;
    margin: 0 auto;
}

.onboarding-form .form-group {
    text-align: left;
}

.onboarding-form input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.onboarding-nav {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: space-between;
}

.onboarding-nav button {
    flex: 1;
}

/* Button Pulse Animation */
.btn-pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
}

/* Welcome Status */
.welcome-status {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spin 3s linear infinite;
}

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

.welcome-status h3 {
    font-size: 24px;
    color: #92400e;
    margin-bottom: 0.5rem;
}

.welcome-status p {
    color: #78350f;
    margin-bottom: 0;
}

/* Next Steps */
.welcome-next-steps {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.welcome-next-steps h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.next-step {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.next-step:hover {
    transform: translateX(5px);
}

.step-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 16px;
}

.step-content p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

/* Responsive Onboarding */
@media (max-width: 768px) {
    .onboarding-modal .modal-content {
        width: 100%;
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        overflow-y: auto;
    }

    .onboarding-container {
        padding: 1.5rem 1rem;
        max-height: 100vh;
        overflow-y: auto;
    }

    .onboarding-title {
        font-size: 24px;
        margin-bottom: 1rem;
    }

    .onboarding-subtitle {
        font-size: 14px;
    }

    .onboarding-progress {
        margin-bottom: 1.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .progress-step {
        flex-shrink: 0;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .step-label {
        font-size: 10px;
    }

    .city-selector {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .city-option {
        padding: 1rem;
    }

    .onboarding-form {
        padding: 0;
    }

    .onboarding-form .form-group input,
    .onboarding-form .form-group select,
    .onboarding-form .form-group textarea {
        font-size: 16px;
    }

    .onboarding-nav {
        flex-direction: column;
    }

    .next-step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* ============================================
   NOTIFICATION SYSTEM
   Toast-style notifications matching TheCoop brand
   ============================================ */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    border-left: 4px solid;
}

/* Notification Icon */
.notification-icon {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

/* Notification Message */
.notification-message {
    flex: 1;
    color: var(--text-color);
    font-weight: 500;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
    line-height: 1;
}

.notification-close:hover {
    color: var(--text-color);
}

/* Success Notification */
.notification-success {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.notification-success .notification-icon {
    color: #10b981;
}

/* Error Notification */
.notification-error {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.notification-error .notification-icon {
    color: var(--danger-color);
}

/* Warning Notification */
.notification-warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.notification-warning .notification-icon {
    color: #f59e0b;
}

/* Info Notification */
.notification-info {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, var(--light-color) 0%, #ffffff 100%);
}

.notification-info .notification-icon {
    color: var(--primary-color);
}

/* Notification Animations */
@keyframes notificationEnter {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes notificationExit {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification-enter {
    animation: notificationEnter 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-show {
    animation: none;
}

.notification-exit {
    animation: notificationExit 0.3s ease-in-out forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 0;
        padding: 8px;
    }

    .notification {
        width: 100%;
        font-size: 14px;
        padding: 14px 16px;
    }

    .notification-icon {
        font-size: 20px;
    }

    .notification-close {
        font-size: 20px;
    }
}

/* Accessibility */
.notification:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hover effect */
.notification:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}
