:root {
    --red: #d71920;
    --red-dark: #b9141b;
    --red-light: #fee2e2;
    --black: #15171b;
    --dark: #1f2226;
    --gray-900: #2d3138;
    --gray-800: #3d4149;
    --gray-600: #62666d;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
}

.brand {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--black);
}

.brand::first-letter {
    color: var(--red);
}

/* ========================================
   LAYOUT
   ======================================== */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.sidebar-section {
    padding: 16px 20px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: 0;
    position: relative;
}

.sidebar-link:hover {
    color: var(--black);
    background: var(--gray-100);
}

.sidebar-link.active {
    color: var(--red);
    background: var(--red-light);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--red);
    border-radius: 0 3px 3px 0;
}

.sidebar-link .icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.topbar {
    height: 64px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.content {
    padding: 32px;
    max-width: 1200px;
}

/* ========================================
   MOBILE SIDEBAR
   ======================================== */

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--black);
    padding: 4px;
    cursor: pointer;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--black);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--gray-400);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
    padding: 8px 12px;
    background: var(--red-light);
    border-radius: 8px;
}

.form-success {
    font-size: 12px;
    color: #059669;
    margin-top: 4px;
    padding: 8px 12px;
    background: #dcfce7;
    border-radius: 8px;
}

.form-hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.input-group {
    display: flex;
    gap: 12px;
}

.input-group > * {
    flex: 1;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.card-subtitle {
    font-size: 13px;
    color: var(--gray-600);
}

/* ========================================
   STATS
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
}

.stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -1px;
}

.stat-change {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 4px;
}

.stat-change.positive {
    color: #059669;
}

.stat-change.negative {
    color: var(--red);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */

.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* ========================================
   FUNCTION TILES
   ======================================== */

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tile {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.tile:hover {
    border-color: var(--red);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tile-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--red-light);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tile-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
}

.tile-desc {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

.tile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-600);
    width: fit-content;
}

.tile-badge.locked {
    background: var(--red-light);
    color: var(--red);
}

/* ========================================
   PROFILE CARD
   ======================================== */

.profile-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--white);
    margin-bottom: 32px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: var(--gray-400);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.profile-stat {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 16px;
}

.profile-stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 800;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-success {
    background: #dcfce7;
    color: #059669;
}

.badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.badge-danger {
    background: var(--red-light);
    color: var(--red);
}

.badge-neutral {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-primary {
    background: var(--red-light);
    color: var(--red);
}

/* ========================================
   TABLE
   ======================================== */

.table-container {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    background: var(--gray-50);
}

td {
    font-size: 13px;
    color: var(--gray-900);
}

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

tr:hover td {
    background: var(--gray-50);
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-600);
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================
   TOAST
   ======================================== */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #059669;
}

.toast.error {
    border-left: 4px solid var(--red);
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 18px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.toast-message {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   NOTIFICATION BELL
   ======================================== */

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.notification-bell:hover {
    background: var(--gray-200);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    display: none;
    z-index: 100;
}

.notification-dropdown.active {
    display: block;
}

.notification-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notification-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.notification-list {
    max-height: 360px;
    overflow-y: auto;
}

.notification-item {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.notification-item:hover {
    background: var(--gray-50);
}

.notification-item.unread {
    background: var(--red-light);
}

.notification-item.unread:hover {
    background: #fecaca;
}

.notification-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 2px;
}

.notification-item-message {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.notification-item-time {
    font-size: 11px;
    color: var(--gray-400);
    margin-top: 4px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-400);
    font-size: 13px;
}

/* ========================================
   HERO SECTION (MAIN PAGE)
   ======================================== */

.hero {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    padding: 60px 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--black);
    margin-bottom: 20px;
}

.hero h1 strong {
    color: var(--red);
}

.hero p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    width: 100%;
    max-width: 320px;
}

.hero-card-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 300;
    margin: 0 auto 24px;
}

.hero-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.hero-card p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========================================
   AUTH PAGES
   ======================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--gray-50);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.auth-card .brand {
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 32px;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--red);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ========================================
   FILTERS
   ======================================== */

.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-input, .filter-select {
    padding: 10px 14px;
    font-size: 13px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--black);
    min-width: 150px;
}

.filter-input:focus, .filter-select:focus {
    border-color: var(--red);
}

/* ========================================
   TAGS
   ======================================== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.page-header p {
    font-size: 14px;
    color: var(--gray-600);
}

/* ========================================
   CHECKBOX
   ======================================== */

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-group:hover {
    border-color: var(--red);
    background: var(--red-light);
}

.checkbox-group.checked {
    border-color: var(--red);
    background: var(--red-light);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}

.checkbox-group.checked .checkbox-input {
    background: var(--red);
    border-color: var(--red);
}

.checkbox-group.checked .checkbox-input::after {
    content: '✓';
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.checkbox-content {
    flex: 1;
}

.checkbox-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.checkbox-desc {
    font-size: 12px;
    color: var(--gray-600);
    margin-top: 2px;
}

/* ========================================
   CALCULATOR
   ======================================== */

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.calc-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.calc-input {
    width: 100px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
}

.calc-input:focus {
    border-color: var(--red);
}

.calc-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--dark);
    border-radius: var(--radius);
    color: var(--white);
    margin-top: 16px;
}

.calc-result-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
}

.calc-result-value {
    font-size: 24px;
    font-weight: 800;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }

    .hero-visual {
        order: -1;
    }

    .hero-card {
        max-width: 280px;
    }

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

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

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

    .topbar {
        padding: 0 16px;
    }

    .content {
        padding: 20px 16px;
    }

    .hero {
        padding: 32px 16px;
    }

    .hero-card {
        padding: 32px 24px;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .profile-card {
        padding: 24px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

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

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

    .input-group {
        flex-direction: column;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filter-input, .filter-select {
        width: 100%;
    }

    .notification-dropdown {
        width: calc(100vw - 32px);
        right: -16px;
    }

    .modal {
        max-width: 100%;
    }

    .auth-card {
        padding: 32px 24px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .topbar-title {
        font-size: 14px;
    }
}