/* ============================================================
   INPRACTICE — app.css
   Version: 1.0 | © 2026
   Themes: Executive Navy ⚓ | Premium Dark 🌑
   Stack: Laravel 12 + Vue 3 + Inertia.js + Tailwind CSS
   Fonts: Inter (EN) | Cairo (AR)
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Cairo:wght@400;500;600;700&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES — THEME A: EXECUTIVE NAVY ⚓
   Default theme — applied when data-theme="navy" or no theme set
   ============================================================ */
:root,
[data-theme="navy"] {

    /* Background layers */
    --color-bg:            #F4F6F9;
    --color-surface:       #FFFFFF;
    --color-surface-alt:   #EEF1F6;

    /* Brand Primary — Teal */
    --color-primary:       #1D9E75;
    --color-primary-light: #24B888;
    --color-primary-dark:  #0F6E56;
    --color-primary-soft:  #E1F5EE;

    /* Header — Navy */
    --color-header-bg:     #0F2044;
    --color-header-text:   #FFFFFF;
    --color-header-accent: #1D9E75;
    --color-header-border: #1a3060;

    /* Hub colors */
    --color-hub-finance:   #1D9E75;
    --color-hub-marketing: #378ADD;
    --color-hub-sales:     #D85A30;

    /* Semantic */
    --color-success:       #1D9E75;
    --color-success-soft:  #E1F5EE;
    --color-danger:        #D85A30;
    --color-danger-soft:   #FAECE7;
    --color-warning:       #E8A020;
    --color-warning-soft:  #FEF3DC;
    --color-info:          #378ADD;
    --color-info-soft:     #E6F1FB;

    /* Text */
    --color-text-primary:   #0F2044;
    --color-text-secondary: #4A5568;
    --color-text-muted:     #8A96A8;
    --color-text-inverse:   #FFFFFF;
    --color-text-on-primary:#FFFFFF;

    /* Borders */
    --color-border:         #DDE2EB;
    --color-border-light:   #EEF1F6;
    --color-border-input:   #C8D0DC;
    --color-border-focus:   #1D9E75;

    /* Nav */
    --color-nav-bg:         #0F2044;
    --color-nav-icon:       #4D7AB5;
    --color-nav-icon-active:#1D9E75;
    --color-nav-label:      #4D7AB5;
    --color-nav-label-active:#1D9E75;

    /* Progress / Reading bar */
    --color-bar-bg:         #DDE2EB;
    --color-bar-fill:       #1D9E75;

    /* Badge */
    --color-badge-bg:       #E1F5EE;
    --color-badge-text:     #0F6E56;

    /* Difficulty badges */
    --color-diff-beginner-bg:     #E1F5EE;
    --color-diff-beginner-text:   #0F6E56;
    --color-diff-intermediate-bg: #E6F1FB;
    --color-diff-intermediate-text:#185FA5;
    --color-diff-advanced-bg:     #FAECE7;
    --color-diff-advanced-text:   #993C1D;

    /* Shadows */
    --shadow-card:   0 1px 8px rgba(15, 32, 68, 0.08);
    --shadow-button: 0 4px 14px rgba(29, 158, 117, 0.30);
    --shadow-float:  0 8px 30px rgba(15, 32, 68, 0.12);
    --shadow-header: 0 2px 12px rgba(15, 32, 68, 0.15);
}

/* ============================================================
   3. CSS CUSTOM PROPERTIES — THEME B: PREMIUM DARK 🌑
   Applied when data-theme="dark"
   ============================================================ */
[data-theme="dark"] {

    /* Background layers */
    --color-bg:            #141D2B;
    --color-surface:       #1B2537;
    --color-surface-alt:   #202D40;

    /* Brand Primary — Teal (same — brand anchor) */
    --color-primary:       #1D9E75;
    --color-primary-light: #24B888;
    --color-primary-dark:  #0F6E56;
    --color-primary-soft:  #0A2E22;

    /* Header — Slate (darker than surface) */
    --color-header-bg:     #111827;
    --color-header-text:   #E8EDF4;
    --color-header-accent: #1D9E75;
    --color-header-border: #1F2D42;

    /* Hub colors — same brand colors, stay consistent */
    --color-hub-finance:   #1D9E75;
    --color-hub-marketing: #378ADD;
    --color-hub-sales:     #D85A30;

    /* Semantic */
    --color-success:       #1D9E75;
    --color-success-soft:  #0A2E22;
    --color-danger:        #D85A30;
    --color-danger-soft:   #2E1208;
    --color-warning:       #E8A020;
    --color-warning-soft:  #2C1E05;
    --color-info:          #378ADD;
    --color-info-soft:     #0C1E35;

    /* Text */
    --color-text-primary:   #E8EDF4;
    --color-text-secondary: #8FA0B8;
    --color-text-muted:     #4D6075;
    --color-text-inverse:   #141D2B;
    --color-text-on-primary:#FFFFFF;

    /* Borders */
    --color-border:         #2D3E57;
    --color-border-light:   #243044;
    --color-border-input:   #2D3E57;
    --color-border-focus:   #1D9E75;

    /* Nav */
    --color-nav-bg:         #111827;
    --color-nav-icon:       #4D6075;
    --color-nav-icon-active:#1D9E75;
    --color-nav-label:      #4D6075;
    --color-nav-label-active:#1D9E75;

    /* Progress / Reading bar */
    --color-bar-bg:         #2D3E57;
    --color-bar-fill:       #1D9E75;

    /* Badge */
    --color-badge-bg:       #0A2E22;
    --color-badge-text:     #24B888;

    /* Difficulty badges */
    --color-diff-beginner-bg:     #0A2E22;
    --color-diff-beginner-text:   #24B888;
    --color-diff-intermediate-bg: #0C1E35;
    --color-diff-intermediate-text:#5BA7E8;
    --color-diff-advanced-bg:     #2E1208;
    --color-diff-advanced-text:   #E8855A;

    /* Shadows */
    --shadow-card:   0 1px 8px rgba(0, 0, 0, 0.30);
    --shadow-button: 0 4px 14px rgba(29, 158, 117, 0.25);
    --shadow-float:  0 8px 30px rgba(0, 0, 0, 0.40);
    --shadow-header: 0 2px 12px rgba(0, 0, 0, 0.40);
}

/* ============================================================
   4. SHARED DESIGN TOKENS (both themes)
   ============================================================ */
:root {
    /* Border radius */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   14px;
    --radius-xl:   18px;
    --radius-pill: 999px;

    /* Spacing scale */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  20px;
    --space-6:  24px;
    --space-8:  32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Typography scale */
    --text-xs:   11px;
    --text-sm:   12px;
    --text-base: 14px;
    --text-md:   16px;
    --text-lg:   18px;
    --text-xl:   22px;
    --text-2xl:  28px;
    --text-3xl:  36px;
    --text-4xl:  48px;

    /* Font weights */
    --fw-regular: 400;
    --fw-medium:  500;
    --fw-semibold:600;
    --fw-bold:    700;

    /* Transitions */
    --transition-fast:  0.15s ease;
    --transition-base:  0.25s ease;
    --transition-slow:  0.4s ease;
    --transition-theme: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;

    /* Touch targets (mobile-first) */
    --touch-target: 44px;

    /* Z-index scale */
    --z-base:     1;
    --z-dropdown: 100;
    --z-modal:    200;
    --z-toast:    300;
    --z-top:      400;
}

/* ============================================================
   5. BASE RESET & GLOBAL STYLES
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: var(--fw-regular);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: var(--transition-theme);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Arabic / RTL language support */
[lang="ar"],
[dir="rtl"] {
    font-family: 'Cairo', 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .ip-header__logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .ip-nav__item {
    flex-direction: column;
}

[dir="rtl"] .ip-select {
    background-position: left var(--space-3) center;
    padding-left: var(--space-8);
    padding-right: var(--space-4);
}

img, svg, video {
    display: block;
    max-width: 100%;
}

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

a:hover { opacity: 0.8; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
}

/* ============================================================
   6. TYPOGRAPHY
   ============================================================ */
.ip-h1 {
    font-size: var(--text-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ip-h2 {
    font-size: var(--text-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-primary);
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.ip-h3 {
    font-size: var(--text-xl);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.ip-h4 {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
}

.ip-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
}

.ip-body {
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    color: var(--color-text-primary);
    line-height: 1.7;
}

.ip-body-sm {
    font-size: var(--text-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.ip-muted {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================================================
   7. LAYOUT — APP SHELL
   ============================================================ */
.ip-app {
    min-height: 100vh;
    background-color: var(--color-bg);
    transition: var(--transition-theme);
    display: flex;
    flex-direction: column;
}

.ip-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.ip-container--wide {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.ip-page {
    flex: 1;
    padding: var(--space-4) 0 var(--space-12);
}

/* ============================================================
   8. HEADER / TOP BAR
   ============================================================ */
.ip-header {
    background-color: var(--color-header-bg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-header-border);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: var(--z-dropdown);
    transition: background-color var(--transition-slow);
}

.ip-header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.ip-header__logo-img {
    height: 28px;
    width: auto;
}

.ip-header__logo-text {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--color-header-text);
    letter-spacing: -0.01em;
}

.ip-header__logo-text span {
    color: var(--color-header-accent);
}

.ip-header__actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* ============================================================
   9. CARDS
   ============================================================ */
.ip-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-card);
    transition: var(--transition-theme);
}

.ip-card--primary {
    background: var(--color-primary);
    border-color: var(--color-primary-dark);
    color: var(--color-text-inverse);
}

.ip-card--primary .ip-label,
.ip-card--primary .ip-body,
.ip-card--primary .ip-body-sm,
.ip-card--primary .ip-muted {
    color: rgba(255, 255, 255, 0.80);
}

.ip-card--soft {
    background: var(--color-primary-soft);
    border-color: var(--color-border);
}

.ip-card--surface-alt {
    background: var(--color-surface-alt);
    border-color: var(--color-border-light);
}

.ip-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-1px);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* ============================================================
   10. HERO CARD (Dashboard featured case)
   ============================================================ */
.ip-hero-card {
    background: var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-slow);
}

.ip-hero-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.ip-hero-card__label {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: var(--space-2);
}

.ip-hero-card__title {
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
    color: #FFFFFF;
    line-height: 1.4;
    margin-bottom: var(--space-4);
}

.ip-hero-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ip-hero-card__meta-item {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.70);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================================
   11. HUB CARDS (Finance / Marketing / Sales)
   ============================================================ */
.ip-hubs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ip-hub {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-2);
    text-align: center;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    border-top: 3px solid var(--hub-color);
}

.ip-hub:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

.ip-hub--finance   { --hub-color: var(--color-hub-finance); }
.ip-hub--marketing { --hub-color: var(--color-hub-marketing); }
.ip-hub--sales     { --hub-color: var(--color-hub-sales); }

.ip-hub--active {
    border-color: var(--hub-color);
    background: var(--color-surface-alt);
}

.ip-hub__icon {
    font-size: 20px;
    margin-bottom: var(--space-1);
    display: block;
    color: var(--hub-color);
}

.ip-hub__name {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
}

.ip-hub__count {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ============================================================
   12. PROGRESS / READING BAR
   ============================================================ */
.ip-progress {
    background: var(--color-bar-bg);
    border-radius: var(--radius-pill);
    height: 6px;
    overflow: hidden;
    transition: var(--transition-theme);
}

.ip-progress__fill {
    height: 100%;
    background: var(--color-bar-fill);
    border-radius: var(--radius-pill);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), background var(--transition-slow);
}

/* Thicker variant for profile/stats */
.ip-progress--md {
    height: 8px;
}

/* ============================================================
   13. CASE CARD
   ============================================================ */
.ip-case-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.ip-case-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-primary);
}

.ip-case-card--completed {
    opacity: 0.65;
}

.ip-case-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.ip-case-card__topic {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-primary);
}

.ip-case-card__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    line-height: 1.4;
}

.ip-case-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.ip-case-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-1);
}

/* Left accent line variant */
.ip-case-card--accented {
    border-left: 3px solid var(--color-primary);
    padding-left: calc(var(--space-4) - 2px);
}

[dir="rtl"] .ip-case-card--accented {
    border-left: none;
    border-right: 3px solid var(--color-primary);
    padding-left: var(--space-4);
    padding-right: calc(var(--space-4) - 2px);
}

/* ============================================================
   14. BUTTONS
   ============================================================ */
.ip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: inherit;
    font-weight: var(--fw-semibold);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
    padding: 0 var(--space-5);
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.ip-btn:active {
    transform: scale(0.97);
}

.ip-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary */
.ip-btn--primary {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    box-shadow: var(--shadow-button);
}

.ip-btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-float);
}

/* Outline */
.ip-btn--outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ip-btn--outline:hover {
    background: var(--color-primary-soft);
}

/* Ghost */
.ip-btn--ghost {
    background: transparent;
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.ip-btn--ghost:hover {
    background: var(--color-surface-alt);
    border-color: var(--color-border-input);
}

/* Danger */
.ip-btn--danger {
    background: var(--color-danger);
    color: #FFFFFF;
    border-color: var(--color-danger);
}

.ip-btn--danger:hover {
    opacity: 0.88;
}

/* Pill variant */
.ip-btn--pill {
    border-radius: var(--radius-pill);
}

/* Small */
.ip-btn--sm {
    font-size: var(--text-sm);
    padding: 0 var(--space-3);
    min-height: 34px;
}

/* Full width */
.ip-btn--full {
    width: 100%;
}

/* ============================================================
   15. BADGES & CHIPS
   ============================================================ */
.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    padding: 3px var(--space-3);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.ip-badge--primary {
    background: var(--color-badge-bg);
    color: var(--color-badge-text);
}

.ip-badge--success {
    background: var(--color-success-soft);
    color: var(--color-success);
}

.ip-badge--danger {
    background: var(--color-danger-soft);
    color: var(--color-danger);
}

.ip-badge--warning {
    background: var(--color-warning-soft);
    color: var(--color-warning);
}

.ip-badge--info {
    background: var(--color-info-soft);
    color: var(--color-info);
}

/* Difficulty badges */
.ip-badge--beginner {
    background: var(--color-diff-beginner-bg);
    color: var(--color-diff-beginner-text);
}

.ip-badge--intermediate {
    background: var(--color-diff-intermediate-bg);
    color: var(--color-diff-intermediate-text);
}

.ip-badge--advanced {
    background: var(--color-diff-advanced-bg);
    color: var(--color-diff-advanced-text);
}

/* Hub badges */
.ip-badge--finance   { background: rgba(29, 158, 117, 0.12); color: var(--color-hub-finance); }
.ip-badge--marketing { background: rgba(55, 138, 221, 0.12); color: var(--color-hub-marketing); }
.ip-badge--sales     { background: rgba(216, 90, 48, 0.12);  color: var(--color-hub-sales); }

/* ============================================================
   16. FORM ELEMENTS
   ============================================================ */
.ip-input {
    width: 100%;
    min-height: var(--touch-target);
    background: var(--color-surface);
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-theme);
}

.ip-input:focus {
    border-color: var(--color-border-focus);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.ip-input::placeholder {
    color: var(--color-text-muted);
}

.ip-textarea {
    padding: var(--space-3) var(--space-4);
    min-height: 100px;
    resize: vertical;
}

.ip-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A96A8' 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 var(--space-3) center;
    padding-right: var(--space-8);
    cursor: pointer;
}

.ip-form-group {
    margin-bottom: var(--space-4);
}

.ip-label-text {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.ip-form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-1);
}

/* ============================================================
   17. SECTION HEADER
   ============================================================ */
.ip-section {
    margin-bottom: var(--space-4);
}

.ip-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
}

.ip-section__title {
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.ip-section__link {
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--color-primary);
}

/* ============================================================
   18. BOTTOM NAVIGATION (Mobile)
   ============================================================ */
.ip-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    border-top: 1px solid var(--color-header-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: var(--space-2) 0;
    padding-bottom: max(var(--space-2), env(safe-area-inset-bottom));
    z-index: var(--z-dropdown);
    transition: var(--transition-theme);
}

.ip-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: var(--space-1) var(--space-2);
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.ip-nav__icon {
    font-size: 20px;
    color: var(--color-nav-icon);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.ip-nav__item--active .ip-nav__icon {
    color: var(--color-nav-icon-active);
    transform: scale(1.1);
}

.ip-nav__label {
    font-size: 10px;
    font-weight: var(--fw-medium);
    color: var(--color-nav-label);
    letter-spacing: 0.03em;
}

.ip-nav__item--active .ip-nav__label {
    color: var(--color-nav-label-active);
    font-weight: var(--fw-semibold);
}

/* ============================================================
   19. THEME SWITCHER COMPONENT
   ============================================================ */
.ip-theme-switcher {
    display: flex;
    gap: var(--space-1);
    align-items: center;
    padding: 3px;
    background: rgba(0, 0, 0, 0.20);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.ip-theme-btn {
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ip-theme-btn--active {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

/* ============================================================
   20. LANGUAGE SWITCHER
   ============================================================ */
.ip-lang-switcher {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.ip-lang-btn {
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 30px;
}

.ip-lang-btn--active {
    background: var(--color-primary);
    color: #FFFFFF;
    border-color: var(--color-primary);
}

/* ============================================================
   21. NOTIFICATION BELL + BADGE DOT
   ============================================================ */
.ip-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background var(--transition-fast);
    color: var(--color-header-text);
    font-size: 18px;
}

.ip-bell:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ip-bell__dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--color-danger);
    border-radius: 50%;
    border: 2px solid var(--color-header-bg);
}

/* ============================================================
   22. ALERT BANNERS
   ============================================================ */
.ip-alert {
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    border: 1px solid;
}

.ip-alert--success {
    background: var(--color-success-soft);
    border-color: var(--color-success);
    color: var(--color-success);
}

.ip-alert--danger {
    background: var(--color-danger-soft);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.ip-alert--warning {
    background: var(--color-warning-soft);
    border-color: var(--color-warning);
    color: var(--color-warning);
}

.ip-alert--info {
    background: var(--color-info-soft);
    border-color: var(--color-info);
    color: var(--color-info);
}

.ip-alert__icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ip-alert__body  { flex: 1; }

.ip-alert__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    margin-bottom: 2px;
}

.ip-alert__message {
    font-size: var(--text-sm);
    opacity: 0.85;
}

/* ============================================================
   23. AVATAR
   ============================================================ */
.ip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.ip-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.ip-avatar--lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
}

.ip-avatar--xl {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

/* ============================================================
   24. FORUM POST CARD
   ============================================================ */
.ip-post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: var(--transition-theme);
    cursor: pointer;
}

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

.ip-post-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.ip-post-card__nickname {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
}

.ip-post-card__time {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-left: auto;
}

[dir="rtl"] .ip-post-card__time {
    margin-left: 0;
    margin-right: auto;
}

.ip-post-card__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.ip-post-card__preview {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ip-post-card__footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
}

.ip-post-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: var(--fw-medium);
}

/* ============================================================
   25. DOCUMENT CARD
   ============================================================ */
.ip-doc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    transition: var(--transition-theme);
    cursor: pointer;
}

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

.ip-doc-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.ip-doc-card__info {
    flex: 1;
    min-width: 0;
}

.ip-doc-card__name {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ip-doc-card__meta {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ============================================================
   26. FREELANCE PROFILE CARD
   ============================================================ */
.ip-freelance-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: var(--transition-theme);
    cursor: pointer;
}

.ip-freelance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
    border-color: var(--color-primary);
}

.ip-freelance-card__top {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.ip-freelance-card__name {
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
}

.ip-freelance-card__title {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: 2px;
}

.ip-freelance-card__rate {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    margin-left: auto;
}

[dir="rtl"] .ip-freelance-card__rate {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================================
   27. CV / JOB MATCH CARD (anonymous)
   ============================================================ */
.ip-cv-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: var(--transition-theme);
}

.ip-cv-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.ip-cv-card__anon-label {
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    font-style: italic;
}

.ip-cv-card__exp {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
}

.ip-cv-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

/* ============================================================
   28. STATS ROW (Dashboard)
   ============================================================ */
.ip-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ip-stat {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
    transition: var(--transition-theme);
}

.ip-stat__number {
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: 1.2;
}

.ip-stat__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: 2px;
    font-weight: var(--fw-medium);
}

/* ============================================================
   29. EMPTY STATE
   ============================================================ */
.ip-empty {
    text-align: center;
    padding: var(--space-10) var(--space-6);
    color: var(--color-text-muted);
}

.ip-empty__icon {
    font-size: 40px;
    margin-bottom: var(--space-4);
    display: block;
    opacity: 0.5;
    color: var(--color-text-muted);
}

.ip-empty__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.ip-empty__sub {
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

/* ============================================================
   30. DIVIDER
   ============================================================ */
.ip-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-4) 0;
    border: none;
}

/* ============================================================
   31. LOADING SKELETON
   ============================================================ */
@keyframes ip-skeleton-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.ip-skeleton {
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    animation: ip-skeleton-pulse 1.6s ease-in-out infinite;
}

.ip-skeleton--text {
    height: 14px;
    width: 100%;
    margin-bottom: var(--space-2);
}

.ip-skeleton--text-sm {
    height: 12px;
    width: 60%;
}

.ip-skeleton--card {
    height: 100px;
    width: 100%;
    border-radius: var(--radius-lg);
}

.ip-skeleton--avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ============================================================
   32. TOAST NOTIFICATIONS
   ============================================================ */
.ip-toast-container {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    pointer-events: none;
    width: min(90vw, 360px);
}

.ip-toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    pointer-events: all;
    animation: ip-toast-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes ip-toast-in {
    from { opacity: 0; transform: translateY(-10px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ip-toast--success { border-color: var(--color-success); }
.ip-toast--danger  { border-color: var(--color-danger); }
.ip-toast--info    { border-color: var(--color-info); }

.ip-toast__icon  { font-size: 18px; flex-shrink: 0; }
.ip-toast__body  { flex: 1; }
.ip-toast__title { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--color-text-primary); }
.ip-toast__msg   { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }

/* ============================================================
   33. CONSENT GATE (privacy — CV & freelance contact reveal)
   ============================================================ */
.ip-consent-gate {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
}

.ip-consent-gate__icon {
    font-size: 32px;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    opacity: 0.6;
}

.ip-consent-gate__title {
    font-size: var(--text-md);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.ip-consent-gate__body {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

/* ============================================================
   34. MODAL / BOTTOM SHEET
   ============================================================ */
.ip-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: var(--z-modal);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ip-sheet {
    background: var(--color-surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: var(--space-5) var(--space-5);
    padding-bottom: max(var(--space-5), env(safe-area-inset-bottom));
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.ip-sheet__handle {
    width: 36px;
    height: 4px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
    margin: 0 auto var(--space-4);
}

.ip-sheet__title {
    font-size: var(--text-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
}

/* ============================================================
   35. ONBOARDING THEME PICKER (first launch)
   ============================================================ */
.ip-theme-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.ip-theme-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.ip-theme-option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

.ip-theme-option--selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.ip-theme-option__preview {
    height: 120px;
    display: flex;
    flex-direction: column;
}

.ip-theme-option__preview--navy {
    background: #0F2044;
}

.ip-theme-option__preview--dark {
    background: #141D2B;
}

.ip-theme-option__bar {
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
}

.ip-theme-option__bar--navy { background: #0F2044; border-bottom: 1px solid #1a3060; }
.ip-theme-option__bar--dark { background: #111827; border-bottom: 1px solid #1F2D42; }

.ip-theme-option__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #1D9E75;
}

.ip-theme-option__body {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ip-theme-option__line {
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.15);
}

.ip-theme-option__line--short { width: 55%; }
.ip-theme-option__line--accent { background: #1D9E75; width: 35%; }

.ip-theme-option__label {
    padding: var(--space-2) var(--space-3);
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    background: var(--color-surface);
}

/* ============================================================
   36. SURVEY CARD
   ============================================================ */
.ip-survey-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: var(--transition-theme);
    cursor: pointer;
}

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

.ip-survey-card__title {
    font-size: var(--text-base);
    font-weight: var(--fw-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.ip-survey-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ============================================================
   37. UTILITY CLASSES
   ============================================================ */

/* Spacing */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }

/* Display */
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2          { gap: var(--space-2); }
.gap-3          { gap: var(--space-3); }
.gap-4          { gap: var(--space-4); }
.grid           { display: grid; }
.grid-2         { grid-template-columns: repeat(2, 1fr); }
.grid-3         { grid-template-columns: repeat(3, 1fr); }
.flex-1         { flex: 1; }
.flex-shrink-0  { flex-shrink: 0; }

/* Text */
.text-center    { text-align: center; }
.text-right     { text-align: right; }
.text-primary   { color: var(--color-primary); }
.text-muted     { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.fw-semibold    { font-weight: var(--fw-semibold); }
.fw-bold        { font-weight: var(--fw-bold); }

/* Overflow */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Misc */
.w-full       { width: 100%; }
.rounded-pill { border-radius: var(--radius-pill); }
.hidden       { display: none; }
.sr-only      { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.opacity-60   { opacity: 0.6; }

/* ============================================================
   38. ANIMATIONS
   ============================================================ */
@keyframes ip-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ip-fade-in {
    animation: ip-fade-in 0.3s ease;
}

@keyframes ip-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}

.ip-pulse {
    animation: ip-pulse 0.4s ease;
}

/* ============================================================
   39. RESPONSIVE — TABLET & DESKTOP
   ============================================================ */
@media (min-width: 640px) {
    .ip-container {
        padding: 0 var(--space-6);
    }

    .ip-h1 { font-size: 52px; }
    .ip-h2 { font-size: 40px; }

    .ip-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .ip-nav {
        display: none; /* Hidden on tablet+ — replaced by sidebar */
    }

    .ip-hubs {
        gap: var(--space-4);
    }
}

@media (min-width: 1024px) {
    .ip-container--wide {
        padding: 0 var(--space-8);
    }
}

/* ============================================================
   40. SAFE AREA — iPhone notch & home bar
   ============================================================ */
.ip-app {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* ============================================================
   41. AUTH FORM — shared Login / Forgot / Reset / Verify
   ============================================================ */
.ip-login__status {
    background: var(--color-success-soft);
    color: var(--color-success);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-4);
    text-align: center;
}
.ip-login__status--warn {
    background: var(--color-warning-soft, #FEF3DC);
    color: var(--color-warning, #E8A020);
}
.ip-login__form { display: flex; flex-direction: column; gap: var(--space-1); }
.ip-login__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}
.ip-login__input-wrap { position: relative; display: flex; align-items: center; }
.ip-login__input-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--color-text-muted);
    pointer-events: none;
}
[dir="rtl"] .ip-login__input-icon { left: auto; right: var(--space-3); }
.ip-login__input {
    width: 100%;
    min-height: var(--touch-target);
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border-input);
    border-radius: var(--radius-md);
    padding: 0 var(--space-4) 0 calc(var(--space-3) + 16px + var(--space-3));
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--color-text-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
[dir="rtl"] .ip-login__input {
    padding: 0 calc(var(--space-3) + 16px + var(--space-3)) 0 var(--space-4);
}
.ip-login__input--code {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    font-family: 'Courier New', Courier, monospace;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}
.ip-login__input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.ip-login__input--error { border-color: var(--color-danger); }
.ip-login__error { font-size: var(--text-xs); color: var(--color-danger); margin-top: var(--space-1); }
.ip-login__submit { font-size: var(--text-md); letter-spacing: 0.02em; gap: var(--space-2); margin-top: var(--space-2); }
.ip-login__spinner { animation: ip-spin 0.8s linear infinite; }
@keyframes ip-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.ip-login__row-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: var(--space-4);
}
.ip-login__link-btn {
    background: none;
    border: none;
    font-size: var(--text-sm);
    color: var(--color-primary);
    font-weight: var(--fw-medium);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.ip-login__link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   END OF INPRACTICE — app.css
   ============================================================ */