/* ============================================================
   Platform CSS -- Sysmetica Dashboard
   Shell layout, shared UI components, and responsive base.
   ============================================================ */

/* ── Design Tokens (dark -- default) ── */

:root {
    /* Layout */
    --bg: #000;
    --surface: #1d1d1f;
    --surface-2: #28282a;
    --surface-hover: #333;

    /* Borders */
    --border: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);

    /* Text */
    --text: #fff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-faint: rgba(255, 255, 255, 0.3);

    /* Accent (Sysmetica purple) */
    --accent: #8970ef;
    --accent-deep: #584997;
    --accent-hover: #7a62e0;
    --accent-text: #c4b5fd;
    --accent-gradient: linear-gradient(135deg, #8970ef 0%, #584997 100%);
    --accent-gradient-hover: linear-gradient(135deg, #9a84f5 0%, #6a5aad 100%);
    --accent-subtle: rgba(137, 112, 239, 0.06);
    --accent-light: rgba(137, 112, 239, 0.08);
    --accent-bg: rgba(137, 112, 239, 0.12);
    --accent-focus: rgba(137, 112, 239, 0.15);
    --accent-border: rgba(137, 112, 239, 0.4);
    --accent-border-strong: rgba(137, 112, 239, 0.55);
    --accent-shadow: 0 4px 16px rgba(137, 112, 239, 0.3);
    --accent-shadow-hover: 0 6px 20px rgba(137, 112, 239, 0.4);

    /* Gold */
    --gold: #F3EBA0;
    --gold-bg: rgba(243, 235, 160, 0.08);
    --gold-border: rgba(243, 235, 160, 0.2);
    --gold-glow: 0 0 6px rgba(243, 235, 160, 0.5);

    /* Error */
    --error: #f87171;
    --error-bg: rgba(248, 113, 113, 0.1);
    --error-bg-hover: rgba(248, 113, 113, 0.2);
    --error-border: rgba(248, 113, 113, 0.2);
    --error-border-hover: rgba(248, 113, 113, 0.35);
    --error-border-strong: rgba(248, 113, 113, 0.4);

    /* Success */
    --success: #4ade80;
    --success-text: #86efac;
    --success-bg: rgba(74, 222, 128, 0.1);
    --success-border: rgba(74, 222, 128, 0.2);

    /* Priority statuses */
    --status-todo-border: #584997;
    --status-todo-text: #c4b5fd;
    --status-in-progress: #4ade80;
    --status-blocked: #f87171;
    --status-waiting: #c4b5fd;
    --status-done-border: #4ade80;
    --status-done-text: #86efac;

    /* Interactive backgrounds */
    --hover-bg: rgba(255, 255, 255, 0.03);
    --hover-bg-strong: rgba(255, 255, 255, 0.06);

    /* Background shapes */
    --shape-purple: linear-gradient(287deg, #8970ef -0.38%, rgba(137, 112, 239, 0) 121.08%);
    --shape-gold: linear-gradient(287deg, #f3eba0 -0.38%, rgba(243, 235, 160, 0) 121.08%);
    --shape-1-opacity: 0.08;
    --shape-2-opacity: 0.1;
    --shape-3-opacity: 0.06;

    /* Shadows & overlay */
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 12px 40px rgba(0, 0, 0, 0.5);
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --overlay-blur: blur(4px);

    /* Misc */
    --avatar-border: #2d2d2f;
    --avatar-ring: rgba(255, 255, 255, 0.15);
    --date-icon-filter: invert(1);
}

/* ── Design Tokens (light) ── */

[data-theme="light"] {
    --bg: #f8f7fc;
    --surface: #ffffff;
    --surface-2: #f0eff5;
    --surface-hover: #e8e7ed;

    --border: #e6e4ee;
    --border-subtle: #eceaf2;
    --border-hover: #d0ceda;

    --text: #1a1a2e;
    --text-secondary: #5a5870;
    --text-muted: #8280a0;
    --text-faint: #b0aec0;

    --accent: #7c63e0;
    --accent-deep: #584997;
    --accent-hover: #6b52d4;
    --accent-text: #6d55d0;
    --accent-gradient: linear-gradient(135deg, #7c63e0 0%, #584997 100%);
    --accent-gradient-hover: linear-gradient(135deg, #9a84f5 0%, #7a62e0 100%);
    --accent-subtle: rgba(137, 112, 239, 0.04);
    --accent-light: rgba(137, 112, 239, 0.06);
    --accent-bg: rgba(137, 112, 239, 0.1);
    --accent-focus: rgba(137, 112, 239, 0.2);
    --accent-border: rgba(137, 112, 239, 0.3);
    --accent-border-strong: rgba(137, 112, 239, 0.45);
    --accent-shadow: 0 4px 16px rgba(137, 112, 239, 0.15);
    --accent-shadow-hover: 0 6px 20px rgba(137, 112, 239, 0.2);

    --gold: #a89530;
    --gold-bg: rgba(168, 149, 48, 0.08);
    --gold-border: rgba(168, 149, 48, 0.2);
    --gold-glow: 0 0 6px rgba(168, 149, 48, 0.3);

    --error: #dc2626;
    --error-bg: rgba(220, 38, 38, 0.06);
    --error-bg-hover: rgba(220, 38, 38, 0.1);
    --error-border: rgba(220, 38, 38, 0.15);
    --error-border-hover: rgba(220, 38, 38, 0.25);
    --error-border-strong: rgba(220, 38, 38, 0.3);

    --success: #16a34a;
    --success-text: #15803d;
    --success-bg: rgba(22, 163, 74, 0.06);
    --success-border: rgba(22, 163, 74, 0.15);

    --status-todo-border: #a896e0;
    --status-todo-text: #6d55d0;
    --status-in-progress: #16a34a;
    --status-blocked: #dc2626;
    --status-waiting: #7c5fd6;
    --status-done-border: #16a34a;
    --status-done-text: #15803d;

    --hover-bg: rgba(0, 0, 0, 0.02);
    --hover-bg-strong: rgba(0, 0, 0, 0.04);

    --shape-purple: linear-gradient(287deg, #8970ef -0.38%, rgba(137, 112, 239, 0) 121.08%);
    --shape-gold: linear-gradient(287deg, #d4c670 -0.38%, rgba(212, 198, 112, 0) 121.08%);
    --shape-1-opacity: 0.06;
    --shape-2-opacity: 0.08;
    --shape-3-opacity: 0.05;

    --shadow: 0 1px 2px rgba(26, 26, 46, 0.04), 0 2px 8px rgba(26, 26, 46, 0.06);
    --shadow-heavy: 0 8px 32px rgba(26, 26, 46, 0.08);
    --overlay-bg: rgba(26, 26, 46, 0.3);
    --overlay-blur: blur(4px);

    --avatar-border: #e6e4ee;
    --avatar-ring: rgba(0, 0, 0, 0.1);
    --date-icon-filter: none;
}

/* ── Base reset ── */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

/* --- Background shapes --- */

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: var(--shape-purple);
    border-radius: 60px;
    transform: rotate(-45deg);
    will-change: transform;
}

.shape-1 {
    width: 800px;
    height: 800px;
    top: -500px;
    left: -300px;
    opacity: var(--shape-1-opacity);
}

.shape-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -150px;
    opacity: var(--shape-2-opacity);
}

.shape-3 {
    width: 350px;
    height: 350px;
    top: 40%;
    right: -100px;
    opacity: var(--shape-3-opacity);
    background: var(--shape-gold);
}

/* --- Header / Navigation --- */

.header {
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 150px;
    height: auto;
}

.nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 28px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
    padding: 4px 0;
}

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

.nav-link.active {
    color: var(--text);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* --- Mobile menu icon (hamburger) --- */

.menu-icon {
    display: none;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 11;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 16px;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: top 0.2s ease, transform 0.2s ease;
}

.menu-icon::before { top: 5px; }
.menu-icon::after  { top: 13px; }

/* --- Mobile menu open state --- */

.header.menu-open {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.header.menu-open .logo-link {
    z-index: 11;
    position: relative;
}

.header.menu-open .nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: var(--bg);
    padding: 60px 1rem 2rem;
    margin: 0;
    text-align: center;
    overflow: auto;
}

.header.menu-open .nav-link {
    font-size: 1.1rem;
    color: var(--text-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.header.menu-open .nav-link:first-child {
    border-top: 1px solid var(--border);
}

.header.menu-open .nav-link.active {
    color: var(--text);
}

.header.menu-open .nav-link.active::after {
    display: none;
}

.header.menu-open .menu-icon::before {
    top: 9px;
    transform: rotate(45deg);
}

.header.menu-open .menu-icon::after {
    top: 9px;
    transform: rotate(-45deg);
}

/* --- User menu --- */

.user-menu {
    position: relative;
    flex-shrink: 0;
}

.user-trigger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    border-radius: 50%;
    transition: opacity 0.2s ease;
}

.user-trigger:hover { opacity: 0.8; }

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--avatar-ring);
}

.user-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 100;
    box-shadow: var(--shadow-heavy);
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1rem;
}

.user-dropdown-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-dropdown-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.user-dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover {
    background: var(--hover-bg-strong);
    color: var(--text);
}

/* --- Scroll area & container --- */

.scroll-area {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 1.5rem 2rem 2rem;
    position: relative;
}

/* --- Home view --- */

.home-greeting {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    perspective: 1000px;
}

.home-tile {
    background: var(--surface);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    transition: background-color 0.3s ease, transform 0.15s ease-out, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
    min-height: 180px;
}

.home-tile:hover {
    background: var(--surface-2);
    box-shadow: var(--shadow);
}

.home-tile-icon {
    color: var(--accent);
    line-height: 0;
}

.home-tile-icon svg {
    width: 40px;
    height: 40px;
}

.home-tile-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.home-tile-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: auto;
}

/* --- Animation --- */

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

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

/* --- Shared UI states --- */

.hidden {
    display: none !important;
}

.loading {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
    padding: 3rem 0;
}

.error {
    text-align: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--error);
    padding: 3rem 0;
}

/* --- Shared UI components --- */

.form-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 900px;
    position: relative;
    animation: fadeIn 0.5s ease-out;
}

.form-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.form-step {
    animation: fadeIn 0.3s ease-out;
}

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

.form-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

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

.form-row > * {
    min-width: 0;
}

.form-input {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:hover {
    border-color: var(--border-hover);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-focus);
}

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

.form-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: var(--date-icon-filter);
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn-primary {
    flex: 2;
}

.checkbox-input {
    width: auto;
    margin-right: 0.5rem;
    accent-color: var(--accent);
}

.select-dropdown {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238970ef' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.select-dropdown:hover {
    border-color: var(--border-hover);
}

.select-dropdown:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-focus);
}

.select-dropdown option {
    background: var(--surface-2);
    color: var(--text);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: var(--border-hover);
    background: var(--hover-bg);
}

.radio-option input[type="radio"] {
    margin-top: 0.2rem;
    margin-right: 0.875rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.radio-option input[type="radio"]:checked ~ .radio-label {
    color: var(--accent-text);
}

.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--accent-deep);
    background: var(--accent-light);
}

.radio-option:has(input[type="radio"]:disabled) {
    pointer-events: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.radio-label strong {
    font-size: 0.95rem;
    font-weight: 600;
}

.radio-label small {
    font-size: 0.8rem;
    color: var(--text-faint);
    font-weight: 400;
}

/* --- Buttons --- */

.btn-primary {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--accent-shadow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    transition: left 0.5s ease;
}

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

.btn-primary:hover::after {
    left: 100%;
}

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

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

.btn-primary:disabled::after {
    display: none;
}

.btn-secondary {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem;
    background: var(--surface-2);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* --- Language switcher (in user dropdown) --- */

.user-dropdown-lang {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
}

.user-lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.user-lang-btn:hover {
    color: var(--text);
    background: var(--hover-bg-strong);
}

.user-lang-btn.active {
    color: var(--gold);
    font-weight: 600;
}

.user-lang-sep {
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* --- Theme toggle (in user dropdown) --- */

.user-dropdown-theme {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.4rem 1rem;
}

.user-theme-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.user-theme-btn:hover {
    color: var(--text);
    background: var(--hover-bg-strong);
}

.user-theme-btn.active {
    color: var(--gold);
    font-weight: 600;
}

.user-theme-sep {
    color: var(--text-faint);
    font-size: 0.75rem;
}

/* --- Responsive: tablet --- */

@media (max-width: 768px) {
    .header-inner {
        padding: 0 1.5rem;
    }

    .logo {
        width: 130px;
    }

    .nav {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link.active::after {
        bottom: -14px;
    }

    .container {
        padding: 1.5rem;
    }

    .form-card {
        padding: 1.5rem;
        border-radius: 14px;
    }

    .form-title {
        font-size: 1.3rem;
    }

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

/* --- Responsive: mobile nav collapse --- */

@media (max-width: 600px) {
    .header {
        z-index: 100;
    }

    .nav {
        display: none;
    }

    .menu-icon {
        display: block;
    }
}

/* --- Responsive: mobile --- */

@media (max-width: 480px) {
    .header-inner {
        padding: 0 1rem;
        height: 52px;
    }

    .container {
        padding: 1rem;
    }

    .logo {
        width: 110px;
    }

    .nav {
        gap: 16px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .nav-link.active::after {
        bottom: -15px;
    }

    .form-input,
    .select-dropdown {
        font-size: 16px;
    }

    .form-card {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .form-title {
        font-size: 1.15rem;
        margin-bottom: 1.5rem;
    }

    .radio-option {
        padding: 0.875rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn-primary {
        flex: none;
    }

    .home-greeting {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .home-grid {
        grid-template-columns: 1fr;
    }

    .home-tile {
        min-height: auto;
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
}

@media (hover: none) {
    .home-grid {
        perspective: none;
    }

    .home-tile {
        transform-style: flat;
        will-change: auto;
    }
}
