/* ===== Locket Gold Dashboard - Premium Dark Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: rgba(22, 27, 34, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent-gold: #f0b429;
    --accent-gold-glow: rgba(240, 180, 41, 0.3);
    --accent-green: #3fb950;
    --accent-green-glow: rgba(63, 185, 80, 0.25);
    --accent-red: #f85149;
    --accent-red-glow: rgba(248, 81, 73, 0.25);
    --accent-blue: #58a6ff;
    --accent-blue-glow: rgba(88, 166, 255, 0.25);
    --accent-purple: #bc8cff;
    --gradient-gold: linear-gradient(135deg, #f0b429, #f7931e, #ff6b00);
    --gradient-hero: linear-gradient(135deg, #0d1117 0%, #1a1e2e 50%, #0d1117 100%);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(240, 180, 41, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Animated Background ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(240, 180, 41, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(88, 166, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(188, 140, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--accent-gold);
    background: rgba(240, 180, 41, 0.1);
}

/* ===== Hero Section ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 180, 41, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(240, 180, 41, 0.1);
    border: 1px solid rgba(240, 180, 41, 0.2);
    color: var(--accent-gold);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-gold);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.tech-badge.python {
    color: #3572A5;
    border-color: rgba(53, 114, 165, 0.3);
    background: rgba(53, 114, 165, 0.1);
}

.tech-badge.telegram {
    color: #2CA5E0;
    border-color: rgba(44, 165, 224, 0.3);
    background: rgba(44, 165, 224, 0.1);
}

.tech-badge.async {
    color: var(--accent-green);
    border-color: rgba(63, 185, 80, 0.3);
    background: rgba(63, 185, 80, 0.1);
}

.tech-badge.sqlite {
    color: var(--accent-purple);
    border-color: rgba(188, 140, 255, 0.3);
    background: rgba(188, 140, 255, 0.1);
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ===== Bot Control Panel ===== */
.control-section {
    padding: 40px 0;
}

.control-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.control-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
}

.control-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.control-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-title h3 {
    font-size: 20px;
    font-weight: 700;
}

.control-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(240, 180, 41, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
}

.status-indicator.running {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.3);
    color: var(--accent-green);
}

.status-indicator.stopped {
    background: rgba(248, 81, 73, 0.1);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
}

.status-indicator .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.running .status-dot {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green-glow);
    animation: pulse 2s infinite;
}

.status-indicator.stopped .status-dot {
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
}

.control-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-start {
    background: var(--gradient-gold);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-gold-glow);
}

.btn-stop {
    background: rgba(248, 81, 73, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.btn-stop:hover:not(:disabled) {
    background: rgba(248, 81, 73, 0.25);
    transform: translateY(-2px);
}

.btn-refresh {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-refresh:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .spinner {
    display: inline-block;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

/* ===== Stats Grid ===== */
.stats-section {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.total::before {
    background: var(--gradient-gold);
}

.stat-card.success::before {
    background: linear-gradient(90deg, #3fb950, #56d364);
}

.stat-card.fail::before {
    background: linear-gradient(90deg, #f85149, #ff7b72);
}

.stat-card.users::before {
    background: linear-gradient(90deg, #58a6ff, #79c0ff);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card.total .stat-icon {
    background: rgba(240, 180, 41, 0.12);
}

.stat-card.success .stat-icon {
    background: rgba(63, 185, 80, 0.12);
}

.stat-card.fail .stat-icon {
    background: rgba(248, 81, 73, 0.12);
}

.stat-card.users .stat-icon {
    background: rgba(88, 166, 255, 0.12);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card.total .stat-value {
    color: var(--accent-gold);
}

.stat-card.success .stat-value {
    color: var(--accent-green);
}

.stat-card.fail .stat-value {
    color: var(--accent-red);
}

.stat-card.users .stat-value {
    color: var(--accent-blue);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Features Grid ===== */
.features-section {
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(20px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Commands Table ===== */
.commands-section {
    padding: 40px 0;
}

.commands-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
}

.commands-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.commands-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.commands-table tr:last-child td {
    border-bottom: none;
}

.commands-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.commands-table code {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(240, 180, 41, 0.1);
    color: var(--accent-gold);
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
}

.cmd-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmd-badge.user {
    background: rgba(88, 166, 255, 0.12);
    color: var(--accent-blue);
}

.cmd-badge.admin {
    background: rgba(240, 180, 41, 0.12);
    color: var(--accent-gold);
}

/* ===== Log Viewer ===== */
.log-section {
    padding: 40px 0;
}

.log-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.log-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.log-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-content {
    padding: 16px 20px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-all;
}

.log-content::-webkit-scrollbar {
    width: 6px;
}

.log-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.log-line {
    color: var(--text-secondary);
}

.log-line.success {
    color: var(--accent-green);
}

.log-line.error {
    color: var(--accent-red);
}

.log-line.warning {
    color: var(--accent-gold);
}

.log-line.info {
    color: var(--accent-blue);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: 40px;
}

.footer p {
    color: var(--text-muted);
    font-size: 13px;
}

.footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===== Toast Notification ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    min-width: 280px;
}

.toast.success {
    border-color: rgba(63, 185, 80, 0.3);
    color: var(--accent-green);
}

.toast.error {
    border-color: rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
}

.toast.info {
    border-color: rgba(88, 166, 255, 0.3);
    color: var(--accent-blue);
}

/* ===== Animations ===== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(30px);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Activation Section ===== */
.activate-section {
    padding: 20px 0 60px;
}

.activate-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 36px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.activate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-gold);
}

.activate-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.activate-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(240, 180, 41, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.activate-header h2 {
    font-size: 22px;
    font-weight: 800;
}

.activate-header p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    min-width: 250px;
}

.input-wrapper:focus-within {
    border-color: var(--accent-gold);
    box-shadow: inset 0 0 0 1px var(--accent-gold), 0 0 15px var(--accent-gold-glow);
}

.input-prefix {
    padding: 14px 0 14px 16px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
}

.input-wrapper input {
    flex: 1;
    padding: 14px 16px 14px 4px;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.btn-gold {
    background: var(--gradient-gold);
    color: #000;
    font-weight: 700;
    padding: 14px 32px;
    box-shadow: 0 4px 20px var(--accent-gold-glow);
    white-space: nowrap;
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-gold-glow);
}

.btn-gold:active:not(:disabled) {
    transform: translateY(0);
}

/* Terminal */
.terminal {
    margin-top: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #0a0e14;
    animation: fadeInUp 0.3s ease;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot-red,
.dot-yellow,
.dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #f85149;
}

.dot-yellow {
    background: #f0b429;
}

.dot-green {
    background: #3fb950;
}

.terminal-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.terminal-body {
    padding: 16px;
    max-height: 280px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.7;
}

.terminal-body::-webkit-scrollbar {
    width: 5px;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.term-line {
    color: var(--text-secondary);
    animation: fadeInUp 0.15s ease;
}

.term-line.success {
    color: var(--accent-green);
    font-weight: 600;
}

.term-line.error {
    color: var(--accent-red);
}

.term-line.warning {
    color: var(--accent-gold);
}

.term-line.info {
    color: var(--accent-blue);
}

/* Result Cards */
.result-card {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-sm);
    text-align: center;
    animation: fadeInUp 0.4s ease;
}

.success-result {
    background: rgba(63, 185, 80, 0.08);
    border: 1px solid rgba(63, 185, 80, 0.25);
}

.fail-result {
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.25);
}

.result-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.result-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.success-result h3 {
    color: var(--accent-green);
}

.fail-result h3 {
    color: var(--accent-red);
}

.result-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* DNS Guide */
.dns-guide {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(240, 180, 41, 0.06);
    border: 1px solid rgba(240, 180, 41, 0.2);
    text-align: left;
}

.dns-guide h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
    text-align: center;
}

.dns-warning {
    text-align: center;
    color: var(--accent-red) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-bottom: 16px !important;
    padding: 8px;
    background: rgba(248, 81, 73, 0.08);
    border-radius: 6px;
}

.dns-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dns-option {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    text-align: center;
}

.dns-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.dns-option h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.btn-ios {
    display: inline-flex;
    padding: 10px 20px;
    background: rgba(88, 166, 255, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(88, 166, 255, 0.3);
    font-size: 13px;
}

.btn-ios:hover {
    background: rgba(88, 166, 255, 0.25);
    transform: translateY(-1px);
}

.dns-code {
    display: block;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: 6px;
    color: var(--accent-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-bottom: 8px;
    word-break: break-all;
}

.btn-copy {
    padding: 6px 16px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-copy:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.dns-note {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    margin-top: 8px !important;
}

/* ===== Success Modal Popup ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(63, 185, 80, 0.3);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 60px rgba(63, 185, 80, 0.15),
        0 25px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3fb950, #56d364, #f0b429, #3fb950);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: rgba(248, 81, 73, 0.15);
    border-color: rgba(248, 81, 73, 0.3);
    color: var(--accent-red);
    transform: rotate(90deg);
}

.modal-confetti {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.modal-confetti span {
    position: absolute;
    font-size: 20px;
    animation: confettiFall 2.5s ease-in-out infinite;
}

.modal-confetti span:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.modal-confetti span:nth-child(2) {
    left: 30%;
    animation-delay: 0.4s;
}

.modal-confetti span:nth-child(3) {
    left: 50%;
    animation-delay: 0.8s;
}

.modal-confetti span:nth-child(4) {
    left: 70%;
    animation-delay: 1.2s;
}

.modal-confetti span:nth-child(5) {
    left: 90%;
    animation-delay: 1.6s;
}

@keyframes confettiFall {
    0% {
        top: -10%;
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }

    100% {
        top: 110%;
        opacity: 0;
        transform: rotate(720deg) scale(0.5);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    position: relative;
    z-index: 1;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--accent-green);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(63, 185, 80, 0.3);
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid rgba(63, 185, 80, 0.25);
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.modal-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 2s infinite;
}

.modal-dns-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.4s ease 0.3s both;
}

.modal-note {
    font-size: 12px;
    color: var(--accent-red);
    font-weight: 600;
    margin-top: 12px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.4s ease 0.5s both;
}

/* DNS Section */
.dns-section {
    margin-top: 24px;
    animation: fadeInUp 0.4s ease;
}

/* ===== User Info Card ===== */
.user-info-card {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    align-items: center;
    animation: fadeInUp 0.4s ease;
}

.user-avatar-wrap {
    flex-shrink: 0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    object-fit: cover;
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.user-avatar-default {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 900;
    color: #000;
    box-shadow: 0 0 20px var(--accent-gold-glow);
    text-transform: uppercase;
}

.avatar-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: avatarSpin 0.8s linear infinite;
}

@keyframes avatarSpin {
    to {
        transform: rotate(360deg);
    }
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    min-width: 100px;
}

.meta-value {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.uid-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-blue);
    background: rgba(88, 166, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.gold-active {
    color: var(--accent-green);
    font-weight: 700;
}

.gold-inactive {
    color: var(--text-muted);
    font-weight: 500;
}

.gold-expires {
    font-size: 12px;
    color: var(--text-muted);
}

/* Step 2 Actions */
.step2-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.step2-actions .btn-gold {
    flex: 1;
    justify-content: center;
}

/* Check Error */
.check-error {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(248, 81, 73, 0.08);
    border: 1px solid rgba(248, 81, 73, 0.2);
    color: var(--accent-red);
    font-size: 14px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .control-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .commands-table th:last-child,
    .commands-table td:last-child {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .activate-card {
        padding: 24px;
    }

    .input-group {
        flex-direction: column;
    }

    .input-wrapper {
        min-width: 100%;
    }

    .dns-options {
        grid-template-columns: 1fr;
    }

    .user-info-card {
        flex-direction: column;
        text-align: center;
    }

    .meta-item {
        flex-direction: column;
        gap: 4px;
    }

    .step2-actions {
        flex-direction: column;
    }

    .modal-content {
        padding: 36px 24px;
        border-radius: 20px;
        margin: 16px;
    }

    .modal-icon {
        font-size: 48px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-dns-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .control-actions {
        flex-direction: column;
        width: 100%;
    }


    .btn {
        width: 100%;
        justify-content: center;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* ===== Contact Floating Menu ===== */
.contact-fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0084ff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.4);
    transition: var(--transition);
    padding: 10px;
}

.fab-btn:hover {
    transform: scale(1.1);
    background: #0073e6;
    box-shadow: 0 0 25px rgba(0, 132, 255, 0.6);
}

/* Removed CSS hover opening to prioritize click-to-toggle and fix mobile sticky hover issues */

.fab-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.contact-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    width: 260px;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-card);
    display: none;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: none;
    transform-origin: bottom left;
    pointer-events: none;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Bridge the gap for hover */
.contact-menu::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 60px;
    height: 20px;
    background: transparent;
}

.contact-menu.show {
    display: block;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-menu-header {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 4px;
}

.contact-item:hover {
    background: var(--bg-glass);
    transform: translateX(5px);
}

.contact-item img {
    width: 24px;
    height: 24px;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
}

.contact-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: none;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.contact-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .contact-fab {
        bottom: 15px;
        left: 15px;
    }

    .fab-btn {
        width: 42px;
        height: 42px;
    }
}