/* ==========================================================================
   Google StarShield - Core CSS Design System
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elegant Dark-themed Color Palette */
    --color-bg: #09090e;
    --color-bg-alt: #12121e;
    --color-surface: rgba(22, 22, 38, 0.65);
    --color-surface-hover: rgba(30, 30, 54, 0.85);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-focus: rgba(255, 255, 255, 0.25);
    
    --color-text-primary: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-text-dark: #111827;
    
    /* Branding and Accents */
    --color-primary: #4f46e5; /* Fallback indigo */
    --color-primary-rgb: 79, 70, 229;
    --color-primary-hover: #4338ca;
    
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Standard Glow and Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
    --glow-primary: 0 0 15px rgba(var(--color-primary-rgb), 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header & Navigation */
.app-header {
    background: rgba(9, 9, 14, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
}

.brand-logo i {
    color: var(--color-warning);
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
}

.logo-text span {
    background: linear-gradient(135deg, #818cf8 0%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.link-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.link-preview:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(var(--color-primary-rgb), 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

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

.btn-block {
    display: flex;
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--color-text-muted);
}

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

/* Input Fields & Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    font-size: 18px;
}

.input-wrapper input, .form-group textarea, .form-group input[type="url"], .form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(9, 9, 14, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.input-wrapper input {
    padding-left: 44px;
}

.input-wrapper input:focus, .form-group textarea:focus, .form-group input[type="url"]:focus, .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.2);
    background: rgba(9, 9, 14, 0.6);
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}

.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.col-span-2 {
    grid-column: span 2;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

.alert-success i {
    color: var(--color-success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-danger i {
    color: var(--color-danger);
}

/* Main Content Area */
.app-content {
    flex: 1;
    padding: 48px 0;
}

/* Footer */
.app-footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-text-muted);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Page Specific Styles
   -------------------------------------------------------------------------- */

/* Auth Pages (Login & Register) */
.auth-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.auth-card-wide {
    max-width: 650px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--color-text-muted);
    font-size: 14px;
}

.slug-wrapper {
    display: flex;
    align-items: center;
    background: rgba(9, 9, 14, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.slug-wrapper input {
    border: none !important;
    background: transparent !important;
    padding-left: 8px !important;
}

.slug-prefix {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--color-text-muted);
    border-right: 1px solid var(--color-border);
    user-select: none;
    white-space: nowrap;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-muted);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* Home / Marketing Landing Page */
.landing-hero {
    text-align: center;
    padding: 48px 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.15);
    color: #a5b4fc;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.landing-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtext {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

/* Mockup Widget */
.hero-mockup-wrapper {
    perspective: 1000px;
}

.hero-mockup {
    max-width: 500px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    transform: rotateX(5deg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.12);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: var(--color-text-muted);
    padding-right: 24px;
}

.mockup-body {
    padding: 40px;
    text-align: center;
}

.mockup-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00704a; /* Starbucks Green */
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 0 15px rgba(0, 112, 74, 0.3);
}

.mockup-body h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.mockup-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 32px;
    color: var(--color-warning);
    margin-bottom: 20px;
}

.mockup-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.divider {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 48px 0;
}

/* Features Grid section */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    text-align: left;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.icon-purple { background: rgba(79, 70, 229, 0.15); color: #818cf8; }
.icon-yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 15px;
}

/* Dashboard Panel */
.dashboard-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    padding: 32px;
    margin-bottom: 32px;
}

.banner-content h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.banner-content p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.share-box {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
}

.share-box input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(9, 9, 14, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-primary);
    font-size: 14px;
}

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

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    margin-top: 2px;
}

.stat-value .stars-mini {
    font-size: 18px;
    color: var(--color-warning);
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    margin-top: 2px;
}

.dashboard-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dashboard-section {
    padding: 32px;
}

.dashboard-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

/* Rating Distribution List */
.distribution-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.dist-stars {
    width: 50px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.dist-stars i {
    font-size: 14px;
    color: var(--color-warning);
}

.dist-bar-wrapper {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.dist-bar {
    height: 100%;
    border-radius: 4px;
}

.dist-count {
    width: 65px;
    text-align: right;
    color: var(--color-text-muted);
    font-size: 13px;
}

/* Feedback Inbox Table */
.feedback-table-wrapper {
    overflow-x: auto;
}

.feedback-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.feedback-table th {
    padding: 12px 16px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}

.feedback-table td {
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    font-size: 14px;
}

.feedback-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.rating-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.rating-badge-1 { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }
.rating-badge-2 { background: rgba(245, 158, 11, 0.15); color: #fde047; }
.rating-badge-3 { background: rgba(79, 70, 229, 0.15); color: #c7d2fe; }

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-info strong {
    color: var(--color-text-primary);
}

.customer-info span {
    font-size: 12px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.feedback-text-cell {
    color: var(--color-text-primary);
    max-width: 350px;
    white-space: pre-line;
}

.date-cell {
    color: var(--color-text-muted);
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: var(--color-text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h3 {
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

/* Settings Branding Page */
.settings-header {
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 28px;
}

.settings-header p {
    color: var(--color-text-muted);
}

.settings-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.settings-form {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 24px;
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.form-section h2 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-wrapper {
    display: flex;
    gap: 12px;
}

.color-picker-wrapper input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-picker-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

.logo-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-preview-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.empty-preview i {
    font-size: 24px;
    color: var(--color-text-muted);
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.form-section textarea {
    resize: vertical;
}

.settings-sidebar {
    padding: 32px;
    align-self: flex-start;
}

.settings-sidebar h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.card-link-preview {
    background: rgba(9, 9, 14, 0.4);
    border: 1px solid var(--color-border);
    padding: 12px;
    border-radius: var(--radius-sm);
    word-break: break-all;
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.card-link-preview a {
    color: #a5b4fc;
    text-decoration: underline;
}

.settings-help-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }

/* --------------------------------------------------------------------------
   Customer-facing Review Flow CSS
   -------------------------------------------------------------------------- */

.customer-review-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.customer-card {
    width: 100%;
    max-width: 550px;
    padding: 48px;
    text-align: center;
    border-color: rgba(var(--color-primary-rgb), 0.15);
}

.business-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.business-logo-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--color-primary-rgb), 0.3);
    box-shadow: 0 0 15px rgba(var(--color-primary-rgb), 0.2);
}

.business-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb), 0.3);
}

.business-name {
    font-size: 22px;
}

.rating-header h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.rating-header p {
    color: var(--color-text-muted);
    font-size: 15px;
}

.star-rating-container {
    margin-top: 32px;
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
    padding: 4px;
}

.star-btn:hover {
    transform: scale(1.2);
}

.star-btn.hover, .star-btn.active {
    color: var(--color-warning);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}

.star-btn.active-click {
    animation: starBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-label {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Modals & Overlays */
.overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 24px;
}

.overlay-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    padding: 40px;
    text-align: center;
    border-color: rgba(var(--color-primary-rgb), 0.25);
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

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

.modal-card h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.modal-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.redirect-countdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    display: inline-block;
}

.redirect-countdown span {
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Thank You Screen */
.thankyou-icon {
    font-size: 72px;
    color: var(--color-success);
    margin-bottom: 24px;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.thankyou-card h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.thankyou-card p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.thankyou-footer {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* 404 Error page */
.error-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-bg);
}

.error-container {
    text-align: center;
    max-width: 500px;
    padding: 40px;
}

.error-icon {
    font-size: 72px;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.error-container h1 {
    font-size: 96px;
    line-height: 1;
    background: linear-gradient(135deg, #f3f4f6 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.error-container h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.error-container p {
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Animations (Subtle & Responsive)
   -------------------------------------------------------------------------- */

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-bounce-slow {
    animation: bounce 3s infinite ease-in-out;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes starBounce {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .dashboard-body {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .settings-content {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
    .landing-hero h1 {
        font-size: 38px;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .customer-card {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .share-box {
        flex-direction: column;
        align-items: stretch;
    }
    .dist-row {
        font-size: 12px;
    }
}

/* ==========================================================================
   Modals, Toast Notifications, and Tab Styling
   ========================================================================== */

/* Tab Buttons */
.tab-nav-btn {
    border-bottom: 2px solid transparent !important;
}
.tab-nav-btn.active {
    color: var(--color-text-primary) !important;
    border-bottom-color: var(--color-primary) !important;
}
.tab-nav-btn:hover {
    color: var(--color-text-primary) !important;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 90%;
    max-width: 550px;
    padding: 32px;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 16px;
}

.modal-header h3 {
    font-size: 20px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body {
    margin-bottom: 24px;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    bottom: 32px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.1);
    color: #a7f3d0;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.toast-notification.active {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

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

