@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-surface: rgba(20, 20, 25, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --accent: #ffd700; /* Gold */
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --success: #22c55e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Glowing backdrops */
body::before, body::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

body::before {
    background: var(--primary);
    top: 10%;
    left: 20%;
}

body::after {
    background: #a855f7; /* Purple */
    bottom: 10%;
    right: 20%;
}

/* Main Container Layout */
.app-container {
    display: flex;
    width: 100%;
    height: 100vh;
    backdrop-filter: blur(20px);
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #a855f7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    border-left: 3px solid var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.user-status {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-plan-label {
    font-size: 14px;
    font-weight: 600;
}

.user-plan-badge {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-plan-badge.pro {
    background: rgba(255, 215, 0, 0.15);
    color: var(--accent);
}

/* Content Area */
.content-area {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 40px;
}

.view-section {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.view-section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Header Text styling */
.header-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 30px;
}

/* Cards & Panels */
.card-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

/* Capacity/Limit Bar Card */
.limit-card {
    background: rgba(99, 102, 241, 0.08);
    border: 1px dashed rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

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

.limit-card-title {
    font-size: 15px;
    font-weight: 700;
}

.limit-card-stats {
    font-size: 13px;
    color: var(--text-secondary);
}

.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.warning {
    background: var(--danger);
}

/* Vault Grid */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.vault-item-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.vault-item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.vault-item-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.vault-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.vault-item-name {
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Passwords Layout */
.passwords-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.search-field {
    width: 100%;
    max-width: 320px;
    position: relative;
}

.search-field input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: white;
    outline: none;
}

.search-field input:focus {
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

/* Folder Swiper Row */
.folder-swiper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.folder-swiper::-webkit-scrollbar {
    height: 4px;
}

.folder-swiper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.folder-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.folder-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.folder-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.folder-controls-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.folder-action-buttons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

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

.icon-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Password List */
.password-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-list-item {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.password-list-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.password-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.password-details-row {
    flex: 1;
}

.password-account {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.password-user {
    font-size: 13px;
    color: var(--text-secondary);
}

.password-folder-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* App Lock Section */
.app-lock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-lock-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
}

.app-lock-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-lock-icon-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.app-lock-name {
    font-weight: 600;
}

.app-lock-package {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

/* Pricing Page Premium */
.paywall-header {
    background: linear-gradient(to bottom, rgba(99, 102, 241, 0.2), transparent);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    margin-bottom: 30px;
}

.premium-crown-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15);
}

.paywall-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.paywall-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.paywall-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.paywall-feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.paywall-feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-plans-section {
    margin-top: 40px;
}

.pricing-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.pricing-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-4px);
}

.pricing-card.best-value {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.pricing-card.selected {
    border-color: var(--primary) !important;
    background: rgba(99, 102, 241, 0.12) !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

.best-value-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.pricing-plan-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-plan-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-plan-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
}

.pricing-plan-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Modals & Dialogs */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
}

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

/* Ensure prompt modals (nested alerts, PIN verification, checkout overlays) stack above normal page modals */
#pin-modal, #account-picker-modal, #limit-alert-modal, #rename-folder-modal, #delete-folder-modal, #paypal-modal {
    z-index: 200;
}

.modal-box {
    background: #121217;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.2s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: white;
    outline: none;
    font-size: 15px;
}

.form-group input:focus {
    border-color: var(--primary);
}

.quick-folders-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0;
}

.quick-folder-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Custom Settings styling */
.settings-section-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 24px;
    overflow: hidden;
}

.settings-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    padding: 16px 24px 8px;
    text-transform: uppercase;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row-info {
    flex: 1;
}

.settings-row-title {
    font-weight: 500;
    font-size: 16px;
}

.settings-row-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-pro-badge {
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

/* Simulated Google Sync styling */
.simulated-gdrive-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
}

.simulated-gdrive-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

/* App Header & Menu Nav Bar */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.header-user-email {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.header-nav .nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 8px;
}

.header-nav .nav-item:hover, .header-nav .nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.header-nav .nav-item.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* Main Footer */
.main-footer {
    width: 100%;
    margin-top: 60px;
    padding: 24px 40px;
    border-top: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Home Landing Page Styling */
#home-view {
    max-width: none;
    width: 100%;
}

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4%;
    border-bottom: 1px solid var(--border-color);
    background: rgba(9, 9, 11, 0.4);
    backdrop-filter: blur(20px);
}

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

.landing-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
}

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

.landing-nav {
    display: flex;
    align-items: center;
}

.hero-section {
    text-align: center;
    padding: 80px 40px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, var(--primary), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-large {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
    text-align: left;
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .landing-header {
        padding: 16px !important;
    }
    .landing-nav-links {
        display: none;
    }
    .landing-nav {
        gap: 8px !important;
    }
    .landing-nav button span {
        display: none;
    }
    .landing-nav button {
        padding: 8px 12px !important;
    }
    .hero-title {
        font-size: 36px;
        line-height: 1.25;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Hide desktop sidebar on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Make content area full width with less padding */
    .content-area {
        padding: 16px !important;
        width: 100% !important;
    }
    
    /* Adjust app-header to flow nicely */
    .app-header {
        margin-bottom: 20px;
        padding: 10px 0;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }
    
    /* Horizontal scrolling for navigation header tabs */
    .header-nav {
        gap: 8px;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .header-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    /* Adjust page titles and headers */
    .header-title {
        font-size: 24px !important;
    }
    
    .header-subtitle {
        font-size: 14px !important;
        margin-bottom: 20px;
    }
    
    /* Grid layouts single column on mobile */
    .features-grid,
    #how-it-works > div,
    .paywall-grid,
    .pricing-plans-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Modal sizes */
    .modal-box {
        width: 95% !important;
        padding: 20px !important;
        margin: 20px auto !important;
    }
    
    /* Settings lists */
    .settings-section-card {
        padding: 16px !important;
    }
    
    .settings-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .settings-row .switch {
        margin-left: 0;
        margin-top: 4px;
    }

    /* Actions headers stack */
    .passwords-header-actions,
    .vault-header-actions {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px;
    }
    
    .passwords-header-actions button,
    .vault-header-actions button {
        width: 100%;
        justify-content: center;
    }

    /* Prevent horizontal scrolling completely */
    .app-container,
    .content-area,
    #home-view {
        overflow-x: hidden !important;
    }

    /* Reset large desktop paddings on mobile landing sections */
    .features-grid,
    .how-it-works-section,
    .faq-section,
    .hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Mobile Typography & Spacing Readable scale */
    .hero-title {
        font-size: 34px !important;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 16px !important;
        line-height: 1.6 !important;
        padding: 0;
    }

    /* Increase copy/body text sizes for ease of reading on mobile */
    p, span, a, label, li {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .feature-card p,
    .step-card p,
    .faq-item p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    /* Footer formatting on Mobile */
    .main-footer {
        padding: 24px 16px !important;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .footer-links {
        justify-content: center;
        gap: 12px;
    }
}

/* Extra small viewport optimizations (e.g. mobile phones < 480px) */
@media (max-width: 480px) {
    .landing-header {
        padding: 12px 16px !important;
    }
    .landing-header .logo-text {
        font-size: 18px;
    }
    .landing-header .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }
    .landing-header .logo-section {
        gap: 8px !important;
    }
    .landing-nav {
        gap: 6px !important;
    }
    .landing-nav button {
        padding: 8px 10px !important;
        font-size: 12px !important;
    }
}
