/* ===== PREMIUM PROFESSIONAL PAGES STYLES ===== */

/* CSS Variables */
:root {
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-tertiary: #94A3B8;
    --primary: #0EA5E9;
    --primary-dark: #0284C7;
    --purple: #0EA5E9;
    --purple-dark: #0284C7;
}

/* Page Container */
.page-container {
    padding: 2.5rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    background: #F8FAFB;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title-section {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.938rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Premium Buttons */
.primary-btn {
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-size: 0.938rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(14, 165, 233, 0.35);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(14, 165, 233, 0.45);
}

.primary-btn svg {
    width: 20px;
    height: 20px;
}

/* Smaller Secondary Buttons */
.secondary-btn {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    padding: 0.625rem 1.125rem;
    border-radius: 0.75rem;
    font-size: 0.813rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.secondary-btn:hover {
    background: rgba(14, 165, 233, 0.06);
    border-color: rgba(14, 165, 233, 0.28);
    color: #0EA5E9;
}

.danger-btn {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    padding: 0.625rem 1.125rem;
    border-radius: 0.75rem;
    font-size: 0.813rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-btn:hover {
    background: rgba(220, 38, 38, 0.04);
    border-color: rgba(220, 38, 38, 0.3);
    color: #DC2626;
}

/* Larger Create Button */
.create-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    color: white;
    border: none;
    padding: 0.938rem 2rem;
    border-radius: 0.938rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px -4px rgba(14, 165, 233, 0.45);
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px -6px rgba(14, 165, 233, 0.50);
}

.create-btn svg {
    width: 20px;
    height: 20px;
}

/* Premium Lists Section */
.lists-section {
    background: white;
    border-radius: 1.125rem;
    padding: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.lists-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Search Bar in Lists */
.lists-header .page-search-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    padding-left: 2.75rem;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    background: #F8FAFC;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
}

.lists-header .page-search-input::placeholder {
    color: var(--text-tertiary);
}

.lists-header .page-search-input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    background: white;
}

/* Premium Tabs with Pills Design */
.lists-tabs {
    display: flex;
    gap: 0.625rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.list-tab {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #F9FBFF 100%);
    border: 1px solid rgba(14, 165, 233, 0.14);
    border-radius: 0.75rem;
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.list-tab:hover {
    color: #0EA5E9;
    background: rgba(14, 165, 233, 0.10);
    border-color: rgba(14, 165, 233, 0.22);
}

.list-tab.active {
    color: white;
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px -2px rgba(14, 165, 233, 0.35), 0 2px 6px -1px rgba(14, 165, 233, 0.25);
}

/* List Actions */
.list-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

/* Ensure action buttons are the same height */
.list-actions .action-btn {
    padding: 0.625rem 1.125rem;
}

/* Drag Hint */
.drag-hint {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.10) 0%, rgba(14, 165, 233, 0.10) 100%);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    color: #0EA5E9;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(14, 165, 233, 0.24);
}

.drag-hint svg {
    width: 20px;
    height: 20px;
    color: #0EA5E9;
}

/* Premium List Items with Cards */
.list-items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAFBFC 100%);
    border-radius: 0.875rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: move;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.06), 0 1px 3px -1px rgba(0, 0, 0, 0.04);
    position: relative;
}

.list-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #38BDF8 0%, #0EA5E9 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 0.875rem 0.875rem 0;
}

.list-item:hover::before {
    opacity: 1;
}

.list-item:hover {
    background: white;
    border-color: rgba(14, 165, 233, 0.30);
    box-shadow: 0 8px 24px -6px rgba(14, 165, 233, 0.20), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
    transform: translateX(-3px) translateY(-2px);
}

.list-item.dragging {
    opacity: 0.6;
    transform: scale(0.98);
    box-shadow: 0 12px 32px -8px rgba(14, 165, 233, 0.28);
}

.drag-handle {
    width: 20px;
    height: 20px;
    color: #CBD5E1;
    cursor: grab;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.list-item:hover .drag-handle {
    color: #0EA5E9;
    transform: scale(1.1);
}

.drag-handle:active {
    cursor: grabbing;
}

.list-item-text {
    flex: 1;
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--text-primary);
}

.list-item-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.list-item:hover .list-item-actions {
    opacity: 1;
}

.edit-btn,
.delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.edit-btn {
    background: rgba(14, 165, 233, 0.10);
    color: #0EA5E9;
}

.edit-btn:hover {
    background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(14, 165, 233, 0.35);
}

.delete-btn {
    background: rgba(220, 38, 38, 0.1);
    color: #DC2626;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.4);
}

.edit-btn svg,
.delete-btn svg {
    width: 18px;
    height: 18px;
}

/* Premium Statistics Grid - 3 Cards Only */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(217, 183, 114, 0.18)) border-box;
    border-radius: 0.875rem;
    padding: 2rem 2.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.08);
}

.stat-card:hover::after {
    height: 5px;
}

.active-card::after {
    background: linear-gradient(90deg, #38BDF8 0%, #0EA5E9 100%);
}

.completed-card::after {
    background: linear-gradient(90deg, #38BDF8 0%, #0EA5E9 100%);
}

.total-card::after {
    background: linear-gradient(90deg, #38BDF8 0%, #0EA5E9 100%);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: radial-gradient(120% 120% at 80% 0%, rgba(14,165,233,0.18) 0%, rgba(14,165,233,0.06) 28%, #FFFFFF 60%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15,23,42,0.06), inset 0 0 0 2px rgba(255,255,255,0.65);
    color: var(--text-primary);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.2);
}

.active-card .stat-icon,
.completed-card .stat-icon,
.total-card .stat-icon {
    color: var(--text-primary);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.625rem;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.stat-description {
    font-size: 0.813rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Premium Reminders Section */
.reminders-section {
    background: white;
    border-radius: 1.125rem;
    padding: 2.5rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.reminders-header {
    margin-bottom: 2rem;
}

.reminders-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.page-search-input {
    flex: 1;
    min-width: 280px;
    padding: 0.875rem 1.125rem;
    padding-left: 2.75rem;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    background: #F8FAFC;
    color: var(--text-primary);
}

.page-search-input::placeholder {
    color: var(--text-tertiary);
}

.page-search-input:hover {
    border-color: rgba(14, 165, 233, 0.28);
}

.page-search-input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
    background: white;
}

.filter-select {
    padding: 0.875rem 1.125rem;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    background: white;
    color: var(--text-primary);
}

.filter-select:hover {
    border-color: rgba(14, 165, 233, 0.30);
}

.filter-select:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.10);
}

/* CLEAN PROFESSIONAL REMINDERS LIST */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reminder-card {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(14, 165, 233, 0.22);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 24px -14px rgba(15, 23, 42, 0.35), 0 2px 8px -2px rgba(15, 23, 42, 0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    backdrop-filter: blur(6px);
}

.reminder-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #38BDF8 0%, #0EA5E9 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0.875rem 0 0 0.875rem;
}

.reminder-card:hover::before {
    opacity: 1;
}

.reminder-card:hover {
    background: white;
    border-color: rgba(14, 165, 233, 0.26);
    box-shadow: 0 6px 20px -4px rgba(14, 165, 233, 0.20), 0 3px 10px -2px rgba(15, 23, 42, 0.08);
    transform: translateX(2px) translateY(-1px);
}

.reminder-header {
    flex: 1;
    min-width: 0;
}

.reminder-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.reminder-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.reminder-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-meta-item svg {
    width: 16px;
    height: 16px;
    color: #0EA5E9;
    flex-shrink: 0;
}

.reminder-meta-item span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Map HTML's .meta-item to premium styles */
.reminder-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reminder-meta .meta-item svg {
    width: 16px;
    height: 16px;
    color: #0EA5E9;
}

.reminder-meta .meta-item span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* Premium pill for the type badge */
.reminder-type {
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 9999px;
}

.reminder-type span {
    color: #0EA5E9;
}

.reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(14, 165, 233, 0.12) 100%);
    border: 1px solid rgba(14, 165, 233, 0.24);
    border-radius: 0.5rem;
    font-size: 0.813rem;
    font-weight: 700;
    color: #0EA5E9;
    transition: all 0.25s ease;
}

.reminder-card:hover .reminder-badge {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(14, 165, 233, 0.18) 100%);
    border-color: rgba(14, 165, 233, 0.28);
}

.reminder-badge svg {
    width: 12px;
    height: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reminder-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .reminder-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ===== LUXURY PAGES OVERRIDES (non-breaking, appended) ===== */

.page-container { position: relative; }
.page-container::after {
    content: '';
    position: absolute;
    top: 0; left: 2rem; right: 2rem; height: 1px;
    background: linear-gradient(90deg, rgba(217,183,114,0.30), rgba(14,165,233,0.26), rgba(217,183,114,0.30));
    opacity: 0.6; pointer-events: none;
}

/* Premium search box like dashboard */
.page-search-box {
    display: flex; align-items: center; gap: 0.625rem;
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(217, 183, 114, 0.18)) border-box;
    padding: 0.625rem 1.125rem; border-radius: 0.875rem; border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}
.page-search-box:focus-within { background: #FFFFFF; box-shadow: 0 0 0 3px rgba(14,165,233,0.16), 0 4px 10px -2px rgba(15,23,42,0.08); }
.page-search-input { caret-color: var(--primary); }

/* Selection across pages */
::selection { background: rgba(14, 165, 233, 0.20); color: var(--text-primary); }

/* Stat card sheen sweep */
.stat-card { overflow: hidden; }
.stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 60%);
    background-size: 220% 100%; background-position: -140% 0;
    pointer-events: none; opacity: 0; transition: opacity 0.2s ease;
}
.stat-card:hover::before { opacity: 1; animation: sheen-sweep-pages 1.2s ease forwards; }

@keyframes sheen-sweep-pages { 0% { background-position: -140% 0; } 100% { background-position: 140% 0; } }

/* Buttons and selects focus ring (redundant with global, but ensures consistency) */
::where(.primary-btn, .secondary-btn, .danger-btn, .filter-select, .page-search-input):focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18), 0 0 0 6px rgba(217, 183, 114, 0.10);
    border-color: rgba(14, 165, 233, 0.32);
}

/* ===== SETTINGS PAGE STYLES ===== */
.settings-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    background: white;
    border-radius: 1.125rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card:hover {
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.15), 0 6px 18px -4px rgba(0, 0, 0, 0.08);
}

.settings-card-header {
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
}

.settings-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.settings-card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.settings-card-body {
    padding: 2rem 2.5rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid rgba(226, 232, 240, 0.8);
    border-radius: 0.875rem;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    background: #F8FAFC;
    color: var(--text-primary);
}

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

.form-input:hover {
    border-color: rgba(14, 165, 233, 0.28);
}

.form-input:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.14);
    background: white;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    font-weight: 400;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.current-user-display {
    margin-top: 1.5rem;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(56, 189, 248, 0.08) 100%);
    border: 1px solid rgba(14, 165, 233, 0.22);
    border-radius: 0.875rem;
}

.info-box svg {
    width: 24px;
    height: 24px;
    color: #0EA5E9;
    flex-shrink: 0;
}

.info-box strong {
    color: var(--text-primary);
    font-weight: 700;
}

.info-box span {
    color: var(--text-secondary);
    font-weight: 400;
}

.connection-status {
    padding: 1rem 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.status-connected {
    background: #22C55E;
}

.status-connected::before {
    background: rgba(34, 197, 94, 0.4);
}

.status-disconnected {
    background: #EF4444;
}

.status-disconnected::before {
    background: rgba(239, 68, 68, 0.4);
}

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

/* Notification Toast */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    transform: translateY(150%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
}

.notification.success {
    border-color: #22C55E;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #15803D;
}

.notification.error {
    border-color: #EF4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.08) 100%);
    color: #991B1B;
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(14, 165, 233, 0.26);
    border-radius: 50%;
    border-top-color: #0EA5E9;
    animation: spin 0.6s linear infinite;
}

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

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: white;
    border-radius: 1.125rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px -8px rgba(15, 23, 42, 0.4);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(14, 165, 233, 0.10);
    color: var(--primary);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.danger-btn {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.875rem;
    font-size: 0.938rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px -2px rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.danger-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -4px rgba(239, 68, 68, 0.45);
}

/* Reminder card delete button */
.reminder-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: transparent;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.icon-btn:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.icon-btn.delete-btn:hover {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.icon-btn.delete-btn:hover svg {
    color: #EF4444;
}

/* ===== LUXURY REFINEMENTS FOR REMINDERS & LISTS (non-breaking) ===== */

/* Premium page container panel to match dashboard */
.page-container {
    background:
      linear-gradient(180deg, #FFFFFF 0%, #F5F8FF 60%, #EEF4FF 100%) padding-box,
      linear-gradient(135deg, rgba(14,165,233,0.20), rgba(217,183,114,0.24)) border-box;
    border: 1px solid transparent;
    border-radius: 1rem;
    box-shadow: 0 30px 80px -30px rgba(15,23,42,0.18), 0 12px 24px -14px rgba(15,23,42,0.12);
}

/* Elevate section cards with gradient borders & subtle watermark */
.reminders-section,
.lists-section {
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                linear-gradient(135deg, rgba(14,165,233,0.16), rgba(217,183,114,0.18)) border-box;
    border: 1px solid transparent;
    border-radius: 0.875rem;
    position: relative;
    overflow: hidden;
}

.reminders-section::after,
.lists-section::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 12px 12px, rgba(14,165,233,0.05) 2px, transparent 3px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.06) 30%, rgba(0,0,0,0.02) 70%, transparent 100%);
}

/* Buttons: add premium borders and sheen */
.primary-btn,
.create-btn {
    border: 1px solid transparent;
    background:
      linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%) padding-box,
      linear-gradient(135deg, rgba(14,165,233,0.35), rgba(217,183,114,0.35)) border-box;
    position: relative;
    overflow: hidden;
}

.primary-btn::before,
.create-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 60%);
    background-size: 220% 100%;
    background-position: -140% 0;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.primary-btn:hover::before,
.create-btn:hover::before {
    opacity: 1;
    animation: sheen-sweep-pages 1.1s ease forwards;
}

.secondary-btn,
.filter-select {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%) padding-box,
                linear-gradient(135deg, rgba(14,165,233,0.14), rgba(217,183,114,0.18)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}

.secondary-btn:hover,
.filter-select:hover {
    background: linear-gradient(180deg, #F8FAFF 0%, #EEF2FF 100%) padding-box,
                linear-gradient(135deg, rgba(14,165,233,0.22), rgba(217,183,114,0.24)) border-box;
}

/* Tabs: add subtle gold inner outline on active */
.list-tab.active {
    position: relative;
}

.list-tab.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(217,183,114,0.28) inset;
    pointer-events: none;
}

/* Reminders and list items: sheen microinteraction */
.reminder-card::after,
.list-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0) 55%);
    background-size: 220% 100%;
    background-position: -140% 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.reminder-card:hover::after,
.list-item:hover::after {
    opacity: 1;
    animation: sheen-sweep-pages 1.2s ease forwards;
}

/* Modals: premium gradient border */
.modal {
    background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
                linear-gradient(135deg, rgba(14,165,233,0.22), rgba(217,183,114,0.22)) border-box;
    border: 1px solid transparent;
}

/* ===== PREMIUM USER PROFILE STYLES ===== */

/* Profile Info Grid */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.04) 0%, rgba(99,102,241,0.03) 100%);
    border: 1px solid rgba(14,165,233,0.1);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.profile-info-item:hover {
    background: linear-gradient(135deg, rgba(14,165,233,0.08) 0%, rgba(99,102,241,0.06) 100%);
    border-color: rgba(14,165,233,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14,165,233,0.08);
}

.profile-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14,165,233,0.2);
}

.profile-info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.profile-info-content {
    flex: 1;
    min-width: 0;
}

.profile-info-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.profile-info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn-secondary {
    background: linear-gradient(135deg, rgba(239,68,68,0.08) 0%, rgba(220,38,38,0.06) 100%);
    color: #DC2626;
    border: 1px solid rgba(239,68,68,0.2);
}

.action-btn-secondary:hover {
    background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(220,38,38,0.1) 100%);
    border-color: rgba(239,68,68,0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.15);
}

.action-btn-secondary:active {
    transform: translateY(0);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.04) 0%, rgba(99,102,241,0.03) 100%);
    border: 1px solid rgba(14,165,233,0.1);
    border-radius: 14px;
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon svg {
    width: 22px;
    height: 22px;
}

.status-icon-success {
    background: linear-gradient(135deg, rgba(16,185,129,0.12) 0%, rgba(5,150,105,0.08) 100%);
    color: #059669;
}

.status-icon-primary {
    background: linear-gradient(135deg, rgba(14,165,233,0.12) 0%, rgba(2,132,199,0.08) 100%);
    color: #0284C7;
}

.status-info {
    flex: 1;
    min-width: 0;
}

.status-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.status-value {
    font-size: 1rem;
    font-weight: 600;
}

.status-value-success {
    color: #059669;
}

.status-value-primary {
    color: #0284C7;
}

/* ===== LISTS PAGE: IPHONE TUNING (≤480px) ===== */
@media (max-width: 480px) {
    /* Put title+subtitle on same row with the create button */
    .page-header { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
    .page-title-section { margin: 0; }
    .page-title { margin: 0; font-size: 1.35rem; }
    .page-subtitle { font-size: 0.875rem; }

    .page-container { padding: 1rem; border-radius: 0.75rem; }
    .page-title { font-size: 1.5rem; }
    .lists-section { padding: 1rem; }
    .list-actions { gap: 0.5rem; }
    .list-tab { padding: 0.625rem 1rem; font-size: 0.875rem; }

    .list-item { padding: 1rem; gap: 0.75rem; }
    .list-item-text { font-size: 0.95rem; overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
    .edit-btn, .delete-btn { width: 32px; height: 32px; }
}

/* ===== REMINDERS PAGE: IPHONE FIT (≤480px) ===== */
@media (max-width: 480px) {
    .reminder-card { padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .reminder-header { width: 100%; }
    .reminder-title { white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.4; }
    .reminder-meta { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
    .reminder-meta-item span { white-space: normal; }
    .reminder-badge { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
}

/* ===== CALENDAR PAGE: IPHONE FIT (≤480px) ===== */
@media (max-width: 480px) {
    .calendar-header { padding: 16px; margin-bottom: 16px; }
    .calendar-header-title h1 { font-size: 22px; }
    .calendar-grid-container { padding: 8px 4px; overflow-x: hidden; }
    .calendar-grid { gap: 0; transform: none; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .calendar-day { min-width: 0; min-height: 100px; }
    .calendar-day-header { padding: 6px; font-size: 11px; }
    .calendar-day { padding: 4px; }
    .day-events { display: flex; flex-direction: column; gap: 4px; max-width: 100%; }
    .month-navigation { gap: 8px; }
    .month-nav-btn { width: 32px; height: 32px; font-size: 16px; }
    .current-month { min-width: auto; font-size: 16px; }
    .view-toggle { padding: 2px; flex-wrap: wrap; gap: 4px; }
    .view-btn { padding: 6px 10px; font-size: 12px; }
    .day-events { max-width: 100%; }
    /* Event chip style: two-line clamp for readability */
    .calendar-event { 
        display: inline-flex;
        align-items: center;
        width: max-content;
        max-width: 100%;
        background: linear-gradient(180deg, rgba(14,165,233,0.10), rgba(14,165,233,0.06));
        border: 1px solid rgba(14,165,233,0.22);
        border-left: 3px solid var(--primary);
        border-radius: 9999px;
        padding: 6px 14px; /* wider to fit double-digit HH */
        min-width: 64px; /* ensure room for 21:00 */
        line-height: 1;
        white-space: nowrap;
        overflow: visible;
        text-overflow: initial;
        font-size: 0; /* hide title text on mobile */
    }
    .calendar-event .event-time { font-size: 13px; font-weight: 700; color: #0369A1; margin-left: 0; letter-spacing: 0.15px; font-variant-numeric: tabular-nums; direction: ltr; text-align: center; display: inline-block; width: 100%; }
}
