/* === Cabinet Styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0b0d15;
    color: #ffffff;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Auth (login/register) === */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-box {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 48px;
    max-width: 420px;
    width: 100%;
}

.auth-logo {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
}
.auth-logo .highlight {
    background: linear-gradient(135deg, #4facfe, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: 22px;
}

.auth-error {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.auth-success {
    background: rgba(100, 255, 218, 0.15);
    border: 1px solid rgba(100, 255, 218, 0.3);
    color: #64ffda;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}
.auth-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #8892b0;
}
.auth-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #1d2340;
    background: #0b0d15;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s;
}
.auth-form .form-group input:focus {
    outline: none;
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    font-size: 14px;
}
.auth-links a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s;
}
.auth-links a:hover {
    color: #4facfe;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #4facfe, #64ffda);
    color: #0b0d15;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 172, 254, 0.3);
}
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}
.btn-link {
    color: #4facfe;
    text-decoration: none;
    font-size: 14px;
}
.btn-link:hover {
    text-decoration: underline;
}

/* === Header === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #1d2340;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}
.header-logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: #ffffff;
}
.header-logo .highlight {
    background: linear-gradient(135deg, #4facfe, #64ffda);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.header-nav a {
    color: #8892b0;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 15px;
}
.header-nav a:hover,
.header-nav a.active {
    color: #4facfe;
}
.header-nav .btn-logout {
    background: none;
    border: none;
    color: #8892b0;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.3s;
}
.header-nav .btn-logout:hover {
    color: #ff6b6b;
}

/* === Stats === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.stat-card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #64ffda;
}
.stat-label {
    color: #8892b0;
    font-size: 14px;
    margin-top: 4px;
}

/* === Dashboard === */
.dashboard-header {
    margin-bottom: 30px;
}
.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}
.dashboard-header p {
    color: #8892b0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* === Cards === */
.card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 24px;
}
.card h3 {
    color: #8892b0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.empty-text {
    color: #8892b0;
    margin: 12px 0;
}

/* === Project List === */
.project-list,
.request-list {
    list-style: none;
    padding: 0;
}
.project-list li,
.request-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.project-list li:last-child,
.request-list li:last-child {
    border-bottom: none;
}

.project-name {
    font-weight: 600;
}

.project-status,
.request-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-planning,
.status-new { background: rgba(79, 172, 254, 0.15); color: #4facfe; }
.status-development,
.status-in_progress { background: rgba(240, 230, 140, 0.15); color: #f0e68c; }
.status-testing { background: rgba(100, 255, 218, 0.15); color: #64ffda; }
.status-completed { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.status-support { background: rgba(79, 172, 254, 0.15); color: #4facfe; }
.status-cancelled,
.status-archived { background: rgba(136, 146, 176, 0.15); color: #8892b0; }
.status-assigned { background: rgba(100, 255, 218, 0.15); color: #64ffda; }

/* === Projects Page === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h1 { font-size: 28px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.project-card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s;
}
.project-card:hover {
    border-color: rgba(79, 172, 254, 0.2);
    transform: translateY(-4px);
}
.project-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.project-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.project-type {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
}
.project-desc {
    color: #8892b0;
    font-size: 14px;
    margin-bottom: 12px;
}
.project-budget {
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 8px;
}
.project-date {
    color: #8892b0;
    font-size: 12px;
}

/* === Subscriptions === */
.subscription-current {
    margin-bottom: 40px;
}
.subscription-card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    max-width: 400px;
}
.subscription-tariff {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.subscription-price {
    font-size: 24px;
    color: #64ffda;
    margin-bottom: 8px;
}
.subscription-period {
    color: #8892b0;
    margin-bottom: 8px;
}
.subscription-status {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}
.subscription-status.status-active { background: rgba(100, 255, 218, 0.15); color: #64ffda; }
.subscription-status.status-expired { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}
.plan-card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}
.plan-card:hover {
    transform: translateY(-4px);
}
.plan-card.featured {
    border-color: #64ffda;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.05);
}
.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.plan-price {
    font-size: 28px;
    font-weight: 800;
    color: #64ffda;
    margin-bottom: 16px;
}
.plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
}
.plan-features li {
    padding: 6px 0;
    color: #8892b0;
    font-size: 14px;
}

/* === Settings === */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.settings-card {
    background: #11141f;
    border: 1px solid #1d2340;
    border-radius: 16px;
    padding: 24px;
}
.settings-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
}
.settings-form .form-group {
    margin-bottom: 16px;
}
.settings-form .form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 14px;
    color: #8892b0;
}
.settings-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #1d2340;
    background: #0b0d15;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s;
}
.settings-form .form-group input:focus {
    outline: none;
    border-color: #4facfe;
}
.settings-form .form-group input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === Notifications === */
.notification {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}
.notification.success {
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    color: #64ffda;
}
.notification.error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* === Empty State === */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8892b0;
}
.empty-state .icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.empty-state h3 {
    color: #ffffff;
    margin-bottom: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-nav {
        flex-wrap: wrap;
        gap: 12px;
    }
    .dashboard-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .auth-box {
        padding: 24px;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
