/* Import Modern Geometric Fonts (Plus Jakarta Sans & Outfit) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --app-bg: #f4f5fa;
    --surface: #ffffff;
    --border-color: #e5e7eb;
    --border-soft: #edf1f7;
    --text-dark: #18181b;
    --text-muted: #71717a;
    --text-light: #a1a1aa;
    --text-soft: #94a3b8;
    
    --sidebar-bg: #111528;
    --sidebar-text: #a1a1aa;
    --sidebar-hover: #1e2338;
    --sidebar-active-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    
    --card-purple-grad: linear-gradient(135deg, #6d5dfc 0%, #4f46e5 100%);
    --card-blue-grad: linear-gradient(135deg, #1b9cfc 0%, #0284c7 100%);
    --card-green-grad: linear-gradient(135deg, #20bf6b 0%, #059669 100%);
    --card-orange-grad: linear-gradient(135deg, #fa8231 0%, #ea580c 100%);
    
    --sidebar-width: 240px;
    --topbar-height: 64px;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.06), transparent 22%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.06), transparent 20%),
        linear-gradient(180deg, #f6f7fb 0%, #eff3f9 100%);
    color: var(--text-dark);
    margin: 0;
    font-size: 0.9rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: #6366f1;
    text-decoration: none;
}

a:hover {
    color: #4f46e5;
}

/* App Shell Layout */
.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Sidebar Navigation (Matching myhr.com.mm Dark Navy Style) */
.sidebar-osten {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    padding: 20px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
}

.brand-avatar-bot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #252b42;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.1rem;
    border: 1px solid #3b4261;
}

.sidebar-toggle-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #1e2338;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
}

.sidebar-menu {
    padding: 10px 16px 24px;
    flex: 1;
}

.sidebar-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #64748b;
    margin: 18px 12px 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: var(--sidebar-text);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius);
    margin-bottom: 7px;
    transition: all 0.15s ease;
}

.sidebar-link i.link-icon {
    width: 22px;
    font-size: 0.98rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.sidebar-link:hover {
    background-color: var(--sidebar-hover);
    color: #ffffff;
}

.sidebar-link:hover i.link-icon {
    color: #a78bfa;
}

/* Active Gradient Pill (Purple/Indigo) */
.sidebar-link.active {
    background: var(--sidebar-active-grad);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}

.sidebar-link.active i.link-icon {
    color: #ffffff;
}

.sidebar-footer-info {
    padding: 16px 20px;
    border-top: 1px solid #1e2338;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-footer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-footer-user {
    max-width: 140px;
    font-size: 0.82rem;
}

.sidebar-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    border: 1px solid transparent;
}

.sidebar-plan-badge i {
    font-size: 0.72rem;
}

.sidebar-plan-free {
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.22);
}

.sidebar-plan-pro {
    background: rgba(168, 85, 247, 0.16);
    color: #d8b4fe;
    border-color: rgba(216, 180, 254, 0.28);
}

.sidebar-logout-link {
    flex: 0 0 auto;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1035;
    opacity: 0;
    transition: opacity 0.2s ease;
}

body.sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
}

/* Topbar Header (Pure White Sticky Top Bar) */
.topbar-osten {
    background: rgba(255, 255, 255, 0.92);
    height: var(--topbar-height);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    transition: left 0.25s ease;
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.mobile-menu-btn {
    display: none;
    background: #f4f5fa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 6px 10px;
    cursor: pointer;
}

.user-avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0284c7;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-lang-switcher {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
}

.btn-lang-switcher .active-lang {
    background: #7c3aed;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Main Content Area */
.main-content-osten {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease, width 0.25s ease;
}

.main-content-osten > .container-fluid {
    padding: 28px 32px !important;
    width: 100%;
    max-width: 100%;
    flex: 1;
}

.page-shell {
    display: grid;
    gap: 22px;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f5fd 100%);
    border: 1px solid rgba(111, 66, 193, 0.12);
    box-shadow: 0 10px 30px rgba(111, 66, 193, 0.05);
}

.page-hero-main {
    min-width: 0;
    flex: 1;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(111, 66, 193, 0.08);
    border: 1px solid rgba(111, 66, 193, 0.18);
    color: #6f42c1;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
}

.page-copy {
    margin: 0;
    max-width: 72ch;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.55;
}

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.page-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-soft-neutral {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

.btn-soft-neutral:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-1px);
}

.surface-section {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
}

.surface-section-muted {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.surface-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.surface-title {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    font-weight: 800;
}

.surface-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}

.table-toolbar-note {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
}

.toolbar-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-search {
    position: relative;
    width: min(100%, 320px);
}

.toolbar-search i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.82rem;
}

.toolbar-search .form-control,
.toolbar-search .form-select {
    min-height: 42px;
    padding-left: 38px;
}

/* myhr.com.mm 4 Gradient Metric Cards (Row 1) */
.card-metric-grad {
    border: none;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.card-metric-grad.card-purple { background: var(--card-purple-grad); }
.card-metric-grad.card-blue { background: var(--card-blue-grad); }
.card-metric-grad.card-green { background: var(--card-green-grad); }
.card-metric-grad.card-orange { background: var(--card-orange-grad); }

.card-metric-grad .metric-label {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.95;
    margin-bottom: 12px;
}

.card-metric-grad .metric-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 6px;
}

.card-metric-grad .metric-subtext {
    font-size: 0.78rem;
    opacity: 0.88;
}

.card-metric-grad .glass-icon-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* myhr.com.mm White Metric Cards with Action Pill (Row 2) */
.card-metric-action {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card-metric-action .action-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.card-metric-action .action-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.card-metric-action .action-pill-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #18181b;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.card-metric-action .action-pill-btn:hover {
    background: #f4f5fa;
    border-color: #d1d5db;
}

.card-metric-action .action-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.card-metric-action .action-subtext {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* White Card Containers & Tables (Staff Directory & Orders) */
.card-white-container {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.table-myhr {
    width: 100%;
    margin-bottom: 0;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #fbfcff;
    --bs-table-hover-bg: #f8faff;
}

.table-myhr th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.table-myhr td {
    padding: 14px 18px;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.table-myhr tbody tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.6);
}

.table-myhr tr:hover td {
    background: #f8faff;
}

.badge-myhr-success {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 4px 12px;
    border-radius: 12px;
}

.badge-myhr-warning {
    background-color: #fef9c3;
    color: #a16207;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 4px 12px;
    border-radius: 12px;
}

.btn-action-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}

.btn-action-circle:hover {
    background: #f4f5fa;
    color: #18181b;
}

.btn-action-circle.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

/* Gradient Primary Buttons */
.btn-grad-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 8px 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    transition: all 0.15s ease;
}

.btn-grad-purple:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.btn-soft-neutral {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.btn-soft-neutral:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.btn-soft-danger {
    color: #dc2626;
    border-color: #fecaca;
    background: #fff7f7;
}

.btn-soft-danger:hover {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}

.btn-soft-success {
    color: #15803d;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.btn-soft-success:hover {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.btn-soft-warning {
    color: #a16207;
    border-color: #fde68a;
    background: #fffbeb;
}

.btn-soft-warning:hover {
    color: #854d0e;
    background: #fef3c7;
    border-color: #fcd34d;
}

.quick-action-list {
    display: grid;
    gap: 12px;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e8edf5;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-action-item:hover {
    transform: translateY(-1px);
    border-color: #d8dff0;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    font-size: 1rem;
}

.empty-state {
    padding: 38px 24px;
    text-align: center;
    color: #64748b;
}

.empty-state i {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-panel {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.profile-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-panel-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
    color: #4f46e5;
    font-size: 1rem;
    flex: 0 0 46px;
}

.profile-panel-title {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: #0f172a;
}

.profile-panel-copy {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.6;
}

.secret-key-box {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.secret-key-box code {
    display: inline-block;
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #4f46e5;
    word-break: break-all;
}

.app-footer {
    background: #ffffff;
}

/* Auth Experience */
.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.15), transparent 28%),
        linear-gradient(180deg, #f7f8fc 0%, #eef2ff 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 32px 0;
}

.auth-shell-owner {
    background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 28%),
        linear-gradient(180deg, #120d18 0%, #181125 100%);
}

.auth-container {
    width: 100%;
}

.auth-frame {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
    border-radius: 28px;
    overflow: hidden;
    backdrop-filter: blur(18px);
}

.auth-frame-owner {
    background: rgba(20, 14, 31, 0.78);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.auth-hero,
.auth-panel {
    padding: 40px;
}

.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -80px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(8px);
}

.auth-hero-primary {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #06b6d4 100%);
    color: #ffffff;
}

.auth-hero-secondary {
    background: linear-gradient(145deg, #0f766e 0%, #0f766e 20%, #155e75 60%, #312e81 100%);
    color: #ffffff;
}

.auth-hero-owner {
    background: linear-gradient(145deg, #251431 0%, #4c1d95 55%, #1d4ed8 100%);
    color: #ffffff;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    margin-bottom: 22px;
}

.auth-badge-owner {
    background: rgba(255, 255, 255, 0.10);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    color: inherit;
    margin-bottom: 24px;
}

.auth-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-brand-icon-owner {
    background: rgba(255, 255, 255, 0.08);
}

.auth-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.08;
    font-weight: 800;
    margin: 0 0 16px;
    max-width: 14ch;
}

.auth-copy {
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.55;
}

.auth-feature-item i {
    margin-top: 3px;
    font-size: 0.95rem;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
}

.auth-panel-owner {
    background: rgba(16, 12, 24, 0.82);
    color: #ffffff;
}

.auth-panel-head {
    margin-bottom: 20px;
}

.auth-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 10px;
}

.auth-panel-owner .auth-eyebrow {
    color: #c084fc;
}

.auth-panel-title {
    font-size: 1.65rem;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 10px;
    color: #18181b;
}

.auth-panel-owner .auth-panel-title {
    color: #ffffff;
}

.auth-panel-copy {
    margin: 0;
    color: #71717a;
    line-height: 1.65;
}

.auth-panel-owner .auth-panel-copy {
    color: rgba(255, 255, 255, 0.7);
}

.auth-card {
    border-radius: 24px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.auth-card-compact {
    max-width: 480px;
}

.auth-card-owner {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.auth-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-icon-bubble {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2ff 0%, #dbeafe 100%);
    color: #4f46e5;
    font-size: 1.55rem;
}

.auth-verify-target {
    text-align: center;
    color: #52525b;
    line-height: 1.7;
    margin-bottom: 18px;
}

.auth-verify-target strong {
    display: block;
    color: #18181b;
    margin-top: 4px;
}

.auth-stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.auth-stat-strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.auth-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.auth-stat strong {
    font-size: 0.88rem;
    color: #18181b;
}

.auth-form {
    width: 100%;
}

.auth-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #3f3f46;
    margin-bottom: 8px;
}

.auth-panel-owner .auth-label {
    color: rgba(255, 255, 255, 0.78);
}

.auth-input-group {
    display: flex;
    align-items: center;
    min-height: 56px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #dbe4f0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input-group:focus-within {
    background: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.auth-input-group-owner {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-input-group-owner:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: #c084fc;
    box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
}

.auth-input-icon {
    width: 54px;
    flex: 0 0 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-panel-owner .auth-input-icon {
    color: rgba(255, 255, 255, 0.58);
}

.auth-input {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 16px 18px 16px 0;
    min-height: 54px;
    color: #18181b;
    border-radius: 0 18px 18px 0;
}

.auth-input:focus {
    box-shadow: none;
    background: transparent;
    color: #18181b;
}

.auth-input::placeholder {
    color: #a1a1aa;
}

.auth-input-owner,
.auth-input-owner:focus {
    color: #ffffff;
}

.auth-otp-input {
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #f8fafc;
    min-height: 58px;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
}

.auth-otp-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    background: #ffffff;
}

.auth-submit-btn {
    width: 100%;
    min-height: 54px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.96rem;
    box-shadow: 0 16px 30px rgba(79, 70, 229, 0.24);
}

.auth-submit-btn:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
}

.auth-submit-btn-owner {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    box-shadow: 0 16px 30px rgba(147, 51, 234, 0.24);
}

.auth-submit-btn-owner:hover {
    background: linear-gradient(135deg, #7e22ce 0%, #4338ca 100%);
}

.auth-link-button {
    color: #6366f1;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-link-button:hover {
    color: #4338ca;
}

.auth-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
    color: #71717a;
    font-size: 0.88rem;
}

.auth-footer-note a {
    font-weight: 700;
    color: #4f46e5;
}

.auth-footer-note-centered {
    margin-top: 18px;
}

.auth-panel-owner .auth-footer-note {
    color: rgba(255, 255, 255, 0.68);
}

.auth-panel-owner .auth-footer-note a {
    color: #e9d5ff;
}

/* Helper Utility Classes */
.text-purple { color: #6f42c1 !important; }
.bg-purple-subtle { background-color: #f3eefc !important; }
.border-purple { border-color: #7c3aed !important; }

/* Settings Tab Pills */
.btn-tab-pill {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.btn-tab-pill:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-tab-pill.active {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

/* Responsive Media Queries */
@media (max-width: 991.98px) {
    .sidebar-osten {
        transform: translateX(-100%);
    }

    body.sidebar-open .sidebar-osten {
        transform: translateX(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    }

    .topbar-osten {
        left: 0;
        padding: 0 16px;
    }

    .main-content-osten {
        margin-left: 0;
        width: 100%;
    }

    .main-content-osten > .container-fluid {
        padding: 16px !important;
    }

    .page-hero,
    .surface-header,
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .page-toolbar {
        justify-content: flex-start;
    }

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

    .mobile-menu-btn {
        display: inline-flex;
    }

    .auth-frame,
    .auth-frame-owner {
        grid-template-columns: 1fr;
    }

    .auth-hero,
    .auth-panel {
        padding: 32px 24px;
    }

    .auth-title {
        max-width: none;
    }

    .auth-stat-strip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .page-hero {
        padding: 20px 18px;
        border-radius: 20px;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .card-white-container,
    .surface-section,
    .profile-panel {
        border-radius: 18px;
    }

    .table-myhr th,
    .table-myhr td {
        padding-left: 14px;
        padding-right: 14px;
    }

    .auth-shell {
        padding: 16px 0;
    }

    .auth-frame,
    .auth-frame-owner {
        border-radius: 22px;
    }

    .auth-hero,
    .auth-panel {
        padding: 24px 18px;
    }

    .auth-card {
        padding: 18px;
        border-radius: 20px;
    }

    .auth-stat-strip {
        grid-template-columns: 1fr;
    }

    .auth-title {
        font-size: 1.85rem;
    }
}
