:root {
    --bg-color: #0d0d0d;
    --bg-gradient: linear-gradient(180deg, #0d0d0d, #1a1a2e);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #f0f0f0;
    --text-muted: #888888;
    --primary-color: #00b4d8;
    --primary-gradient: linear-gradient(90deg, #00b4d8, #0077b6);
    --secondary-color: #ff6b35;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --card-radius: 0;
    --transition-speed: 0.2s;

    /* Publisher Mode (Cyan/Blue) */
    --publisher-accent: #00b4d8;
    --publisher-gradient: linear-gradient(90deg, #00b4d8, #0077b6);
    --publisher-bg: rgba(0, 180, 216, 0.1);

    /* Advertiser Mode (Orange/Amber) */
    --advertiser-accent: #f59e0b;
    --advertiser-gradient: linear-gradient(90deg, #f59e0b, #d97706);
    --advertiser-bg: rgba(245, 158, 11, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

.container {
    max-width: none;
    margin: 0;
    padding: 20px 30px;
    width: 100%;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-header {
    background: rgba(15, 12, 41, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

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

.btn-outline:hover {
    background: var(--glass-border);
}

.hero-section {
    text-align: center;
    padding: 100px 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: 0;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* ===== Mode-Specific Styling ===== */

/* Publisher Mode */
body.mode-publisher .glass-header {
    border-bottom-color: var(--publisher-accent);
}

body.mode-publisher .btn-primary {
    background: var(--publisher-gradient);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

body.mode-publisher .glass-card {
    border-left: 4px solid var(--publisher-accent);
}

/* Advertiser Mode */
body.mode-advertiser .glass-header {
    border-bottom-color: var(--advertiser-accent);
}

body.mode-advertiser .btn-primary {
    background: var(--advertiser-gradient);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

body.mode-advertiser .glass-card {
    border-left: 4px solid var(--advertiser-accent);
}

body.mode-advertiser .logo span {
    color: var(--advertiser-accent) !important;
}