:root {
    /* Primary */
    --primary: #2563EB;
    --primary-light: #3B82F6;
    --primary-dark: #1D4ED8;
    --primary-hover: #1D4ED8;
    --primary-soft: #EFF6FF;

    /* Accent & Status */
    --accent: #8B5CF6;
    --accent-soft: rgba(139, 92, 246, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #F8FAFC;
    --bg-soft: #F1F5F9;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --surface: #F8FAFC;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-dark: #1E293B;
    --text-gray: #64748B;

    /* Borders */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Shadows */
    --shadow: 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-active: 0 15px 30px -10px rgba(37, 99, 235, 0.15);

    /* Border Radius */
    --radius: 16px;
    --radius-sm: 12px;
}

/* ===== БАЗОВЫЕ СБРОСЫ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 0 0 90px 0;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.action-card {
    background: var(--white);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card:active {
    transition: transform 0.1s ease-out;
    transform: scale(0.96);
    background-color: var(--primary-soft);
}

.nav-item:active {
    opacity: 0.7;
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    display: block;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    transform: scale(1.1);
}

.action-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.action-description {
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.3;
    max-width: 120px;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 3px solid transparent;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-light);
    height: 48px;
    -webkit-appearance: none;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
    border-left: 3px solid var(--primary);
    padding-left: 14px;
}

.form-input::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
    font-size: 14px;
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    width: 100%;
    min-height: 180px;
    max-height: 400px;
    resize: none;
    padding: 0.6rem 0.75rem;
    line-height: 1.5;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 0.3s ease;
    background: var(--bg-light);
    color: var(--text-dark);
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.form-textarea.auto-expand {
    transition: height 0.1s ease-out;
}

.form-textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
    font-size: 15px;
}

.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: var(--bg-main);
    font-family: inherit;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/** Salary */
.salary-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.salary-input {
    flex: 1;
}

.salary-input .form-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/** SELECT выбора валюты */
.currency-select-wrapper {
    position: relative;
    width: 100px;
}

.currency-select {
    width: 100%;
    height: 48px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 16px;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.currency-select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.currency-select-wrapper::after {
    content: "▼";
    font-size: 0.7rem;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-gray);
}

/** Аватарка */
.avatar-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.5rem;
    font-weight: bold;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: transform 0.2s ease;
}

.avatar-container:hover {
    transform: scale(1.05);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.profile-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 2.5rem 1.5rem 1.5rem;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.user-position {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 0 1rem;
}

.user-name {
    font-weight: 700;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

.form-group:focus-within label {
    color: var(--primary);
    transform: translateX(4px);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-group .form-label {
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
}

.error-message {
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

/* Модалка подтверждения */
.confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.confirm-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 300px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.confirm-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.4;
}

.confirm-buttons {
    display: flex;
    gap: 10px;
}
/* -------------------------------------------- */

@media (max-width: 480px) {
    .container {
        padding: 0 5px 0 5px;
    }

    .action-card {
        padding: 1.25rem 0.75rem;
        min-height: 130px;
    }

    .actions-grid {
        gap: 0.75rem;
    }

    .action-label {
        font-size: 0.85rem;
    }

    .action-description {
        font-size: 0.7rem;
        max-width: 110px;
    }

    .form-input,
    .currency-select {
        height: 45px;
        font-size: 16px;
    }

    .form-input {
        padding: 0.675rem;
    }

    .currency-select-wrapper {
        width: 90px;
    }

    .currency-select {
        height: 45px;
        padding: 0.675rem 0.4rem;
        font-size: 0.8rem;
    }

    .currency-select-wrapper::after {
        right: 6px;
    }

    .form-group {
        margin-bottom: 0.875rem;
    }
}