﻿/* DepreciatePro — Dark Financial Theme */
/* Font: DM Serif Display + DM Sans */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #060d1a;
    --bg-surface: #0f172a;
    --bg-input: #0a1628;
    --border: #1e3a5f;
    --border-2: #0f1f38;
    --text-1: #f1f5f9;
    --text-2: #e2e8f0;
    --text-3: #94a3b8;
    --text-4: #64748b;
    --text-5: #475569;
    --accent: #1d6fa4;
    --accent-2: #0d4f8a;
    --blue: #38bdf8;
    --green: #4ade80;
    --yellow: #fbbf24;
    --red: #f87171;
    --purple: #c084fc;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html, body {
    background: var(--bg-base);
    color: var(--text-2);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-input);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.dp-header {
    background: #0a1628;
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.dp-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.dp-logo-name {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-1);
    letter-spacing: -0.01em;
}

.dp-logo-sub {
    font-size: 10px;
    color: var(--text-4);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dp-nav {
    display: flex;
    gap: 3px;
}

.dp-nav-btn {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-4);
    text-decoration: none;
    transition: all 0.18s;
}

    .dp-nav-btn:hover {
        color: var(--text-2);
        background: rgba(255,255,255,0.05);
    }

    .dp-nav-btn.active {
        background: linear-gradient(135deg, var(--accent), var(--accent-2));
        color: #fff;
    }

.dp-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dp-user-name {
    font-size: 12px;
    color: var(--text-3);
}

.dp-lang-btn {
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(29,111,164,0.15);
    color: var(--blue);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.dp-logout-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-sans);
}

    .dp-logout-btn:hover {
        color: var(--red);
        border-color: var(--red);
    }

/* ── MAIN ────────────────────────────────────────────────────── */
.dp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
}

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.dp-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dp-page-title {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--text-1);
    margin: 0;
}

.dp-page-sub {
    font-size: 14px;
    color: var(--blue);
    margin-left: 12px;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.dp-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.dp-card-hover:hover {
    border-color: var(--accent);
}

/* ── STATS GRID ──────────────────────────────────────────────── */
.dp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dp-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.dp-stat-icon {
    font-size: 28px;
}

.dp-stat-label {
    font-size: 11px;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

.dp-stat-value {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-serif);
}

    .dp-stat-value.blue {
        color: var(--blue);
    }

    .dp-stat-value.green {
        color: var(--green);
    }

    .dp-stat-value.yellow {
        color: var(--yellow);
    }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.dp-btn-primary {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
}

    .dp-btn-primary:hover {
        opacity: 0.9;
    }

.dp-btn-ghost {
    padding: 7px 13px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: none;
    color: var(--text-3);
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    font-family: var(--font-sans);
}

    .dp-btn-ghost:hover {
        color: var(--text-2);
    }

.dp-btn-danger {
    padding: 7px 13px;
    border-radius: var(--radius-xs);
    border: 1px solid #3f1515;
    background: rgba(239,68,68,0.1);
    color: var(--red);
    cursor: pointer;
    font-size: 12px;
    font-family: var(--font-sans);
}

    .dp-btn-danger:hover {
        background: rgba(239,68,68,0.2);
    }

.dp-btn-accent {
    padding: 7px 13px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--accent-2);
    background: rgba(29,111,164,0.1);
    color: var(--blue);
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    font-family: var(--font-sans);
}

.dp-btn-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* ── FORM ────────────────────────────────────────────────────── */
.dp-form-section {
    padding: 32px 0;
    max-width: 560px;
}

.dp-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dp-field {
    margin-bottom: 16px;
}

.dp-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-3);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.dp-input, .dp-select, .dp-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    font-family: var(--font-sans);
    transition: border-color 0.18s;
}

    .dp-input:focus, .dp-select:focus {
        border-color: var(--accent);
    }

.dp-select {
    cursor: pointer;
}

.dp-input-error {
    border-color: var(--red) !important;
}

.dp-val-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
}

.dp-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* ── TABLE ───────────────────────────────────────────────────── */
.dp-table-wrap {
    overflow-x: auto;
}

.dp-table {
    width: 100%;
    border-collapse: collapse;
}

    .dp-table thead tr {
        background: var(--bg-input);
    }

    .dp-table th {
        padding: 10px 14px;
        text-align: left;
        color: var(--text-4);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border);
        white-space: nowrap;
    }

        .dp-table th.right {
            text-align: right;
        }

    .dp-table td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border-2);
    }

    .dp-table tbody tr:nth-child(even) {
        background: rgba(255,255,255,0.015);
    }

    .dp-table tbody tr:hover {
        background: rgba(29,111,164,0.06);
    }

/* ── METHOD BADGE ────────────────────────────────────────────── */
.dp-badge {
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.dp-badge-sl {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
}

.dp-badge-ddb {
    background: rgba(168,85,247,0.15);
    color: var(--purple);
}

.dp-badge-macrs {
    background: rgba(245,158,11,0.15);
    color: var(--yellow);
}

.dp-badge-bonus {
    background: rgba(74,222,128,0.15);
    color: var(--green);
}

.dp-badge-active {
    background: rgba(29,111,164,0.2);
    color: var(--blue);
}

/* ── PROGRESS BAR ────────────────────────────────────────────── */
.dp-progress {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.dp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--blue));
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* ── ALERTS ──────────────────────────────────────────────────── */
.dp-alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 13px;
}

.dp-alert-success {
    background: rgba(74,222,128,0.1);
    border: 1px solid rgba(74,222,128,0.2);
    color: var(--green);
}

.dp-alert-danger {
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.2);
    color: var(--red);
}

.dp-alert-warn {
    background: rgba(251,191,36,0.1);
    border: 1px solid rgba(251,191,36,0.2);
    color: var(--yellow);
}

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.dp-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--text-5);
    font-size: 15px;
}

/* ── AUTH PAGES ──────────────────────────────────────────────── */
.dp-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
}

.dp-auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 44px;
    width: min(460px, 95vw);
    box-shadow: var(--shadow);
}

.dp-auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.dp-auth-title {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.dp-auth-sub {
    font-size: 13px;
    color: var(--text-4);
    margin-bottom: 28px;
}

.dp-auth-link {
    color: var(--blue);
    text-decoration: none;
    font-size: 13px;
}

    .dp-auth-link:hover {
        text-decoration: underline;
    }

/* ── MODAL ───────────────────────────────────────────────────── */
.dp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,15,30,0.75);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.dp-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: min(680px, 95vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

.dp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
}

.dp-modal-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-2);
}

.dp-modal-close {
    background: none;
    border: none;
    color: var(--text-4);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.dp-modal-body {
    padding: 20px 24px 24px;
}

/* ── SCHEDULE TABLE ──────────────────────────────────────────── */
.dp-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .dp-schedule-table th {
        padding: 8px 10px;
        text-align: right;
        color: var(--text-4);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border-bottom: 1px solid var(--border);
        background: var(--bg-input);
    }

    .dp-schedule-table td {
        padding: 8px 10px;
        text-align: right;
        border-bottom: 1px solid var(--border-2);
    }

    .dp-schedule-table tr.current-year td {
        background: rgba(29,111,164,0.12);
    }

        .dp-schedule-table tr.current-year td:first-child {
            color: var(--blue);
            font-weight: 700;
        }

/* ── COMPANY CARD ─────────────────────────────────────────────── */
.dp-company-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
    text-decoration: none;
    color: inherit;
}

    .dp-company-card:hover {
        border-color: var(--accent);
    }

    .dp-company-card.active {
        border-color: var(--accent);
    }

.dp-company-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ── ADMIN ───────────────────────────────────────────────────── */
.dp-admin-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* ── PLAN CARDS ───────────────────────────────────────────────── */
.dp-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 16px;
}

.dp-plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.dp-plan-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
    font-family: var(--font-serif);
    margin: 8px 0;
}

/* ── UTIL ─────────────────────────────────────────────────────── */
.text-right {
    text-align: right;
}

.text-green {
    color: var(--green);
}

.text-blue {
    color: var(--blue);
}

.text-yellow {
    color: var(--yellow);
}

.text-red {
    color: var(--red);
}

.text-dim {
    color: var(--text-3);
}

.text-muted {
    color: var(--text-4);
}

.fw-bold {
    font-weight: 700;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 4px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.gap-8 {
    gap: 8px;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fs-11 {
    font-size: 11px;
}

.fs-12 {
    font-size: 12px;
}

.serif {
    font-family: var(--font-serif);
}

.caps {
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
