html,
body {
    width: 100%;
    height: 100%;
}

:root {
    /* Palette: Warm Modern */
    --color-primary: #EC7357;
    /* Coral */
    --color-primary-hover: #D66348;
    --color-secondary: #FDD692;
    /* Apricot */
    --color-accent: #E1CE7A;
    /* Mustard */
    --color-brown-dark: #754F44;
    --color-brown-light: #A47E72;
    --color-cream: #FBFFB9;

    /* Semantic Aliases - Glass Dark Mode (Default) */
    --bg-color: #1E1918;
    /* Deep Warm Brown Fallback */

    /* GLASS SURFACES */
    --surface-color: rgba(30, 25, 24, 0.6);
    --surface-glass: rgba(30, 25, 24, 0.4);
    --surface-hover: rgba(56, 46, 43, 0.7);

    --text-color: #FBFFB9;
    /* Cream Text for Dark Mode */
    --text-secondary: #D4CDA8;
    /* Muted Cream */
    --border-color: rgba(255, 255, 255, 0.1);

    --primary-color: var(--color-primary);
    --primary-hover: var(--color-primary-hover);

    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --success-color: #22c55e;

    --input-bg: rgba(0, 0, 0, 0.3);
    --link-color: #FDD692;

    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Modern UI tokens */
    --radius-sm: 6px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);

    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Force Dark Theme implicitly by not defining light overrides or making them same as dark if needed (User asked to remove toggle) */
[data-theme="light"] {
    /* Keeping variables mostly same or forcing dark look even if class is present, 
      but for cleanliness essentially we just want the dark variables to reign supreme. 
      I will comment out the light theme block in a separate edit or just overwrite it here to be safe/inert. */
    --bg-color: #1E1918;
    --surface-color: rgba(30, 25, 24, 0.6);
    --text-color: #FBFFB9;
    --text-secondary: #D4CDA8;
    --border-color: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.3);
    --link-color: #FDD692;
}

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

body {
    background: linear-gradient(rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.60)), url('bg_dark.jpg') no-repeat center center/cover fixed;
    background-color: var(--bg-color);
    /* Fallback */
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0.5rem 0.5rem 0.5rem;
}

/* Header */
header {
    background-color: rgba(30, 25, 24, 0.3);
    /* Even more transparent */
    border-bottom: var(--glass-border);
    padding: 1rem 0 0 0;
    margin-bottom: 3rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

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

header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--primary-color), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.6rem;
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background-color: var(--input-bg);
    transform: translateY(-1px);
}

/* Settings Dropdown */
/* Settings & Avatar */
.settings-container {
    position: relative;
    margin-left: 0.5rem;
}

.avatar-container {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.avatar-container:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(236, 115, 87, 0.15);
    /* Primary color low opacity ring */
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--color-secondary));
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background-color: rgba(30, 25, 24, 0.95);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    z-index: 50;
    transform-origin: top right;
    animation: dropdownPop 0.2s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes dropdownPop {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dropdown-menu.show {
    display: flex;
}

.user-info-section {
    padding: 1rem;
    background-color: var(--input-bg);
    border-radius: var(--radius-sm);
    margin: 0.25rem;
    margin-bottom: 0.5rem;
}

.user-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-color);
}

.user-email {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.plan-section {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0.25rem;
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .plan-section {
    background-color: rgba(255, 255, 255, 0.03);
}

.plan-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-upgrade {
    background-color: #3b82f6;
    /* Blue */
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-upgrade:hover {
    background-color: #2563eb;
}

.user-info {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: inherit;
    text-decoration: none;
}

.dropdown-item:hover {
    background-color: var(--border-color);
    text-decoration: none;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item.text-danger {
    color: var(--danger-color);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Theme Icons */
.icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: inline;
}

/* Main layout */
main {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 3rem;
    /* Add bottom padding to page */
}

/* ... existing code ... */

.card-body {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 2000px;
    /* Arbitrary large height */
    opacity: 1;
    overflow: hidden;
    margin-top: 0.5rem;
    padding-top: 5px;
    /* Prevent clipping of text ascenders */
}

.card {
    background-color: var(--surface-glass);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Collapsible Cards */
.card.collapsible {
    padding-bottom: 0.5rem;
    /* Reduced padding when collapsed check */
    transition: all 0.3s ease;
}

.card-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.card-header:hover {
    color: var(--primary-color);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
    color: var(--text-secondary);
}

.card-header:hover .toggle-icon {
    color: var(--primary-color);
}

.card.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.card-body {
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-top 0.3s ease;
    max-height: 2000px;
    /* Arbitrary large height */
    opacity: 1;
    overflow: hidden;
    margin-top: 0.5rem;
    padding-top: 5px;
    /* Prevent clipping */
}

.card.collapsed .card-body {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

h2 {
    font-size: 1.35rem;
    margin-bottom: 0;
    /* Remove margin from standard h2 */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.card.collapsed h2 {
    border-bottom-color: transparent;
}

h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.helper-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(236, 115, 87, 0.2);
    /* Primary ring */
    background-color: var(--surface-color);
}

/* Date Picker Specifics */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

.row {
    display: flex;
    gap: 1rem;
}

.col {
    flex: 1;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    /* Keep white for contrast on coral */
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(236, 115, 87, 0.3);
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-hover);
    border-color: var(--text-secondary);
}

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

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: rgba(236, 115, 87, 0.05);
    /* Tint */
}

.btn-action {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    margin-top: 0.5rem;
}

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

.input-group {
    display: flex;
    gap: 0.75rem;
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: gray;
}

.status-dot.active {
    background-color: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

/* Fix H3 spacing inside cards */
.card-body h3 {
    margin-top: 0.5rem;
}

/* Log Header Alignment */
.log-header h3 {
    margin: 0;
}

/* Workflow Grid */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.workflow-item {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.workflow-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.workflow-item p {
    flex-grow: 1;
    color: var(--text-secondary);
    line-height: 1.5;
}

.workflow-item .btn-action {
    margin-top: 1.5rem;
}

.workflow-item h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.15rem;
}

/* Console Output */
.console-output {
    background-color: #000;
    color: #0f0;
    font-family: monospace;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 0.8rem;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-color);
}


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



/* About Modal Redesign */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content.split-layout {
    display: flex;
    flex-direction: row;
    background-color: var(--surface-glass);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    max-width: 800px;
    width: 90%;
    overflow: hidden;
    position: relative;
    padding: 0;
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

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

/* Left Panel */
.modal-left {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.2);
    /* Subtle contrast for left side */
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* Push footer to bottom */
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.modal-left-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    /* Take available space */
}

.about-logo-large {
    width: 120px;
    height: 120px;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    /* Rounded square look like the example */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    /* Hint for easter egg */
    transition: transform 0.1s;
}

.about-logo-large:active {
    transform: scale(0.95);
}

.modal-left h2 {
    font-size: 1.25rem;
    margin-bottom: 0.1rem;
    /* Reduced from 0.25rem */
    padding-bottom: 0;
    border: none;
    color: var(--text-color);
}

.modal-left .version {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Right Panel */
.modal-right {
    flex: 1.2;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.heart-section {
    text-align: center;
    margin-bottom: 2rem;
}

.heart-section p {
    margin: 0;
    font-weight: 500;
}

.heart-section .subtitle {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-color);
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
}

.social-btn:hover {
    background-color: var(--surface-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
}

.social-btn .icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
    /* Icon color */
}

.social-btn:hover .icon {
    color: var(--primary-color);
}

/* Mobile responsive for modal */
@media (max-width: 700px) {
    .modal-content.split-layout {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left,
    .modal-right {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        flex: initial;
        /* Reset flex growth on mobile to avoid huge gaps */
    }
}

/* Branding Area in Header */
.branding {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: opacity 0.2s;
    padding: 0.5rem;
    border-radius: 8px;
}

.branding:hover {
    background-color: var(--border-color);
}

.branding h1 {
    margin: 0;
    font-size: 1.25rem;
    /* Adjust if needed */
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Configuration Table */
.config-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.config-table th,
.config-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.config-table th {
    background-color: var(--input-bg);
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

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

.config-table tr:hover td {
    background-color: var(--surface-hover);
}

/* Critical Text */
.critical-text {
    color: var(--danger-color);
    font-weight: 700;
}

/* Help Page - Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 20px;
}

.step-content h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
}

/* Help Page - Troubleshooting */
.troubleshooting-list {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.troubleshooting-list li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.troubleshooting-list li strong {
    color: var(--text-color);
}

/* ============================= */

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    margin-bottom: -2px;
    /* Pull down to overlap border */
}

[data-theme="dark"] .tab-btn {
    color: #aaa;
}

.tab-btn:hover {
    color: var(--text-color);
    background-color: var(--bg-secondary);
    /* Assuming variable exists */
    border-radius: 4px 4px 0 0;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 600;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dashboard-hidden header,
.dashboard-hidden main,
.dashboard-hidden footer {
    display: none !important;
}

.dashboard-hidden {
    overflow: hidden;
}

.login-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('bg.jpg') no-repeat center center/cover;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}


.login-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


.login-card {
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
}


.login-brand img {
    width: 90px;
    height: 90px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}


.login-brand h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-brand p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    /* Reduced from 2.5rem */
}


.google-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.01);
    /* Glassmorphic background */
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.google-btn img {
    width: 24px;
    height: 24px;
}


.google-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ============================= */
/* Pricing Page Styles */
/* ============================= */

.pricing-container-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    min-height: 80vh;
}

.pricing-header {
    text-align: center;
}

.pricing-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pricing-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Toggle Switch */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pricing-toggle {
    position: relative;
    display: flex;
    background-color: var(--input-bg);
    /* Dark background */
    border-radius: 999px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 320px;
    height: 50px;
}

.toggle-bg {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    /* Half width approx */
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* State: Yearly (Left) - Default in HTML was data-period="year" */
.pricing-toggle[data-state="year"] .toggle-bg {
    transform: translateX(0);
}

/* State: Monthly (Right) */
.pricing-toggle[data-state="month"] .toggle-bg {
    transform: translateX(100%);
    /* Full width shift relative to itself? No, relative to parent container minus padding */
    /* Simpler: just move it by the width of one option which is ~155px */
    transform: translateX(156px);
    /* 320/2 - padding adjustments */
}

.toggle-option {
    flex: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s;
    user-select: none;
}

.pricing-toggle[data-state="year"] .toggle-option[data-period="year"],
.pricing-toggle[data-state="month"] .toggle-option[data-period="month"] {
    color: white;
}

.savings-badge {
    background-color: rgba(236, 72, 153, 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
}

.pricing-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.pricing-card.recommended {
    border: 2px solid var(--primary-color);
    background-color: var(--surface-color);
    transform: scale(1.02);
    z-index: 2;
}

.pricing-card.recommended:hover {
    transform: scale(1.02) translateY(-8px);
}

.recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Card Content */
.card-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--text-primary);
}

.currency {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.period {
    align-self: flex-end;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    flex-grow: 1;
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--success-color);
    /* Green checks */
    width: 20px;
    text-align: center;
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-plan {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.btn-plan.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(236, 115, 87, 0.25);
}

.btn-plan.btn-primary:hover {
    box-shadow: 0 8px 12px rgba(236, 115, 87, 0.4);
    transform: translateY(-2px);
}

/* --- Landing Page Styles --- */
.landing-container {
    display: none;
    /* Hidden by default, shown by JS if not logged in */
    min-height: 100vh;
    width: 100%;
    /* Keep generic bg for landing, overlaying on body */
    background: url('bg.jpg') no-repeat center center/cover fixed;
    flex-direction: column;
    color: white;
    position: fixed;
    /* Ensure it covers body bg */
    z-index: 9000;
    overflow-y: auto;
    overflow-x: hidden;
}

.landing-container.show {
    display: flex;
}

/* Glassmorphic Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.landing-brand img {
    height: 40px;
    width: auto;
}

.landing-nav a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.landing-nav a:hover {
    color: white;
}

/* Hero Section */
.landing-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.4));
}

.hero-content {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    /* Stack on mobile */
}

/* Left Side: Text */
.hero-text {
    flex: 1;
    min-width: 300px;
    animation: fadeInSlideRight 0.8s ease-out;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #FDD692 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Right Side: Glass Card Login */
.hero-card {
    flex: 1;
    max-width: 450px;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    text-align: center;
    animation: fadeInSlideLeft 0.8s ease-out;
}

.hero-card h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 0.5rem;
    border: none;
}

.hero-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Google Button Styling Override for Landing */
.landing-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: #444;
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    gap: 12px;
}

.landing-google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.landing-google-btn img {
    width: 24px;
    height: 24px;
}

/* Features Band */

/* Animations */
@keyframes fadeInSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
    }

    .landing-header {
        padding: 1rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .landing-google-btn {
        width: 100%;
    }
}