/* ============================================
   SECURITY VPN - MAIN STYLES (Page-specific)
   ============================================ */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 120px 50px;
    padding-top: calc(120px + 60px);
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 95, 199, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-left h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: slideInLeft 0.8s ease-out;
}

.hero-left .gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    animation: slideInLeft 0.8s ease-out 0.2s backwards;
}

.hero-small {
    color: var(--text-muted);
    font-size: 0.95rem;
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

.hero-right {
    display: flex;
    justify-content: center;
    animation: slideInRight 0.8s ease-out;
}

.hero-icon {
    font-size: 200px;
    color: var(--primary-blue);
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-medium {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.nav-actions .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 95, 199, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: rgba(91, 95, 199, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    padding: 10px 24px;
    font-size: 0.95rem;
    justify-content: center;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ============================================
   FEATURES GRID
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 40px 30px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: all 0.35s ease;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 95, 199, 0.6), transparent);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(91, 95, 199, 0.07);
    border-color: rgba(91, 95, 199, 0.25);
    box-shadow: 0 24px 60px rgba(91, 95, 199, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(91, 95, 199, 0.15);
    border: 1px solid rgba(91, 95, 199, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #8b8ff0;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px rgba(91, 95, 199, 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    align-items: start;
}

.pricing-grid .pricing-popular {
    transform: scale(1.04);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 40px 30px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    position: relative;
    transition: all 0.35s ease;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.features-list {
    list-style: none;
    margin: 30px 0;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-list li {
    padding: 12px 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-list i {
    color: #10b981;
}

.pricing-popular {
    background: rgba(91, 95, 199, 0.09);
    border-color: rgba(91, 95, 199, 0.4);
    box-shadow: 0 0 50px rgba(91, 95, 199, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pricing-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-list {
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.faq-item.open {
    background: rgba(91, 95, 199, 0.06);
    border-color: rgba(91, 95, 199, 0.2);
    box-shadow: 0 8px 32px rgba(91, 95, 199, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(91, 95, 199, 0.1);
}

.faq-question h4 {
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(91, 95, 199, 0.05);
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 80px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-image: url('../../static/images/vpnv2.png');
    background-size: cover;
    background-position: center 30%;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 8, 0.72);
    z-index: 0;
}

.cta-section .section-center {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ============================================
   AUTH SECTION
   ============================================ */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 50px;
    padding-top: calc(60px + 40px);
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(91, 95, 199, 0.1);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    animation: slideInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91, 95, 199, 0.7), transparent);
}

.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.auth-tab.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(91, 95, 199, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(91, 95, 199, 0.15);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: auto;
    cursor: pointer;
}

.form-help {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.form-help a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-help a:hover {
    color: var(--primary-purple);
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 60px;
    color: #10b981;
    margin-bottom: 20px;
    animation: scaleIn 0.6s ease-out;
}

.success-message h3 {
    margin-bottom: 10px;
    color: #10b981;
}

/* ============================================
   CABINET SECTION
   ============================================ */

.cabinet-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 50px;
    padding-top: calc(60px + 30px);
    min-height: calc(100vh - 60px);
}

.cabinet-sidebar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(91, 95, 199, 0.1);
    color: var(--text-main);
}

.sidebar-item.active {
    background: var(--primary-blue);
    color: white;
}

.cabinet-content {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.cabinet-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
    display: block;
}

.tab-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tab-header p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.price-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    text-align: center;
}

/* Subscription Hero */
.subscription-hero {
    background: linear-gradient(135deg, rgba(91, 95, 199, 0.13), rgba(124, 58, 237, 0.10));
    border: 1px solid rgba(91, 95, 199, 0.3);
    border-radius: 22px;
    padding: 32px 28px;
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.subscription-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(91, 95, 199, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.subscription-status {
    margin-bottom: 20px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.status-badge.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.subscription-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.subscription-price {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.subscription-price span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.subscription-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(91, 95, 199, 0.08);
    border: 1px solid rgba(91, 95, 199, 0.18);
    padding: 18px;
    border-radius: 18px;
    text-align: left;
    transition: background 0.2s;
}

.detail-item:hover {
    background: rgba(91, 95, 199, 0.13);
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: rgba(91, 95, 199, 0.22);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #8b8ff0;
    flex-shrink: 0;
}

.detail-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.detail-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.connection-box {
    background: rgba(91, 95, 199, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.connection-box h3 {
    margin-bottom: 20px;
}

.subscription-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-item .value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Connection Actions */
.connection-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 36px;
}

.action-btn {
    background: rgba(91, 95, 199, 0.14);
    border: 1px solid rgba(91, 95, 199, 0.28);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
}

.action-btn:hover {
    background: rgba(91, 95, 199, 0.18);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.action-btn i {
    width: 42px;
    height: 42px;
    background: rgba(91, 95, 199, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #8b8ff0;
    flex-shrink: 0;
}

.action-btn span {
    flex: 1;
}

.action-btn::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

/* URL Box */
.url-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(91, 95, 199, 0.3);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    word-break: break-all;
}

.url-box code {
    color: #8b8ff0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.copy-btn {
    background: rgba(91, 95, 199, 0.15);
    border: 1px solid rgba(91, 95, 199, 0.35);
    color: #8b8ff0;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(91, 95, 199, 0.28);
    border-color: var(--primary-blue);
    color: white;
}

/* Open in App buttons */
.app-open-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.app-open-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.app-open-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.app-open-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border-radius: 14px;
    border: 1px solid rgba(91, 95, 199, 0.2);
    background: rgba(91, 95, 199, 0.07);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.82rem;
    font-weight: 600;
}

.app-open-btn i {
    font-size: 1.6rem;
}

.app-open-btn.android i { color: #3ddc84; }
.app-open-btn.ios i     { color: #b0b0b0; }
.app-open-btn.pc i      { color: #8b8ff0; }

.app-open-btn:hover {
    background: rgba(91, 95, 199, 0.18);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 25px;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Instruction Steps */
.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: white;
}

.step-content h4 {
    margin-bottom: 5px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Pricing Compare */
.pricing-compare {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.current-subscription {
    margin-bottom: 30px;
}

.current-subscription h3,
.upgrade-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.subscription-card {
    background: rgba(91, 95, 199, 0.08);
    border: 1px solid var(--primary-blue);
    border-radius: 12px;
    padding: 24px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.card-price {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.card-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.card-features .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-features .feature i {
    color: #10b981;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.auto-renewal {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 8px;
}

.pricing-card-small {
    background: rgba(91, 95, 199, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.pricing-card-small h4 {
    margin-bottom: 10px;
}

.price-small {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    color: var(--primary-blue);
}

.price-info {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Month toggle */
.months-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.month-btn {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-btn.active,
.month-btn:hover {
    background: rgba(91, 95, 199, 0.25);
    border-color: var(--primary-blue);
    color: var(--text-main);
}

/* Device addon section */
.device-addon-section {
    margin-top: 30px;
}

.device-addon-section h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}

.addon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(91, 95, 199, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
}

.addon-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(91, 95, 199, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.addon-info {
    flex: 1;
}

.addon-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}

.addon-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.addon-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.addon-price {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--primary-blue);
}

/* Other Actions */
.other-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    background: rgba(91, 95, 199, 0.1);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: inherit;
}

.action-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 8px 24px rgba(91, 95, 199, 0.2);
    transform: translateY(-4px);
}

.action-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.action-card h3 {
    margin-bottom: 10px;
}

.action-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Purchase History */
.purchase-history {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.purchase-history h3 {
    margin-bottom: 20px;
}

.history-table {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.history-row {
    display: grid;
    grid-template-columns: 120px 1fr 120px 120px;
    gap: 20px;
    padding: 15px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.history-row:last-child {
    border-bottom: none;
}

.history-row.header {
    background: rgba(91, 95, 199, 0.1);
    font-weight: 600;
}

.history-row .col {
    display: flex;
    align-items: center;
}

.history-row .date {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ============================================
   PRICING STYLES
   ============================================ */

.pricing-single {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pricing-single .pricing-card {
    max-width: 500px;
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .section-center {
        padding: 0 40px;
    }

    .section {
        padding: 80px 40px;
    }

    .hero {
        padding: 100px 40px;
        padding-top: calc(100px + 60px);
    }

    .hero-wrapper {
        gap: 40px;
    }

    .hero-left h1 {
        font-size: 2.8rem;
    }

    .hero-icon {
        font-size: 150px;
    }

    .cabinet-container {
        padding: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-center {
        padding: 0 30px;
    }

    .section {
        padding: 60px 30px;
    }

    .hero {
        padding: 80px 30px;
        padding-top: calc(80px + 50px);
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-left h1 {
        font-size: 2.2rem;
    }

    .hero-right {
        order: -1;
    }

    .hero-icon {
        font-size: 120px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-medium {
        width: 100%;
    }

    .cabinet-container {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        padding-top: calc(76px + 16px);
    }

    .cabinet-sidebar {
        position: static;
        background: transparent;
        border: none;
        backdrop-filter: none;
        padding: 0;
    }

    .sidebar-menu {
        flex-direction: row;
        gap: 0;
        background: var(--glass-bg);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 5px;
    }

    .sidebar-item {
        flex: 1;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 10px 6px;
        border-radius: 12px;
        font-size: 0.72rem;
        gap: 4px;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        text-align: center;
    }

    .sidebar-item i {
        font-size: 1.1rem;
    }

    .sidebar-item.active {
        background: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(91, 95, 199, 0.4);
    }

    .cabinet-content {
        padding: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .history-row.header {
        display: none;
    }

    .history-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 14px;
    }

    .history-row .col.description {
        grid-column: 1 / -1;
        font-weight: 600;
        color: var(--text-main);
    }

    .history-row .col.date {
        font-size: 0.85rem;
    }

    .history-row .col.status {
        text-align: right;
        justify-content: flex-end;
    }

    .tab-header h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .subscription-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .section-center {
        padding: 0 20px;
    }

    .section {
        padding: 40px 20px;
    }

    .hero {
        padding: 40px 20px;
        padding-top: calc(40px + 50px);
    }

    .hero-left h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 20px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-small {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .btn-medium {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .cabinet-container {
        padding: 12px;
        padding-top: calc(76px + 12px);
    }

    .cabinet-content {
        padding: 16px;
    }

    .auth-box {
        padding: 24px 20px;
    }

    .success-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
    }

    .success-icon {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .success-message h3 {
        font-size: 1.1rem;
        text-align: center;
    }

    .success-message p {
        text-align: center;
        font-size: 0.9rem;
    }

    .hero-icon {
        font-size: 100px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .feature-card {
        padding: 25px 20px;
    }

    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .pricing-card {
        padding: 25px 20px;
    }

    .price {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .footer-section a {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .subscription-hero {
        padding: 25px 20px;
    }

    .subscription-hero h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .subscription-price {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .subscription-details {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 16px;
    }

    .detail-item {
        padding: 14px;
        border-radius: 14px;
    }

    .detail-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .tab-header h2 {
        font-size: 1.3rem;
    }
}

/* ============================================
   DEVICE CARDS
   ============================================ */

.device-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(91, 95, 199, 0.08);
    border: 1px solid rgba(91, 95, 199, 0.18);
    padding: 14px 16px;
    border-radius: 16px;
    transition: background 0.2s;
}

.device-card:hover {
    background: rgba(91, 95, 199, 0.13);
}

.device-card-icon {
    width: 42px;
    height: 42px;
    background: rgba(91, 95, 199, 0.22);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #8b8ff0;
    flex-shrink: 0;
}

.device-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.device-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.device-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.device-card-delete {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.device-card-delete:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Section header */
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 28px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 360px;
    pointer-events: all;
    animation: toastSlideIn 0.3s ease-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.toast.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.toast.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.toast.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fcd34d;
}

.toast i {
    font-size: 1rem;
    flex-shrink: 0;
}

.toast.hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

/* ============================================
   CUSTOM CONFIRM DIALOG
   ============================================ */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.confirm-box {
    background: #1a1a2e;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: scaleIn 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.confirm-box p {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

.confirm-btn-ok {
    background: var(--primary-blue);
    border: none;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.confirm-btn-ok:hover {
    background: var(--primary-purple);
}

/* ============================================
   REFERRAL TAB
   ============================================ */

.ref-code-display {
    font-size: clamp(1.1rem, 5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--accent, #8b8ff0);
    word-break: break-all;
}

.ref-link-display {
    font-size: 0.85rem;
    word-break: break-all;
    color: var(--text-muted);
}

.ref-share-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.ref-share-row .copy-btn {
    width: auto;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .ref-share-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ref-share-row .copy-btn {
        width: 100%;
    }
}

/* QR + share block */
.ref-share-block {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.ref-qr-wrap {
    background: rgba(91, 95, 199, 0.08);
    border: 1px solid rgba(139, 143, 240, 0.25);
    border-radius: 14px;
    padding: 14px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ref-qr-wrap img {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: 8px;
}

.ref-qr-hint {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
    text-align: center;
}

.ref-share-info {
    flex: 1;
    min-width: 180px;
}

.ref-share-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 6px;
}

@media (max-width: 560px) {
    .ref-share-block {
        flex-direction: column;
        align-items: center;
    }
    .ref-share-info {
        width: 100%;
    }
}

/* 4 tabs in mobile sidebar — shrink text on tiny screens */
@media (max-width: 380px) {
    .sidebar-item {
        font-size: 0.6rem;
        padding: 8px 3px;
    }

    .sidebar-item i {
        font-size: 1rem;
    }
}

/* ============================================
   AUTH INLINE ERROR BANNER
   ============================================ */

.auth-error-banner {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s ease-out;
}
