/* Aurora VPN - Личный кабинет - Темная тема */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(800px 400px at 10% -10%, #7c52ff22, transparent 60%),
                radial-gradient(700px 420px at 90% 0%, #9c27b022, transparent 60%),
                linear-gradient(135deg, #0b0f1a 0%, #111827 60%, #0b1220 100%);
    color: #e6e9ef;
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
}

/* Lightweight animated aurora background (pure CSS) */
body::before,
body::after {
    content: "";
    position: fixed;
    inset: -25% -20% -20% -25%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
    opacity: .22;
    will-change: transform, opacity;
    animation: aurora-move 26s ease-in-out infinite alternate,
               aurora-fade 18s ease-in-out infinite alternate;
}
body::before {
    background:
      radial-gradient(35% 40% at 15% 20%, #7C52FF55 0%, transparent 70%),
      radial-gradient(40% 35% at 85% 25%, #60A5FA55 0%, transparent 70%),
      radial-gradient(45% 40% at 50% 80%, #9C27B055 0%, transparent 72%);
}
body::after {
    background:
      radial-gradient(45% 45% at 10% 80%, #60A5FA40 0%, transparent 70%),
      radial-gradient(35% 45% at 90% 70%, #7C52FF40 0%, transparent 70%);
    animation-duration: 32s, 22s;
    opacity: .18;
}

@keyframes aurora-move {
    0%   { transform: translate3d(-2%, -1%, 0) scale(1.0) rotate(0.001deg); }
    50%  { transform: translate3d(2%, 1%, 0) scale(1.05) rotate(0.001deg); }
    100% { transform: translate3d(-1%, 2%, 0) scale(1.03) rotate(0.001deg); }
}
@keyframes aurora-fade {
    0%   { opacity: .15; }
    50%  { opacity: .28; }
    100% { opacity: .18; }
}

/* Ensure main app layers above animated bg */
.account-header, .dashboard, .login-container, .modal-overlay { position: relative; z-index: 1; }

/* Unified elevation (soft branded shadows) */
.login-card,
.modal,
.dashboard-header,
.stat-card,
.main-content,
.license-card {
    box-shadow: 0 10px 28px rgba(0,0,0,.35), 0 8px 22px rgba(124,82,255,.08);
}

/* Slight lift on hover for interactive cards */
.stat-card:hover,
.license-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0,0,0,.40), 0 10px 26px rgba(124,82,255,.12);
}

/* Header for account pages */
.account-header{ position: static; z-index: 40; background: rgba(18,21,31,.6); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(124,82,255,.14); }
.account-header__inner{ max-width:1100px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; padding:10px 18px; gap:12px; }
.account-header .brand{ display:flex; align-items:center; gap:10px; text-decoration:none }
.account-header .aurora-brand__logo{ width:32px; height:32px; border-radius:10px; box-shadow:0 10px 24px rgba(124,82,255,.22) }
.account-header .brand-name{ display:inline-flex; align-items:center; height:32px; line-height:32px; font-weight:800; letter-spacing:.2px; font-size:15px; background: linear-gradient(135deg,#e6efff,#cfe0ff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }

/* Align brand in dashboard header as well */
.dashboard-header .brand{ display:flex; align-items:center; gap:10px; text-decoration:none }
.dashboard-header .aurora-brand__logo{ width:32px; height:32px; border-radius:10px; display:inline-block; vertical-align:middle }
.dashboard-header .brand-name{ display:inline-flex; align-items:center; height:32px; line-height:32px; font-weight:800; letter-spacing:.2px; font-size:15px; background: linear-gradient(135deg,#e6efff,#cfe0ff); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text }
.account-header__nav{ display:flex; align-items:center; gap:10px }
.account-header__nav .home-link{ color:#cfe0ff; opacity:.8; font-weight:600; padding:6px 8px; border-radius:8px; transition:.2s ease }
.account-header__nav .home-link:hover{ opacity:1; background: rgba(255,255,255,.06) }

/* Login Page */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #0b0f1a 0%, #1a1a2e 50%, #16213e 100%);
}

.login-card {
    background: rgba(18, 21, 31, 0.75);
    border: 1px solid rgba(124, 82, 255, 0.18);
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 380px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.logo-icon {
    font-size: 32px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Aurora brand logo (унифицировано со стилем сайта) */
.aurora-brand__logo {
    --brand1: #6ea8ff;
    --brand2: #9a6eff;
    
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: conic-gradient(from 180deg at 50% 50%, var(--brand1), var(--brand2), var(--brand1));
    /* background: linear-gradient(135deg, #7C52FF, #9C27B0); */
    box-shadow: 0 10px 24px rgba(124, 82, 255, 0.35);
}

/* Заголовок рядом с брендовым логотипом */
.brand-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    text-align: center;
}

.login-subtitle {
    color: #98a0b3;
    font-size: 14px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e6e9ef;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(124, 82, 255, 0.28);
    border-radius: 10px;
    color: #e6e9ef;
    font-size: 15px;
    transition: all 0.25s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7C52FF;
    box-shadow: 0 0 0 3px rgba(124, 82, 255, 0.1);
}

.login-btn {
    width: 100%;
    padding: 10px 18px;
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.3);
}

.login-footer {
    text-align: center;
    color: #98a0b3;
}

.login-footer a {
    color: #7C52FF;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: rgba(18, 21, 31, 0.9);
    border: 1px solid rgba(124, 82, 255, 0.25);
    border-radius: 14px;
    padding: 24px;
    width: 100%;
    max-width: 460px;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 24px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: #98a0b3;
}

.verification-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 82, 255, 0.2);
}

.verify-btn {
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.3);
}

.modal-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(124, 82, 255, 0.2);
}

.logout-link {
    color: #98a0b3;
    text-decoration: none;
    font-size: 14px;
}

.logout-link:hover {
    color: #e6e9ef;
}

/* Dashboard Styles */
.dashboard {
    min-height: 100vh;
    background: transparent;
    padding: 24px 20px 40px;
}

/* Центровка и ограничение ширины основного контента */
.dashboard > .dashboard-header,
.dashboard > .stats-grid,
.dashboard > .main-content {
    max-width: 1100px;
    margin: 0 auto 18px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 21, 31, 0.65);
    border: 1px solid rgba(124, 82, 255, 0.22);
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(124, 82, 255, 0.12), 0 6px 18px rgba(0,0,0,.35);
}

/* Neon accent around dashboard header */
.dashboard-header::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: conic-gradient(from var(--ang1, 0deg), #7C52FF, #60A5FA, #9C27B0, #7C52FF);
    filter: blur(26px);
    opacity: .5;
    z-index: 0;
    animation: spiral-hue 14s linear infinite;
}
.dashboard-header::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: repeating-conic-gradient(from var(--ang2, 0deg),
                rgba(124,82,255,.10) 0deg 12deg,
                rgba(96,165,250,.08) 12deg 24deg,
                transparent 24deg 48deg);
    -webkit-mask-image: radial-gradient(85% 140% at 50% 50%, rgba(0,0,0,.85) 35%, transparent 80%);
            mask-image: radial-gradient(85% 140% at 50% 50%, rgba(0,0,0,.85) 35%, transparent 80%);
    filter: blur(10px);
    opacity: .35;
    z-index: 0;
    animation: spiral-rings 18s linear infinite reverse;
}
.dashboard-header > * { position: relative; z-index: 1; }

/* register animatable angle custom properties (modern browsers) */
@property --ang1 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --ang2 { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

@keyframes spiral-hue {
    0%   { --ang1: 0deg;   opacity:.42; filter: blur(22px); }
    50%  { --ang1: 180deg; opacity:.64; filter: blur(28px); }
    100% { --ang1: 360deg; opacity:.42; filter: blur(22px); }
}
@keyframes spiral-rings {
    0%   { --ang2: 0deg;   opacity:.30; }
    50%  { --ang2: 180deg; opacity:.42; }
    100% { --ang2: 360deg; opacity:.30; }
}

/* Брендовый блок в шапке */
.brand-name {
    font-weight: 800;
    letter-spacing: .2px;
    background: linear-gradient(135deg, #e6efff, #cfe0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.avatar-text {
    text-transform: uppercase;
}

.user-details h2 {
    font-size: 18px;
    margin-bottom: 2px;
    color: #e6e9ef;
}

.user-role {
    color: #98a0b3;
    font-size: 14px;
    margin-bottom: 8px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.status-text {
    color: #98a0b3;
    font-size: 12px;
}

.logout-btn {
    background: rgba(26, 26, 46, 0.6);
    color: #e6e9ef;
    border: 1px solid rgba(124, 82, 255, 0.28);
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.25s ease;
}

.logout-btn:hover {
    background: rgba(124, 82, 255, 0.1);
    border-color: #7C52FF;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card {
    background: rgba(18, 21, 31, 0.65);
    border: 1px solid rgba(124, 82, 255, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.1);
}

.stat-title {
    color: #98a0b3;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 20px;
    font-weight: 800;
    color: #e6e9ef;
}

/* Длинные строки (email) — аккуратное сокращение с троеточием */
.stat-email {
    max-width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    background: rgba(18, 21, 31, 0.65);
    border: 1px solid rgba(124, 82, 255, 0.18);
    border-radius: 14px;
    padding: 18px;
    backdrop-filter: blur(8px);
}

/* Подсказка под списком лицензий */
.helper-note {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(124, 82, 255, 0.18);
    color: #98a0b3;
    font-size: 13px;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(124, 82, 255, 0.2);
}

.content-header h3 {
    font-size: 18px;
    color: #e6e9ef;
}

.buy-btn {
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
    font-size: 14px;
}

/* Акцентная кнопка покупки в стиле сайта */
.buy-btn--accent {
    position: relative;
    background: linear-gradient(135deg, #8B5CF6, #60A5FA);
    border: 1px solid rgba(124, 82, 255, .3);
    box-shadow: 0 8px 24px rgba(124, 82, 255, .25);
}
.buy-btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(124, 82, 255, .32);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #e6e9ef;
}

.empty-state p {
    color: #98a0b3;
    margin-bottom: 30px;
    font-size: 16px;
}

.cta-btn {
    background: linear-gradient(135deg, #7C52FF, #9C27B0);
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 82, 255, 0.3);
}

/* Licenses List */
.licenses-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.license-card {
    background: rgba(18, 21, 31, 0.55);
    border: 1px solid rgba(124, 82, 255, 0.16);
    border-radius: 12px;
    padding: 14px;
    transition: all 0.25s ease;
}

.license-card:hover {
    border-color: rgba(124, 82, 255, 0.4);
    box-shadow: 0 4px 12px rgba(124, 82, 255, 0.1);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.license-key {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.key-label {
    color: #98a0b3;
    font-size: 14px;
}

.key-value {
    background: rgba(26, 26, 46, 0.8);
    border: 1px dashed rgba(124, 82, 255, 0.28);
    border-radius: 10px;
    padding: 6px 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #e6e9ef;
    flex: 1;
    word-break: break-all;
}

.copy-btn {
    background: rgba(124, 82, 255, 0.1);
    border: 1px solid rgba(124, 82, 255, 0.28);
    color: #b399ff;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
}

.copy-btn:hover {
    background: rgba(124, 82, 255, 0.2);
    transform: scale(1.05);
}

.license-status {
    margin-left: 16px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-unused {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.status-active {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-expired {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.license-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    color: #98a0b3;
    font-size: 14px;
}

.detail-value {
    color: #e6e9ef;
    font-weight: 500;
    font-size: 14px;
}

/* Messages */
.error-message {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: #4ade80;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard {
        padding: 10px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .license-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .license-key {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .license-details {
        grid-template-columns: 1fr;
    }
}
