@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --cyan-900: #164e63;
    --cyan-300: #67e8f9;
    --bg-black: #000405;
    --sidebar-bg: #03080a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Premium Background Effects --- */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% -20%, rgba(6, 182, 212, 0.15), transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(8, 145, 178, 0.05), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(to right, var(--cyan-400), var(--cyan-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--cyan-400);
}

.btn-premium {
    background: #fff;
    color: #000;
    padding: 10px 24px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-cyan {
    background: var(--cyan-500);
    color: #000;
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.3);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--cyan-400) 0%, var(--cyan-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 48px;
}

/* --- Section Title --- */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* --- Pricing Grid --- */
.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.card.popular {
    border-color: rgba(99, 102, 241, 0.3);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card .price {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 32px;
}

.card .price span {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Feature Locking */
.locked-feature {
    filter: grayscale(1);
    cursor: not-allowed !important;
    position: relative;
    opacity: 0.4 !important;
}

.locked-feature::after {
    content: '\f023';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 5px;
    right: 5px;
}

/* Profile Cards */
.profile-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.profile-card.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--cyan-500);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.1);
}

.card-avatar {
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--glass-border);
}

.card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    /* Classic MC look */
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-host {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.5px;
}

.profile-card .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    box-shadow: 0 0-5px rgba(0, 0, 0, 0.5);
}

.profile-card .status-dot.online {
    background: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Tab Navigation Styles */
.tab-nav {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-radius: 12px;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.tab-btn.active {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
}

/* Tab Content Visibility */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

/* Settings Grid Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.input-field:focus {
    border-color: var(--cyan-500);
    background: rgba(6, 182, 212, 0.05);
}

/* Whitelist Tags */
.whitelist-tag {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
}

.whitelist-tag i {
    cursor: pointer;
    font-size: 12px;
    opacity: 0.6;
    transition: 0.2s;
}

.whitelist-tag i:hover {
    opacity: 1;
    color: #ff4d4d;
}

/* Terminal Command Input */
.terminal-input-wrap {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    background: #0a0a0a;
    border: 1px solid var(--glass-border);
    padding: 8px 12px;
    border-radius: 12px;
}

.terminal-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ddd;
    outline: none;
    font-size: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.terminal-input-wrap button {
    background: var(--cyan-600);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    transition: 0.2s;
}

.terminal-input-wrap button:hover {
    background: var(--cyan-500);
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 15px;
}

.feature-list li i {
    color: var(--cyan-400);
}

.card .btn-card {
    width: 100%;
    padding: 16px;
    border-radius: 18px;
    border: none;
    background: var(--cyan-500);
    color: #000;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4);
}

.card .btn-card:hover {
    background: var(--cyan-400);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.6);
}


/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* Premium Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: none;
    /* Changed from flex */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* Increased from 9999 */
}

.modal-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    width: 100%;
    max-width: 480px;
    padding: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header i {
    font-size: 40px;
    color: var(--cyan-400);
    margin-bottom: 15px;
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 800;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-select {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.modal-select option {
    background: #111;
    color: #fff;
}

.modal-footer {
    display: flex;
    gap: 12px;
}

.modal-footer .sidebar-btn {
    flex: 1;
    padding: 15px;
    font-size: 14px;
}

/* --- NEW Auth Container (Dual Cards) --- */
.auth-container {
    display: flex;
    gap: 30px;
    align-items: stretch;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    margin-top: 40px;
}

.auth-card {
    background: rgba(20, 20, 20, 0.4);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 32px;
    width: 100%;
    max-width: 440px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.auth-card.login {
    border-top: 3px solid var(--cyan-600);
}

.auth-card.register {
    border-top: 3px solid var(--cyan-500);
}

.auth-card h2 {
    font-size: 52px;
    /* Increased from 42px */
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1.5px;
}

.auth-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 14px;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 20px;
}

.icon-box.login {
    background: rgba(8, 145, 178, 0.1);
    color: var(--cyan-400);
}

.icon-box.register {
    background: rgba(6, 182, 212, 0.1);
    color: var(--cyan-400);
}

.btn-auth-cyan-dark {
    background: linear-gradient(135deg, var(--cyan-600), #0e3c46);
    color: #fff;
    padding: 22px;
    /* Increased padding */
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 20px;
    /* Increased from 18px */
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(8, 145, 178, 0.3);
    transition: var(--transition);
}

.btn-auth-cyan-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(8, 145, 178, 0.5);
}

.btn-auth-cyan {
    background: linear-gradient(135deg, var(--cyan-500), #164e63);
    color: #fff;
    padding: 22px;
    /* Increased padding */
    border-radius: 16px;
    border: none;
    font-weight: 800;
    font-size: 20px;
    /* Increased from 18px */
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.3);
    transition: var(--transition);
}

.btn-auth-cyan:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px rgba(6, 182, 212, 0.5);
}

.auth-msg {
    margin-top: 15px;
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

.auth-msg.error {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.2);
}

.auth-msg.success {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* --- Dashboard Stat Grid --- */
.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.1);
    padding: 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.stat-box h5 {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.stat-box .value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.stat-box .sub {
    font-size: 11px;
    font-weight: 600;
}

.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Sidebar Specifics */
.sidebar-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.sidebar-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
}

.sidebar-input-wrap {
    background: rgba(6, 182, 212, 0.03);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 18px;
}

.sidebar-input-wrap input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 17px;
    outline: none;
}

.sidebar-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.sidebar-btn {
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-btn.cyan {
    background: linear-gradient(135deg, var(--cyan-600), #032127);
    color: #fff;
}

.sidebar-btn.dark {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-footer {
    position: absolute;
    bottom: 30px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}

/* Empty State Polish */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
}

.empty-icon-ring {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: var(--cyan-500);
}

.log-view {
    background: #080808;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    height: 500px;
    padding: 30px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.5;
    overflow-y: auto;
    color: #ddd;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.pricing-container {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Admin Summon Button Styles */
.admin-users-panel {
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    z-index: 100;
}

.admin-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 10px;
    transition: var(--transition);
}

.admin-user-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-user-name {
    font-size: 14px;
    font-weight: 700;
}

.admin-user-bots {
    font-size: 11px;
    color: var(--text-secondary);
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-summon {
    background: rgba(8, 145, 178, 0.1);
    color: var(--cyan-400);
    border: 1px solid rgba(8, 145, 178, 0.2);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-summon:hover {
    background: var(--cyan-600);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(8, 145, 178, 0.4);
}

.admin-user-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.admin-user-badge.online {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

/* Observer Mode Styles */
.footer-restricted {
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
    font-weight: 700;
}

.guest-notice {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    font-size: 13px;
    color: #ff9800;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

/* Admin Management Tab Styles */
.admin-user-item {
    transition: var(--transition);
    border: 1px solid var(--glass-border) !important;
}

.admin-user-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(6, 182, 212, 0.3) !important;
    transform: translateX(5px);
}

#admin-unused-licenses-tab::-webkit-scrollbar {
    width: 4px;
}

#admin-unused-licenses-tab::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}