/* ============================================
   Planning Bingo - CSS Styles
   Clean, minimal, fun!
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-gray-800);
    background: var(--color-gray-50);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

/* Navigation */
.nav {
    background: white;
    border-bottom: 1px solid var(--color-gray-200);
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-gray-900);
    text-decoration: none;
}

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

.nav-link {
    color: var(--color-gray-600);
    font-weight: 500;
    text-decoration: none;
}

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

/* Main Content */
.main {
    flex: 1;
    width: 100%;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer p {
    margin: 0 0 0.75rem;
}

.coffee-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #FFDD00;
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.coffee-link:hover {
    background: #ffce00;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
    gap: 0.5rem;
}

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

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

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

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--color-gray-700);
    border: 1px solid var(--color-gray-300);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

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

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

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius);
    background: white;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* ============================================
   Hero Section
   ============================================ */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--color-gray-900);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Preview */
.hero-preview {
    display: flex;
    justify-content: center;
}

.preview-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.preview-cell {
    width: 60px;
    height: 60px;
    background: var(--color-gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.preview-cell-complete {
    background: var(--color-success-light);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.features-title {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 3rem;
}

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

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

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

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

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

.feature-card h3 {
    font-size: 1.125rem;
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-gray-600);
    margin: 0;
}

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

.cta h2 {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
}

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

.cta .btn-primary:hover {
    background: var(--color-gray-100);
}

/* ============================================
   Wizard Styles
   ============================================ */
.wizard {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.wizard-wide {
    max-width: 1200px;
}

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

.wizard-step {
    font-size: 0.875rem;
    color: var(--color-gray-400);
    font-weight: 500;
}

.wizard-step.active {
    color: var(--color-primary);
}

.wizard-step.complete {
    color: var(--color-success);
}

.wizard-content {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .wizard-content {
        padding: 1.5rem;
    }
}

.wizard-title {
    font-size: 2rem;
    text-align: center;
    margin: 0 0 0.5rem;
}

.wizard-subtitle {
    text-align: center;
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

/* Name Input Section */
.name-input-section {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
}

.name-label {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.75rem;
}

.name-input {
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid var(--color-gray-200);
    border-radius: 999px;
    background: white;
    transition: all 0.2s ease;
}

.name-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

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

.wizard-back {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--color-gray-500);
    font-size: 0.9375rem;
}

/* Type Selection Cards */
.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.type-card {
    display: block;
    padding: 1.5rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.15s ease;
    color: inherit;
    text-decoration: none;
}

.type-card:hover {
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
    text-decoration: none;
}

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.type-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.type-card p {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin: 0;
}

.type-card-mixed {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

@media (max-width: 480px) {
    .type-card-mixed {
        grid-column: span 1;
    }
}

/* Time Period Cards */
.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 600px) {
    .time-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-card {
    display: block;
    padding: 1.5rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.15s ease;
    color: inherit;
    text-decoration: none;
    background: white;
    cursor: pointer;
}

.time-card:hover {
    border-color: var(--color-primary);
    text-decoration: none;
}

.time-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.time-desc {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

.time-card-featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-color: var(--color-primary-light);
}

/* Custom Dates */
.custom-dates {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.custom-dates-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.custom-dates-form .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

/* ============================================
   Goals Selection (Step 3)
   ============================================ */
.goals-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
}

@media (max-width: 900px) {
    .goals-layout {
        grid-template-columns: 1fr;
    }
}

.goal-count {
    font-weight: 600;
    color: var(--color-gray-500);
}

.goal-count-complete {
    color: var(--color-success);
}

/* Ideas Browser */
.ideas-browser {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.ideas-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.ideas-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ideas-tab:hover {
    background: var(--color-gray-100);
}

.ideas-tab.active {
    background: var(--color-primary);
    color: white;
}

.idea-subcategory {
    margin-bottom: 1.5rem;
}

.idea-subcategory-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--color-gray-700);
}

.idea-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.idea-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 999px;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.idea-chip:hover:not(:disabled) {
    border-color: var(--color-primary);
}

.idea-chip.selected {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.idea-chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.idea-action {
    font-weight: 600;
}

/* Selected Goals */
.selected-goals {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
}

.selected-title {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.custom-goal-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.custom-goal-input .form-input {
    flex: 1;
}

.selected-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: var(--color-gray-400);
}

.selected-empty-state span:first-child {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.selected-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--color-gray-50);
    border-radius: var(--radius);
    cursor: grab;
}

.selected-item:active {
    cursor: grabbing;
}

.selected-item-empty {
    background: white;
    border: 1px dashed var(--color-gray-300);
    cursor: default;
}

.selected-number {
    width: 24px;
    height: 24px;
    background: var(--color-gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
    flex-shrink: 0;
}

.selected-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    padding: 0.25rem;
}

.selected-input:focus {
    outline: none;
    background: white;
    border-radius: 4px;
}

.selected-placeholder {
    flex: 1;
    font-size: 0.8125rem;
    color: var(--color-gray-400);
}

.selected-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--color-gray-400);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.selected-remove:hover {
    background: var(--color-danger);
    color: white;
}

/* ============================================
   Review Step
   ============================================ */
.review-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

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

.review-card {
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.review-title-input {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    border: none;
    background: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
}

.review-title-input:focus {
    outline: none;
    background: white;
    border-radius: var(--radius);
}

.review-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-note {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    background: var(--color-gray-100);
    padding: 1rem;
    border-radius: var(--radius);
}

/* Bingo Grid Preview */
.bingo-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.bingo-grid-preview .bingo-cell {
    aspect-ratio: 1;
    padding: 0.375rem;
    border-radius: 10px;
}

.bingo-grid-preview .bingo-cell::before,
.bingo-grid-preview .bingo-cell::after {
    display: none;
}

.bingo-grid-preview .bingo-cell-text {
    font-size: 0.625rem;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.bingo-grid-preview .bingo-cell:hover {
    transform: none;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.02);
}

/* ============================================
   Bingo Card Page
   ============================================ */
.bingo-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.bingo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bingo-header-left {
    flex: 1;
    min-width: 200px;
}

.bingo-title {
    font-size: 2rem;
    margin: 0;
    color: var(--color-gray-900);
    font-weight: 700;
}

.bingo-title-input {
    font-size: 2rem;
    font-weight: 700;
    border: none;
    background: transparent;
    width: 100%;
    padding: 0;
    color: var(--color-gray-900);
}

.bingo-title-input:focus {
    outline: none;
    background: white;
    color: var(--color-gray-900);
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius);
}

.bingo-meta {
    display: flex;
    gap: 1rem;
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    margin-top: 0.75rem;
}

.bingo-type,
.bingo-period {
    background: var(--color-gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-weight: 500;
}

.bingo-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.bingo-progress {
    text-align: right;
    font-size: 0.9375rem;
    font-weight: 500;
}

.progress-bar {
    width: 150px;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 0.5rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.bingo-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Download Dropdown */
.download-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    min-width: 160px;
    z-index: 50;
}

.dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    border: none;
    background: none;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dropdown-menu button:hover {
    background: var(--color-gray-50);
}

/* ============================================
   Bingo Card - Artistic Design
   ============================================ */

/* Bingo Container - The Card Frame */
.bingo-container {
    background: 
        linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px;
    padding: 3px;
    box-shadow: 
        0 25px 50px -12px rgba(102, 126, 234, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.bingo-container::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.98) 100%);
    border-radius: 29px;
    z-index: 0;
}

/* Decorative corner flourishes */
.bingo-container::after {
    content: '✨';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Card Header for Export */
.bingo-card-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bingo-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-gray-900);
}

.bingo-card-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    background: rgba(99, 102, 241, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 1rem 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Individual Bingo Cells */
.bingo-cell {
    min-height: 90px;
    background: 
        linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-radius: 16px;
    padding: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -2px 6px rgba(0, 0, 0, 0.02);
}

/* Subtle pattern overlay */
.bingo-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.04) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(168, 85, 247, 0.03) 0%, transparent 60%);
    opacity: 1;
    transition: opacity 0.3s ease;
    border-radius: 18px;
    pointer-events: none;
}

/* Decorative corner accent */
.bingo-cell::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, transparent 50%);
    border-radius: 16px 0 16px 0;
    transition: all 0.3s ease;
}

.bingo-cell:hover:not(:disabled) {
    transform: translateY(-8px) scale(1.03) rotate(-1deg);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.2),
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 1);
}

.bingo-cell:hover:not(:disabled)::after {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 18px;
}

.bingo-cell:active:not(:disabled) {
    transform: translateY(-4px) scale(1.01);
    transition-duration: 0.1s;
}

.bingo-cell:disabled {
    cursor: default;
}

/* Completed State - Celebration! */
.bingo-cell.completed {
    background: 
        linear-gradient(145deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d0 100%);
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.2),
        0 1px 3px rgba(16, 185, 129, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.8),
        inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.bingo-cell.completed::before {
    background: 
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

.bingo-cell.completed::after {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

/* Bingo Line - Extra Special */
.bingo-cell.bingo-line {
    background: 
        linear-gradient(145deg, #dcfce7 0%, #bbf7d0 50%, #86efac 100%);
    box-shadow: 
        0 0 0 3px rgba(16, 185, 129, 0.3),
        0 8px 25px rgba(16, 185, 129, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.8);
    animation: bingo-shimmer 3s ease-in-out infinite;
}

@keyframes bingo-shimmer {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px rgba(16, 185, 129, 0.3),
            0 8px 25px rgba(16, 185, 129, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.8);
    }
    50% { 
        box-shadow: 
            0 0 0 5px rgba(16, 185, 129, 0.2),
            0 12px 35px rgba(16, 185, 129, 0.4),
            inset 0 2px 0 rgba(255, 255, 255, 0.8);
    }
}

/* Cell Text */
.bingo-cell-text {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-word;
    color: #374151;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
    letter-spacing: -0.01em;
}

.bingo-cell.completed .bingo-cell-text {
    color: #065f46;
}

.bingo-cell.bingo-line .bingo-cell-text {
    color: #047857;
    font-weight: 700;
}

/* Checkmark Badge */
.bingo-cell-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    background: 
        linear-gradient(145deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 
        0 3px 8px rgba(16, 185, 129, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    animation: check-bounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 3;
}

@keyframes check-bounce {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bingo-container {
        border-radius: 24px;
    }
    
    .bingo-container::before {
        border-radius: 21px;
    }
    
    .bingo-card-header {
        padding: 1rem 1rem 0.5rem;
    }
    
    .bingo-card-title {
        font-size: 1.25rem;
    }
    
    .bingo-grid {
        gap: 8px;
        padding: 0.75rem 1rem 1rem;
    }
    
    .bingo-cell {
        padding: 0.625rem;
        border-radius: 12px;
        min-height: 70px;
    }
    
    .bingo-cell-text {
        font-size: 0.8125rem;
    }
    
    .bingo-cell-check {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
        top: 5px;
        right: 5px;
    }
    
    .bingo-cell::after {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .bingo-container {
        border-radius: 20px;
    }
    
    .bingo-container::before {
        border-radius: 17px;
    }
    
    .bingo-card-header {
        padding: 0.75rem 0.75rem 0.5rem;
    }
    
    .bingo-card-title {
        font-size: 1.125rem;
    }
    
    .bingo-card-badge {
        font-size: 0.75rem;
    }
    
    .bingo-cell-text {
        font-size: 0.6875rem;
        font-weight: 600;
    }
    
    .bingo-cell {
        padding: 0.5rem;
        border-radius: 10px;
        min-height: 60px;
    }
    
    .bingo-grid {
        gap: 6px;
        padding: 0.5rem 0.75rem 0.75rem;
    }
    
    .bingo-cell-check {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: 3px;
        right: 3px;
    }
}

/* Bingo Notes */
.bingo-readonly-note {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-gray-500);
}

.save-reminder {
    background: var(--color-warning);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    text-align: center;
}

.save-reminder a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-gray-900);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

/* Bingo Celebration */
.bingo-celebration {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.celebration-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    animation: bounceIn 0.5s ease;
}

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

.celebration-content h2 {
    font-size: 2.5rem;
    margin: 0 0 1rem;
}

.celebration-content p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    margin: 0 0 1.5rem;
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 64px - 100px);
    padding: 2rem 1rem;
}

.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.auth-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    color: var(--color-gray-600);
    margin: 0 0 2rem;
}

.auth-form {
    text-align: left;
}

.auth-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.auth-tips {
    background: var(--color-gray-50);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: left;
    margin-top: 1.5rem;
}

.auth-tips p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* ============================================
   Dashboard
   ============================================ */
.dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

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

.dashboard-title {
    font-size: 1.75rem;
    margin: 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    display: block;
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.dashboard-card-title {
    font-size: 1.125rem;
    margin: 0;
}

.dashboard-card-progress {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-success);
}

.dashboard-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
    margin-bottom: 1rem;
}

/* Mini preview grid */
.preview-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.preview-mini-cell {
    aspect-ratio: 1;
    background: var(--color-gray-100);
    border-radius: 2px;
}

.preview-mini-complete {
    background: var(--color-success);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    margin: 0 0 0.5rem;
}

.empty-state p {
    color: var(--color-gray-600);
    margin: 0 0 1.5rem;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 480px) {
    .bingo-cell {
        padding: 0.5rem;
    }
    
    .bingo-cell-text {
        font-size: 0.6875rem;
    }
    
    .bingo-cell-check {
        width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }
}
