/* ==========================================================================
   EnotDLC Official Website Stylesheet
   Theme: Minimal Obsidian Dark with Subtle Purple Accents
   ========================================================================== */

:root {
    --bg-main: #0c0c11;
    --bg-card: #13131b;
    --bg-card-hover: #181824;
    --bg-input: #0e0e16;
    
    --accent-purple: #9333ea;
    --accent-purple-light: #a855f7;
    --accent-purple-glow: rgba(147, 51, 234, 0.25);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-card: rgba(255, 255, 255, 0.09);
    --border-focus: #9333ea;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition-fast: 0.15s ease;
    --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: #09090d;
}
::-webkit-scrollbar-thumb {
    background: #1f1f2e;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2e2e42;
}

/* Background Ambient Glows (Very subtle) */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.bg-glow-1 {
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: var(--accent-purple);
}

.bg-glow-2 {
    bottom: -150px;
    right: 10%;
    width: 500px;
    height: 400px;
    background: #6366f1;
}

.stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    font-family: 'Outfit', 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header & Navbar */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(12, 12, 17, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 36px;
    height: 36px;
    background: #181824;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.logo:hover .logo-badge {
    border-color: var(--accent-purple-light);
}

.logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.logo-img-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: #14141e;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #14141e;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 120px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.lang-selector.open .lang-dropdown {
    display: block;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-item:hover, .lang-item.active {
    background: #1e1e2d;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(147, 51, 234, 0.35);
}

.btn-glow {
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.25);
}

.btn-secondary {
    background: #181824;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #202030;
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.btn-auth {
    background: #1c1c28;
    border: 1px solid var(--border-card);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.88rem;
}

.btn-auth:hover {
    background: #242436;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: #1c1c28;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-xs {
    padding: 4px 10px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    padding: 100px 0 90px;
    position: relative;
    text-align: center;
}

.hero-container-centered {
    display: flex;
    justify-content: center;
}

.hero-content-centered {
    max-width: 780px;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ==================== ADVANTAGES SECTION ==================== */
.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: #1b1b28;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.feature-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==================== STATS SECTION ==================== */
.stats-section {
    padding: 40px 0 80px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: #1b1b28;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple-light);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-top: 4px;
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    padding: 80px 0 100px;
    border-top: 1px solid var(--border-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.pricing-card.popular {
    background: #161622;
    border: 1px solid rgba(168, 85, 247, 0.4);
    padding: 38px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.popular-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-purple);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 14px;
    border-radius: 50px;
}

.plan-header {
    margin-bottom: 20px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
    min-height: 38px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.price-currency {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.old-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 4px;
    font-weight: 500;
}

.price-val {
    font-size: 2.4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.price-period {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.discount-badge {
    display: inline-block;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    margin-left: auto;
    letter-spacing: 0.05em;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.plan-features li i {
    color: #10b981;
    font-size: 0.85rem;
}

.btn-plan-buy {
    width: 100%;
    background: #1a1a27;
    border: 1px solid var(--border-card);
    color: #ffffff;
}

.btn-plan-buy:hover {
    background: #242436;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==================== FOOTER ==================== */
.footer {
    background: #09090d;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-list a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: var(--transition-fast);
}

.footer-list a:hover {
    color: var(--text-primary);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: #14141e;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: #ffffff;
    background: #1f1f2e;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 22px 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== MODALS ==================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #13131b;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    padding: 34px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(20px) scale(0.97);
    transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #1c1c28;
    border: 1px solid var(--border-card);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #ffffff;
    background: #28283a;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Forms */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-wrapper input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 14px 12px 40px;
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-wrapper input:focus {
    border-color: var(--accent-purple);
}

.form-row-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.forgot-link {
    color: var(--accent-purple-light);
    font-size: 0.82rem;
}

.modal-switch-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.link-btn {
    background: none;
    border: none;
    color: var(--accent-purple-light);
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}

/* Support Channels */
.support-channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #161622;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.support-btn:hover {
    background: #1e1e2e;
    border-color: rgba(255, 255, 255, 0.2);
}

.support-btn i {
    font-size: 1.3rem;
    color: var(--accent-purple-light);
}

.sb-title {
    font-weight: 600;
    font-size: 0.92rem;
}

.sb-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    background: #14141e;
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.info { border-left: 4px solid var(--accent-purple); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Profile / Cabinet Specific */
.profile-card {
    max-width: 780px;
    padding: 32px;
}

.profile-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.profile-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    background: #101017;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
}

.profile-badge {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-val {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activate-row {
    padding: 10px 18px;
}

.activate-val {
    display: flex;
    gap: 10px;
}

.activate-val input {
    flex-grow: 1;
    background: #151520;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}

.activate-val input:focus {
    border-color: var(--accent-purple);
}

.badge-status {
    display: inline-block;
    background: #1e1e2d;
    border: 1px solid var(--border-card);
    color: #e2e8f0;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-action {
    background: #161622;
    border: 1px solid var(--border-card);
    color: #ffffff;
    padding: 12px;
    font-size: 0.86rem;
}

.btn-action:hover {
    background: #202030;
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-logout {
    color: #f87171;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
}

/* Responsive */
@media (max-width: 960px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.3rem;
    }
    .features-grid, .stats-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none;
    }
    .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .profile-actions-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}
