/* EddyCast Store Styles */

/* ============================================================================
   Variables (matches SeaLegs theme)
   ============================================================================ */
:root {
    --primary-blue: #0057A8;
    --primary-blue-dark: #004080;
    --secondary-blue: #075985;
    --accent-orange: #FF8504;
    --accent-orange-light: #fed7aa;
    --navy: #0F2041;
    --navy-light: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --header-height: 70px;
    --sidebar-width: 260px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
    overflow-x: hidden;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================================================
   Navigation
   ============================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0F2041;
    border-bottom: none;
    z-index: 1000;
    height: var(--header-height);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.ai-accent {
    color: var(--accent-orange);
}

.store-badge {
    background: var(--accent-orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-center-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: white;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.nav-user {
    display: flex;
    align-items: center;
    color: white;
    background: var(--accent-orange);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.btn.nav-profile-btn {
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn.nav-profile-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.btn.nav-profile-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.btn.nav-signout-btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
    font-size: 13px;
    padding: 6px 14px;
}

.btn.nav-signout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
}

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

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

.btn-primary:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}

.btn-orange {
    background: var(--accent-orange);
    color: white;
}

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

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

.btn-outline:hover {
    background: var(--primary-blue);
    color: white;
}

.google-btn-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-loading {
    display: none;
}

.spinner {
    animation: spin 1s linear infinite;
    width: 20px;
    height: 20px;
}

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

/* ============================================================================
   Store Landing — Hero
   ============================================================================ */
.store-hero {
    padding: calc(var(--header-height) + 48px) 20px 48px;
    text-align: center;
    background: linear-gradient(135deg, var(--navy) 0%, var(--secondary-blue) 100%);
    color: white;
}

.store-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.store-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Canceled banner */
.canceled-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 16px auto 0;
    max-width: 500px;
    color: #92400e;
    font-size: 14px;
}

/* ============================================================================
   Store Landing — Region Selector
   ============================================================================ */
.store-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px;
}

.store-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.store-section .section-subtitle {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 1rem;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.region-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.region-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 87, 168, 0.15);
}

.region-card.selected {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 133, 4, 0.2);
}

.region-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.region-card .region-name {
    padding: 10px 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.region-card.selected .region-name {
    color: var(--accent-orange);
}

/* ============================================================================
   Store Landing — Pricing Cards
   ============================================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.selected {
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 133, 4, 0.2);
}

.pricing-card.popular {
    border-color: var(--accent-orange);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}

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

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pricing-features li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: var(--success);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
    margin-top: 2px;
}

.savings-badge {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ============================================================================
   Buy Button (fixed bottom on mobile, inline on desktop)
   ============================================================================ */
.buy-bar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 48px;
    text-align: center;
}

.buy-button {
    padding: 18px 48px;
    font-size: 18px;
    border-radius: 12px;
    min-width: 340px;
}

/* ============================================================================
   Auth Pages
   ============================================================================ */
.auth-page {
    background: var(--gray-100);
}

.auth-container {
    min-height: calc(100vh - var(--header-height) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 40px) 20px 40px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

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

.auth-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--gray-800);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group select {
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--gray-800);
    background: var(--white);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.form-group input[type="date"] {
    cursor: pointer;
}

/* Port typeahead */
.port-typeahead {
    position: relative;
}

.port-typeahead-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 36px 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--gray-800);
    background: white;
}

.port-typeahead-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.port-typeahead-input::placeholder {
    color: var(--gray-400);
}

.port-typeahead-input:disabled {
    background: var(--gray-100);
    color: var(--gray-400);
    cursor: not-allowed;
}

.port-typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 240px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.port-typeahead-item {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-800);
    cursor: pointer;
    transition: background-color 0.1s;
}

.port-typeahead-item:hover,
.port-typeahead-item.highlighted {
    background-color: var(--gray-100);
}

.port-typeahead-other {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
    cursor: pointer;
    border-top: 1px solid var(--gray-200);
    transition: background-color 0.1s;
}

.port-typeahead-other:hover,
.port-typeahead-other.highlighted {
    background-color: var(--gray-50);
}

.port-typeahead-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
}

.port-typeahead-clear:hover {
    color: var(--gray-600);
    background: var(--gray-100);
}

.port-typeahead-empty {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--gray-400);
    font-style: italic;
}

/* Map picker for custom departure port */
.map-picker {
    margin-top: 8px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.map-picker .map-container {
    height: 260px;
    width: 100%;
}

.map-picker .map-hint {
    padding: 8px 12px;
    background: var(--gray-50);
    font-size: 13px;
    color: var(--gray-500);
    text-align: center;
}

.map-picker .map-coords {
    padding: 6px 12px;
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 500;
    text-align: center;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.map-done-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-blue);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.2s;
}

.map-done-btn:hover {
    background: var(--primary-blue-dark);
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--gray-600);
}

.forgot-link {
    color: var(--primary-blue);
    font-size: 14px;
}

.optional {
    color: var(--gray-400);
    font-weight: 400;
}

.field-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider-text {
    color: var(--gray-400);
    font-size: 13px;
    font-weight: 500;
}

.google-icon {
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 14px;
    color: var(--gray-500);
}

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

.recaptcha-disclosure {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    line-height: 1.5;
}

.recaptcha-disclosure a {
    color: var(--gray-500);
}

/* ============================================================================
   Checkout Confirmation
   ============================================================================ */
.checkout-container {
    max-width: 700px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 20px 60px;
}

.checkout-card {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.checkout-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.checkout-card .checkout-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 32px;
}

.report-preview {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.report-preview img {
    width: 100%;
    display: block;
}

.report-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

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

.report-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.report-stat .stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-top: 2px;
}

.report-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

/* Processing / loading state */
.checkout-loading {
    padding: 60px 0;
}

.checkout-loading .spinner {
    width: 48px;
    height: 48px;
    color: var(--primary-blue);
    margin: 0 auto 20px;
    display: block;
}

.checkout-loading p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Guest signup prompt */
.guest-signup {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}

.guest-signup h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.guest-signup p {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ============================================================================
   Account Dashboard
   ============================================================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
}

.dashboard-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: white;
    border-right: 1px solid var(--gray-200);
}

.sidebar-nav {
    list-style: none;
    position: sticky;
    top: var(--header-height);
    padding: 24px 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav li a:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.sidebar-nav li a.active {
    background: #eff6ff;
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    font-weight: 600;
}

.sidebar-nav li a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    padding: 32px;
}

.dashboard-section {
    display: none;
}

.dashboard-section.active {
    display: block;
}

.dashboard-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #FF8504 0%, #e67700 100%);
    margin: 0 0 24px;
    padding: 14px 20px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    text-align: center;
}

/* Report cards */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.2s;
}

.report-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.report-card-thumbnail {
    width: 140px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.report-card-thumbnail--link {
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
}

.report-card-thumbnail--link:hover {
    opacity: 0.85;
}

.report-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-card-thumbnail--placeholder {
    flex-direction: column;
    gap: 4px;
    border: 1px dashed var(--gray-300);
    background: var(--gray-50);
}

.report-card-thumbnail--placeholder svg {
    width: 28px;
    height: 28px;
    opacity: 0.5;
}

.report-card-thumbnail--placeholder span {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-400);
}

/* ── Radar animation (pending/processing/generating) ── */
.report-card-thumbnail--radar {
    background: #0F2041;
    border: none;
    position: relative;
}

.radar {
    aspect-ratio: 1 / 1;
    height: 100%;
    margin: 0 auto;
    position: relative;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(255, 133, 4, 0.25);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.radar-ring:nth-child(1) { width: 24%; height: 24%; }
.radar-ring:nth-child(2) { width: 48%; height: 48%; }
.radar-ring:nth-child(3) { width: 72%; height: 72%; }
.radar-ring:nth-child(4) { width: 96%; height: 96%; border-color: rgba(255, 133, 4, 0.15); }

.radar-center {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #FF8504;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: radar-sweep 2.5s linear infinite;
    z-index: 2;
}

.radar-sweep::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: conic-gradient(
        from -55deg at 50% 50%,
        rgba(255, 133, 4, 0) 0deg,
        rgba(255, 133, 4, 0.25) 50deg,
        rgba(255, 133, 4, 0) 55deg
    );
    border-radius: 50%;
}

.radar-blip {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #FF8504;
    border-radius: 50%;
    opacity: 0;
    animation: radar-blip 2.5s ease-out infinite;
    z-index: 1;
}
.radar-blip:nth-child(6) { top: 30%; left: 62%; animation-delay: 0.3s; }
.radar-blip:nth-child(7) { top: 58%; left: 35%; animation-delay: 1.0s; }
.radar-blip:nth-child(8) { top: 25%; left: 40%; animation-delay: 1.8s; }

.radar-label {
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 133, 4, 0.7);
    z-index: 4;
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes radar-blip {
    0%, 10% { opacity: 0; }
    15% { opacity: 0.9; }
    100% { opacity: 0; }
}

.report-card-info {
    flex: 1;
}

.report-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.report-card-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.report-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    width: 180px;
    justify-content: flex-end;
    align-items: flex-start;
}

.btn-delete-report {
    background: transparent;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}

.btn-delete-report:hover {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-delete-report:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Confirmation modal */
.confirm-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.confirm-modal.open {
    display: flex;
}

.confirm-modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: confirmSlideUp 0.2s ease-out;
}

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

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fef2f2;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-modal-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px;
}

.confirm-modal-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0 0 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
}

.confirm-modal-actions .btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
    transition: background 0.15s;
}

.btn-danger:hover {
    background: #c82333;
}

/* Subscription card */
.subscription-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
}

.subscription-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.sub-detail {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.sub-detail:last-child {
    border-bottom: none;
}

.sub-detail .sub-label {
    color: var(--gray-500);
}

.sub-detail .sub-value {
    font-weight: 500;
    color: var(--gray-800);
}

.sub-status-active {
    color: var(--success);
    font-weight: 600;
}

.sub-status-inactive {
    color: var(--gray-400);
}

/* Profile layout */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

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

.profile-form {
    max-width: none;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================================================
   Status containers (success, error, loading)
   ============================================================================ */
.success-container, .status-container {
    text-align: center;
    padding: 20px 0;
}

.success-icon, .status-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon, .status-icon.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.status-icon.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.success-icon svg, .status-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.success-container h2, .status-container h2 {
    color: var(--gray-900);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.success-container p, .status-container p {
    color: var(--gray-600);
    margin-bottom: 8px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 16px;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 20px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
}

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

/* ============================================================================
   Mobile Responsive
   ============================================================================ */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #0F2041;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        width: 100%;
    }

    .store-hero h1 {
        font-size: 1.75rem;
    }

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

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

    .buy-button {
        min-width: auto;
        width: 100%;
    }

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

    .auth-card {
        padding: 28px 20px;
    }

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

    .report-actions {
        flex-direction: column;
    }

    .checkout-card {
        padding: 32px 20px;
    }

    /* Dashboard mobile */
    .dashboard-sidebar {
        display: none;
    }

    .dashboard-main {
        padding: 20px;
    }

    .dashboard-mobile-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 12px 0;
        margin-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-mobile-nav a {
        flex-shrink: 0;
        padding: 8px 16px;
        background: white;
        border: 1px solid var(--gray-200);
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
        color: var(--gray-600);
        text-decoration: none;
    }

    .dashboard-mobile-nav a.active {
        background: var(--primary-blue);
        color: white;
        border-color: var(--primary-blue);
    }

    .report-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-card-thumbnail {
        width: 100%;
        height: 120px;
    }

    .report-card-actions {
        width: 100%;
    }

    .report-card-actions .btn {
        flex: 1;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .region-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .region-card img {
        height: 90px;
    }

    .region-card .region-name {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Desktop: hide mobile dashboard nav */
@media (min-width: 769px) {
    .dashboard-mobile-nav {
        display: none;
    }
}

/* ============================================================================
   Buy Widget — Region chips, plan cards, CTA (shared by store + account)
   ============================================================================ */
.buy-widget {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.store-card {
    width: 100%;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.store-card-header {
    background: var(--navy);
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.85);
}

.store-card-body {
    padding: 16px 20px;
}

.region-selector {
    width: 100%;
}

.region-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 680px;
    margin: 0 auto;
}

.region-chip {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    background: white;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: inherit;
}

.region-chip:hover {
    border-color: #0057A8;
    color: #0057A8;
    background: #eff6ff;
}

.region-chip.selected {
    border-color: #FF8504;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(255, 133, 4, 0.1);
}

.region-chip.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.plan-selector {
    width: 100%;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-card {
    position: relative;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    padding: 20px 16px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.plan-card:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.plan-card.selected {
    border-color: #FF8504;
    background: #fff7ed;
}

.plan-card.popular:not(.selected) {
    border-color: rgba(255, 133, 4, 0.3);
}

.plan-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF8504, #f59e0b);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-name {
    font-weight: 600;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-price {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.plan-period {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.plan-unit-price {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.plan-unit-price.plan-best-value {
    color: #0057A8;
    font-weight: 600;
}

.plan-desc {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

.plan-savings {
    display: inline-block;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    margin-top: 6px;
}

.store-cta {
    text-align: center;
    width: 100%;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 48px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 320px;
    background: linear-gradient(135deg, #FF8504 0%, #e67700 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 133, 4, 0.25);
}

.buy-btn:hover:not(:disabled) {
    box-shadow: 0 6px 24px rgba(255, 133, 4, 0.35);
    transform: translateY(-1px);
}

.buy-btn:disabled {
    background: #cbd5e1;
    color: white;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.buy-btn .btn-loading {
    display: none;
}

.buy-btn .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.cta-secure {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cta-secure svg {
    width: 12px;
    height: 12px;
}

/* Buy widget responsive */
@media (max-width: 700px) {
    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .plan-card {
        padding: 14px 16px;
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        text-align: left;
        gap: 0 16px;
    }

    .plan-card .plan-name {
        grid-column: 1;
        grid-row: 1;
    }

    .plan-card .plan-price {
        grid-column: 2;
        grid-row: 1 / 3;
        align-self: center;
        font-size: 1.25rem;
    }

    .plan-card .plan-period {
        grid-column: 1;
        grid-row: 2;
        margin-bottom: 0;
    }

    .plan-card .plan-unit-price {
        grid-column: 1;
        grid-row: 2;
        font-size: 11px;
        margin-bottom: 0;
    }

    .plan-card .plan-desc {
        display: none;
    }

    .plan-card .plan-savings {
        grid-column: 1 / -1;
        margin-top: 4px;
        justify-self: start;
    }

    .plan-badge {
        left: auto;
        right: 12px;
        transform: none;
    }

    .buy-btn {
        min-width: auto;
        width: 100%;
        padding: 14px 24px;
    }

    .region-chip {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-height: 780px) and (min-width: 701px) {
    .plan-card {
        padding: 16px 12px 14px;
    }

    .plan-price {
        font-size: 1.65rem;
    }
}

/* ============================================================================
   Billing — Balance card, data table, status badges
   ============================================================================ */
.billing-card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    background: white;
}

.billing-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 16px;
}

.billing-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.billing-stat-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.billing-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 4px;
}

.billing-stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-container {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow-x: auto;
}

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

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
}

.data-table td {
    font-size: 14px;
    color: var(--gray-700);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.status-badge.refunded {
    background: var(--gray-100);
    color: var(--gray-500);
}

.credits-positive {
    color: var(--success);
    font-weight: 600;
}

.credits-negative {
    color: var(--gray-500);
    font-weight: 600;
}

@media (max-width: 700px) {
    .billing-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .billing-stat-card {
        padding: 14px 10px;
    }

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

/* Hide reCAPTCHA badge (disclosure text is shown inline) */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ============================================================================
   Reports — Balance bar, create form, status badges, enhanced cards
   ============================================================================ */

/* Reports balance bar */
.reports-balance-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.reports-balance-credits {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.reports-balance-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.reports-balance-label {
    font-size: 14px;
    color: var(--gray-500);
}

/* Create report form card */
.create-report-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    animation: slideDown 0.3s ease-out;
}

.create-report-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 16px;
}

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

/* Region chip grid (for create report form) */
.region-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.region-chip-grid .region-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--gray-300);
    background: white;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: inherit;
}

.region-chip-grid .region-chip:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: #eff6ff;
}

.region-chip-grid .region-chip.selected {
    border-color: var(--accent-orange);
    background: #fff7ed;
    color: #c2410c;
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(255, 133, 4, 0.1);
}

/* Report status badges */
.report-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.report-status.pending {
    background: #FFF3E0;
    color: #E65100;
}

.report-status.generating {
    background: #E3F2FD;
    color: #1565C0;
    animation: pulse 2s infinite;
}

.report-status.processing {
    background: #E3F2FD;
    color: #1565C0;
    animation: pulse 2s infinite;
}

.report-status.ready {
    background: #E8F5E9;
    color: #2E7D32;
}

.report-status.failed {
    background: #FFEBEE;
    color: #B71C1C;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Enhanced report cards */
.report-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.report-card-detail-item {
    font-size: 12px;
    color: var(--gray-500);
}

.report-card-detail-item strong {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

/* Report card actions with view/download buttons */
.report-card-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* Reports balance bar responsive */
@media (max-width: 768px) {
    .reports-balance-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .reports-balance-bar .btn {
        width: 100%;
    }

    .report-card-details {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================================
   Reports Filter Bar
   ============================================================================ */
.reports-filter-bar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    transition: border-color 0.15s, box-shadow 0.15s;
    min-width: 180px;
}

.filter-group select:hover,
.filter-group input[type="date"]:hover {
    border-color: var(--gray-300);
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 87, 168, 0.1);
}

.reports-filter-bar .filter-clear {
    padding: 8px 16px;
    font-size: 13px;
    border-width: 1px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .reports-filter-bar {
        flex-wrap: wrap;
        padding: 14px 16px;
        gap: 12px;
    }

    .filter-group {
        flex: 1 1 100%;
    }

    .filter-group select,
    .filter-group input[type="date"] {
        min-width: 0;
        width: 100%;
    }

    .reports-filter-bar .filter-clear {
        width: 100%;
    }
}
