/* Professional OSINT Dashboard - Premium Dark Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --bg-main: #0f1117;
    --bg-elevated: #1a1d29;
    --bg-card: #20232f;
    --bg-hover: #282b38;
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    
    --border-subtle: #2d3142;
    --border-medium: #3d4152;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    transition: width 0.3s ease;
}

/* Collapsed sidebar (for results pages) */
.sidebar-collapsed .sidebar {
    width: 70px;
}
.sidebar-collapsed .sidebar .logo-text,
.sidebar-collapsed .sidebar .logo-subtext,
.sidebar-collapsed .sidebar .nav-item span:not(.nav-icon),
.sidebar-collapsed .sidebar .nav-section-title,
.sidebar-collapsed .sidebar .online-admins {
    display: none;
}
.sidebar-collapsed .sidebar .logo-wrapper {
    justify-content: center;
}
.sidebar-collapsed .sidebar .nav-item {
    justify-content: center;
    padding: 12px;
}
.sidebar-collapsed .main-content {
    margin-left: 70px;
}

.sidebar-header {
    padding: 28px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.logo-icon svg {
    color: white;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 16px;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 28px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 12px 10px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

/* Online Admins */
.online-admins {
    padding: 0 12px;
}

.admin-loading,
.admin-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: var(--text-tertiary);
    font-size: 13px;
}

.admin-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.admin-item.online {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.2);
}

.admin-item.offline {
    opacity: 0.6;
}

.admin-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.admin-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-sidebar);
}

.status-online {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-offline {
    background: #ef4444;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
    }
}

.admin-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.admin-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-crown {
    font-size: 0.9em;
    opacity: 0.95;
}

.admin-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.admin-item.online .admin-label {
    color: #10b981;
}

/* Attack Hub Page */
.attack-hub-content {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 28px;
    margin-top: 28px;
}

.attack-panel,
.manage-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}

.attack-panel::before,
.manage-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.15);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(6, 182, 212, 0.03));
    position: relative;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.3), transparent);
}

.panel-header svg {
    color: var(--accent);
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.3));
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: 0.3px;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

/* Attack Form */
.attack-form {
    padding: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.form-group input::placeholder,
.form-group select option:first-child {
    color: rgba(148, 163, 184, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%2306b6d4' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 48px;
}

.form-group select option {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
    padding: 10px;
}

.btn-start {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(6, 182, 212, 0.5);
}

.btn-start:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.btn-start svg {
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

/* Manage Attacks Panel */
.attacks-table-container {
    overflow-x: auto;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.attacks-table-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.attacks-table {
    width: 100%;
    border-collapse: collapse;
}

.attacks-table thead {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
    backdrop-filter: blur(10px);
    z-index: 10;
}

.attacks-table th {
    padding: 18px 24px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.attacks-table td {
    padding: 18px 24px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(6, 182, 212, 0.08);
    font-weight: 500;
}

.attacks-table tbody tr {
    transition: all 0.2s;
}

.attacks-table tbody tr:hover {
    background: rgba(6, 182, 212, 0.05);
    transform: scale(1.01);
}

.attacks-table .no-attacks td {
    text-align: center;
    color: var(--text-secondary);
    padding: 60px 20px;
    font-style: italic;
}

.method-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.time-remaining {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 700;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-main);
}

/* Top Bar */
.topbar {
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(26, 29, 41, 0.9);
}

.topbar-left h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.back-link:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.credits-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(139, 92, 246, 0.1));
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid var(--border-medium);
}

.credits-badge-dual {
    gap: 6px;
}

.credits-badge-dual .credits-sep {
    opacity: 0.6;
    font-weight: 300;
}

.credits-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.credits-text {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.plan-badge svg {
    width: 16px;
    height: 16px;
    color: #a78bfa;
}

.plan-text {
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Content Area */
.content-area {
    padding: 40px;
    max-width: 1600px;
}

/* Dashboard Header */
.page-header {
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 800px;
    line-height: 1.7;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}

/* Messages */
.messages {
    margin-bottom: 32px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: #67e8f9;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.alert-close:hover {
    opacity: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-wrapper svg {
    color: var(--primary);
}

.stat-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.stat-badge.positive {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.stat-badge.neutral {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-tertiary);
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Search Section */
.search-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 28px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.tab-badge {
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.search-box-wrapper {
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    border-radius: 14px;
    padding: 6px;
    transition: all 0.3s;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    margin-left: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 14px 8px;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-button {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-glow);
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

.search-button:active {
    transform: translateY(0);
}

/* Activity Section */
.activity-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 36px;
}

.activity-empty {
    text-align: center;
    padding: 60px 20px;
}

.activity-icon {
    width: 48px;
    height: 48px;
    opacity: 0.2;
    margin: 0 auto 20px;
    display: block;
    color: var(--text-tertiary);
}

.activity-empty p {
    color: var(--text-tertiary);
    font-size: 15px;
}

/* Results Page */
.results-header {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px 28px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.query-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.query-value {
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Accordion Cards */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.accordion-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.accordion-card.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: var(--bg-hover);
}

.accordion-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.accordion-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.accordion-icon-box svg {
    color: white;
}

.accordion-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.accordion-badge {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.v2-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.more-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

.accordion-toggle {
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card.active .accordion-toggle {
    transform: rotate(180deg);
}

.action-btn svg {
    flex-shrink: 0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-card.active .accordion-body {
    max-height: 3000px;
}

.accordion-content {
    padding: 0 28px 28px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 28px;
}

.fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.field-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 18px;
    transition: all 0.2s;
}

.field-item:hover {
    border-color: var(--border-medium);
}

.field-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.field-value {
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    line-height: 1.6;
}

/* Sensitive Data */
/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-glow);
}

.action-btn.primary:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
}

.action-btn.success {
    background: var(--success);
    border-color: transparent;
    color: white;
}

/* Settings Pages */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.settings-card-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.settings-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.settings-card-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.settings-card-body {
    padding: 28px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Admin form (Manage User on Billing) */
.admin-form-card .settings-card-body { padding: 28px; }
.admin-form-section { margin-bottom: 28px; }
.admin-form-section:last-of-type { margin-bottom: 0; }
.admin-form-section-divider {
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.admin-form-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: end;
}
.admin-form-row-sm {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    align-items: start;
}
.admin-form-row-sm .form-group label {
    min-height: 2.6em;
    display: block;
}
.admin-form-user { min-width: 0; }
.admin-get-plan-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.admin-get-plan-row .form-input { flex: 1; min-width: 0; }
.admin-form-plan { min-width: 160px; }
.admin-form-credits { min-width: 120px; }
@media (max-width: 900px) {
    .admin-form-row { grid-template-columns: 1fr 1fr; }
    .admin-form-credits { grid-column: span 1; }
}
@media (max-width: 560px) {
    .admin-form-row { grid-template-columns: 1fr; }
}

.admin-checkbox-wrap { margin-bottom: 16px; }
.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    user-select: none;
}
.admin-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}
.admin-attack-config {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}
.admin-attack-config .form-group { margin-bottom: 20px; }
.admin-attack-config .form-group:last-child { margin-bottom: 0; }
.admin-method-tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}
.admin-form-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    margin-bottom: 0;
}
.admin-form-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}
.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}
.admin-form-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 10px;
}

.badge-primary {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.stat-item-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.plan-info {
    margin-bottom: 24px;
}

.plan-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.plan-price {
    font-size: 16px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-description {
    font-size: 14px;
    color: var(--text-secondary);
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-item svg {
    color: var(--success);
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state p {
    color: var(--text-tertiary);
    font-size: 14px;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.api-key-display code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.api-key-badge {
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.toggle-item:last-child {
    border-bottom: none;
}

.toggle-info {
    flex: 1;
}

.toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toggle-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.toggle-switch {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-tertiary);
}

.toggle-switch.enabled {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
    border-color: var(--primary);
    color: var(--primary);
}

.security-status {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
}

.security-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.security-description {
    font-size: 13px;
    color: var(--text-secondary);
}

/* IP Lookup Map Styles */
.map-container {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    height: 500px;
}

#map {
    width: 100%;
    height: 100%;
}

.geo-info-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
}

.geo-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.geo-icon-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.geo-icon-box svg {
    color: white;
}

.geo-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.geo-badge {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geo-fields-vertical {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.geo-field-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-radius: 8px;
    transition: all 0.2s;
}

.geo-field-row:hover {
    background: var(--bg-hover);
}

.geo-field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 180px;
    flex-shrink: 0;
}

.geo-field-value {
    font-size: 15px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    word-break: break-all;
    flex: 1;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.leaflet-popup-tip {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

/* Status Cards Row */
.status-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.status-card-header svg {
    color: var(--primary);
}

.status-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Weather Card */
.weather-temp {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.weather-condition {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.weather-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.weather-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.weather-detail svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Ping Card */
.ping-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ping-status.online {
    color: var(--success);
}

.ping-status.offline {
    color: var(--error);
}

.ping-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ping-indicator.active {
    background: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    animation: pulse-green 2s infinite;
}

.ping-indicator.inactive {
    background: var(--error);
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.ping-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Security Card */
.security-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
}

.security-item.clean {
    color: var(--text-secondary);
}

.security-item.flagged {
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.05);
}

.security-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.security-indicator.inactive {
    background: var(--text-tertiary);
    opacity: 0.3;
}

.security-indicator.active {
    background: var(--warning);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* Network Analysis Section */
.network-analysis-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
}

.section-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.section-title-bar svg {
    color: var(--primary);
}

.section-title-bar h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.network-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.network-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
}

.network-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.network-card-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.badge-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* Ports List */
.ports-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.port-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
}

.port-number {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.port-service {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.info-value {
    font-size: 13px;
    color: var(--text-primary);
    text-align: right;
    word-break: break-word;
}

/* Abuse Reports */
.network-card.abuse-high {
    border-color: rgba(239, 68, 68, 0.4);
}

.abuse-score {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    flex-shrink: 0;
}

.score-circle.low {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.score-circle.medium {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.score-circle.high {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.score-value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.score-circle.low .score-value {
    color: var(--success);
}

.score-circle.medium .score-value {
    color: var(--warning);
}

.score-circle.high .score-value {
    color: var(--error);
}

.score-label {
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-weight: 600;
}

.abuse-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.abuse-stat {
    display: flex;
    flex-direction: column;
}

.abuse-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.abuse-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.abuse-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.abuse-badge.whitelisted {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

/* Discord Profile Styles */
.discord-profile-section {
    max-width: 1100px;
    margin: 0 auto;
}

.discord-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
}

.discord-profile-content {
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.discord-avatar-wrapper {
    flex-shrink: 0;
}

.discord-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: var(--bg-elevated);
    display: block;
}

.discord-default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5865f2;
    color: white;
}

.discord-bot-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: #5865f2;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.discord-profile-info {
    margin-top: 8px;
}

.discord-username {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.discord-handle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.discord-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.discord-badge {
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.discord-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.discord-info-grid .info-card:nth-child(3) {
    grid-column: 1 / -1;
}
@media (max-width: 900px) {
    .discord-info-grid { grid-template-columns: 1fr; }
    .discord-info-grid .info-card:nth-child(3) { grid-column: 1; }
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.info-card-header svg {
    color: var(--primary);
}

.info-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.info-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 11px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

/* Discord IPDB matches section */
.discord-ipdb-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}
.ipdb-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.ipdb-section-title svg {
    color: var(--primary);
}
.ipdb-file-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
}
.ipdb-file-card:last-child { margin-bottom: 0; }
.ipdb-file-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    font-family: ui-monospace, monospace;
}
.ipdb-match-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ipdb-match-item {
    padding: 10px 12px;
    background: var(--bg-main);
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
}
.ipdb-match-item:last-child { margin-bottom: 0; }
.ipdb-match-meta {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}
.ipdb-snippet {
    font-size: 12px;
    font-family: ui-monospace, monospace;
    color: var(--text-secondary);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}
.ipdb-ip-table {
    margin-top: 12px;
}
.ip-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
    border-radius: 10px;
    overflow: hidden;
}
.ip-table thead {
    background: var(--bg-main);
}
.ip-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 700;
}
.ip-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
}
.ip-table tbody tr:last-child {
    border-bottom: none;
}
.ip-table tbody tr:hover {
    background: var(--bg-hover);
}
.ip-table td {
    padding: 12px 16px;
    font-size: 13px;
}
.ip-cell {
    font-family: ui-monospace, monospace;
    color: var(--primary);
    font-weight: 600;
}
.count-cell {
    color: var(--text-secondary);
    text-align: right;
    font-weight: 600;
}

/* IPDB Index Table */
.ipdb-index-table {
    width: 100%;
    border-collapse: collapse;
}
.ipdb-index-table thead {
    background: var(--bg-main);
    border-bottom: 2px solid var(--border-subtle);
}
.ipdb-index-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 700;
}
.ipdb-index-table tbody tr {
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.2s;
}
.ipdb-index-table tbody tr:last-child {
    border-bottom: none;
}
.ipdb-index-table tbody tr:hover {
    background: var(--bg-hover);
}
.ipdb-index-table td {
    padding: 14px 20px;
    font-size: 13px;
}
.discord-id-cell {
    font-family: ui-monospace, monospace;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
}
.action-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.action-btn-small:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}
.action-btn-small svg {
    flex-shrink: 0;
}

/* Login Page */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0a0e1a;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.login-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}

.login-messages {
    padding: 16px 32px;
    background: rgba(17, 24, 39, 0.5);
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
}

.login-alert svg {
    flex-shrink: 0;
}

.login-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.login-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.login-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.login-brand {
    text-align: center;
    padding: 48px 32px 32px;
}

.login-logo-wrapper {
    margin-bottom: 24px;
}

.login-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
    position: relative;
}

.login-logo::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(12px);
}

.login-logo svg {
    color: white;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f1f5f9;
    letter-spacing: -0.5px;
}

.login-tagline {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    margin: 0 32px;
}

.login-form-section {
    padding: 32px 32px 40px;
}

.login-heading {
    font-size: 18px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 8px;
    text-align: center;
}

.login-description {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 32px;
    text-align: center;
    line-height: 1.5;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.discord-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.5);
}

.discord-btn:hover::before {
    opacity: 1;
}

.discord-btn:active {
    transform: translateY(0);
}

.discord-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    flex-shrink: 0;
}

.discord-btn-text {
    flex: 1;
    text-align: left;
}

.discord-btn-arrow {
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.discord-btn:hover .discord-btn-arrow {
    transform: translateX(4px);
}

.login-footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 12px;
    color: #64748b;
}

.login-footer-text svg {
    opacity: 0.6;
}

/* Login Background */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.login-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.login-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: float 15s ease-in-out infinite;
}

.login-gradient-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.login-gradient-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    bottom: -250px;
    left: -250px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* User Menu in Topbar */
.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--bg-hover);
    color: var(--error);
    border-color: var(--error);
}

/* Responsive */
@media (max-width: 1200px) {
    .fields-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .geo-field-label {
        width: 140px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
    
    .geo-field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .geo-field-label {
        width: 100%;
    }
    
    .status-cards-row,
    .network-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .abuse-score {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .main-content {
        margin-left: 70px;
    }
    
    .logo-text,
    .logo-subtext,
    .nav-section-title,
    .nav-item span:not(.nav-icon) {
        display: none;
    }
    
    .sidebar-header {
        padding: 20px 12px;
    }
    
    .content-area {
        padding: 24px 20px;
    }
    
    .topbar {
        padding: 16px 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .fields-grid {
        grid-template-columns: 1fr;
    }
    
    .user-menu {
        flex-wrap: wrap;
        gap: 8px;
    }

    .user-info {
        flex-direction: row;
        gap: 8px;
    }

    .credits-badge,
    .plan-badge {
        padding: 8px 12px;
        font-size: 13px;
    }

    .credits-text,
    .plan-text {
        font-size: 13px;
    }

    .login-brand {
        padding: 36px 24px 24px;
    }

    .login-form-section {
        padding: 24px 24px 32px;
    }

    .login-messages {
        padding: 16px 24px;
    }

    .login-gradient-1,
    .login-gradient-2 {
        width: 400px;
        height: 400px;
    }

    .attack-hub-content {
        grid-template-columns: 1fr;
    }

    .attacks-table-container {
        max-height: 400px;
    }

    .discord-profile-content {
        padding: 20px;
        flex-wrap: wrap;
    }

    .discord-avatar {
        width: 100px;
        height: 100px;
    }

    .discord-username {
        font-size: 22px;
    }

    .discord-handle {
        font-size: 14px;
    }

    .discord-info-grid {
        grid-template-columns: 1fr;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .info-value {
        text-align: left;
    }
}

/* ========== Plans & Pricing Page ========== */
.plans-page {
    max-width: 1200px;
    margin: 0 auto;
}

.plans-hero {
    text-align: center;
    margin-bottom: 48px;
}

.plans-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-title .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plans-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 400;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

@media (max-width: 1024px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.plan-card-featured {
    border-color: rgba(99, 102, 241, 0.4);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--bg-card) 40%);
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.plan-card-featured:hover {
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.plan-badge-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 20px;
}

.plan-card-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.plan-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 2px;
}

.plan-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
}

.plan-amount {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-period {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 4px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-feature-icon {
    font-size: 16px;
    opacity: 0.9;
}

.plan-cta {
    display: block;
    width: 100%;
    margin-top: auto;
    text-align: center;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
    cursor: pointer;
    font-family: inherit;
}

button.plan-cta {
    margin: 0;
}

.plan-cta:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}

.plan-cta-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    color: #fff;
}

.plan-cta-primary:hover {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
    border: none;
    opacity: 0.95;
}

/* Add-ons */
.addons-section {
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

.addons-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.addons-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .addons-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .addons-grid {
        grid-template-columns: 1fr;
    }
}

.addon-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: border-color 0.2s;
}

.addon-card:hover {
    border-color: var(--border-medium);
}

.addon-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.addon-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.addon-price {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
}

/* Buy modal */
.buy-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, visibility 0.2s;
}

.buy-modal.buy-modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.buy-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.buy-modal-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.buy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.buy-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.buy-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
    margin: -4px -4px -4px 0;
}

.buy-modal-close:hover {
    color: var(--text-primary);
}

.buy-modal-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.buy-modal-url-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.buy-modal-url {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 13px;
    font-family: ui-monospace, monospace;
}

.buy-modal-copy {
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
}

.buy-modal-copy:hover {
    opacity: 0.9;
}

.buy-modal-open-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.buy-modal-open-link:hover {
    text-decoration: underline;
}

.buy-modal-redeem {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.buy-modal-redeem-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.buy-modal-redeem-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.buy-modal-code-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 14px;
}

.buy-modal-redeem-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    color: #fff;
    cursor: pointer;
}

.buy-modal-redeem-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.buy-modal-redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buy-modal-redeem-status {
    font-size: 13px;
    margin: 0;
    min-height: 20px;
}

.buy-modal-redeem-status-success {
    color: #10b981;
    font-weight: 600;
}

.buy-modal-redeem-status-error {
    color: #ef4444;
}

.addon-buy {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border: none;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    font-family: inherit;
}

.addon-buy:hover {
    opacity: 0.9;
    color: #fff;
}
