/* ========================================
   ABNER DUARTE PLATFORM - DESIGN SYSTEM v2
   Black/White/Gray AI-Inspired
   ======================================== */

:root {
    /* Sidebar - Dark Navy/Black */
    --ad-sidebar-bg: #0a0f1a;
    --ad-sidebar-width: 260px;
    --ad-sidebar-text: #94a3b8;
    --ad-sidebar-active: #1e293b;
    --ad-sidebar-active-text: #ffffff;
    --ad-sidebar-hover: #0f172a;
    --ad-sidebar-border: rgba(255,255,255,0.06);
    --ad-sidebar-group-color: #64748b;

    /* Content Area */
    --ad-content-bg: #f1f5f9;
    --ad-card-bg: #ffffff;
    --ad-card-border: #e2e8f0;
    --ad-text-primary: #0f172a;
    --ad-text-secondary: #475569;
    --ad-text-muted: #94a3b8;

    /* Primary - AI Blue */
    --ad-primary: #3b82f6;
    --ad-primary-dark: #2563eb;
    --ad-primary-light: #dbeafe;
    --ad-primary-hover: #1d4ed8;

    /* Semantic Colors */
    --ad-success: #10b981;
    --ad-success-bg: #d1fae5;
    --ad-warning: #f59e0b;
    --ad-warning-bg: #fef3c7;
    --ad-danger: #ef4444;
    --ad-danger-bg: #fee2e2;
    --ad-info: #06b6d4;
    --ad-info-bg: #cffafe;

    /* Shadows */
    --ad-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --ad-shadow: 0 1px 3px 0 rgba(0,0,0,0.08), 0 1px 2px 0 rgba(0,0,0,0.04);
    --ad-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
    --ad-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);

    /* Radius */
    --ad-radius: 8px;
    --ad-radius-sm: 6px;
    --ad-radius-lg: 12px;
    --ad-radius-xl: 16px;

    /* Transitions */
    --ad-transition: all 0.2s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--ad-content-bg); color: var(--ad-text-primary); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ========================================
   ADMIN LAYOUT - FIXED SIDEBAR
   ======================================== */
.ad-wrapper {
    display: flex;
    min-height: 100vh;
}

.ad-sidebar {
    width: var(--ad-sidebar-width);
    background: var(--ad-sidebar-bg);
    color: var(--ad-sidebar-text);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--ad-sidebar-border);
}

.ad-sidebar::-webkit-scrollbar { width: 4px; }
.ad-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.ad-sidebar-brand {
    padding: 20px 20px;
    border-bottom: 1px solid var(--ad-sidebar-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.ad-sidebar-brand-icon {
    width: 36px; height: 36px;
    background: var(--ad-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.ad-sidebar-brand-text {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.ad-sidebar-nav {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
    min-height: 0;
}

.ad-sidebar-group {
    padding: 20px 20px 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--ad-sidebar-group-color);
}

.ad-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--ad-sidebar-text);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--ad-transition);
    white-space: nowrap;
    border-left: 3px solid transparent;
    position: relative;
}

.ad-sidebar-link:hover {
    background: var(--ad-sidebar-hover);
    color: #e2e8f0;
}

.ad-sidebar-link.active {
    background: var(--ad-sidebar-active);
    color: var(--ad-sidebar-active-text);
    border-left-color: var(--ad-primary);
}

.ad-sidebar-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ad-sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--ad-sidebar-border);
    flex-shrink: 0;
}

.ad-sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ad-sidebar-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.ad-sidebar-user-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.ad-sidebar-user-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-sidebar-user-role {
    font-size: 11px;
    color: var(--ad-sidebar-group-color);
}

.ad-main {
    flex: 1;
    margin-left: var(--ad-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   HEADER
   ======================================== */
.ad-header {
    background: var(--ad-card-bg);
    border-bottom: 1px solid var(--ad-card-border);
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.ad-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ad-text-primary);
}

.ad-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--ad-radius);
    font-size: 13px;
    font-weight: 500;
    transition: var(--ad-transition);
    border: 1px solid transparent;
}

.ad-header-btn:hover { background: var(--ad-content-bg); }

.ad-header-btn-primary {
    background: var(--ad-primary);
    color: #fff;
    border-color: var(--ad-primary);
}

.ad-header-btn-primary:hover { background: var(--ad-primary-hover); }

/* ========================================
   CONTENT
   ======================================== */
.ad-content {
    flex: 1;
    padding: 28px;
}

.ad-content-header {
    margin-bottom: 24px;
}

.ad-content-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ad-text-primary);
    margin: 0 0 4px;
}

.ad-content-subtitle {
    font-size: 13px;
    color: var(--ad-text-muted);
}

/* ========================================
   CARDS
   ======================================== */
.ad-card {
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius-lg);
    box-shadow: var(--ad-shadow-sm);
    transition: var(--ad-transition);
}

.ad-card:hover { box-shadow: var(--ad-shadow-md); }

.ad-card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--ad-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-card-header-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ad-text-primary);
}

.ad-card-body {
    padding: 22px;
}

.ad-card-body-padded { padding: 22px; }

/* Stat Cards */
.ad-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.ad-stat-card {
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius-lg);
    padding: 20px 22px;
    box-shadow: var(--ad-shadow-sm);
    transition: var(--ad-transition);
}

.ad-stat-card:hover {
    box-shadow: var(--ad-shadow-md);
    transform: translateY(-1px);
}

.ad-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ad-text-muted);
    margin-bottom: 8px;
}

.ad-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ad-text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.ad-stat-change {
    font-size: 12px;
    font-weight: 500;
}

.ad-stat-change.up { color: var(--ad-success); }
.ad-stat-change.down { color: var(--ad-danger); }

.ad-stat-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.ad-stat-icon.blue { background: var(--ad-primary-light); color: var(--ad-primary); }
.ad-stat-icon.green { background: var(--ad-success-bg); color: var(--ad-success); }
.ad-stat-icon.orange { background: var(--ad-warning-bg); color: var(--ad-warning); }
.ad-stat-icon.red { background: var(--ad-danger-bg); color: var(--ad-danger); }
.ad-stat-icon.cyan { background: var(--ad-info-bg); color: var(--ad-info); }
.ad-stat-icon.gray { background: #f1f5f9; color: #64748b; }

/* ========================================
   TABLES
   ======================================== */
.ad-table-container {
    overflow-x: auto;
    border-radius: var(--ad-radius-lg);
    border: 1px solid var(--ad-card-border);
    background: var(--ad-card-bg);
}

.ad-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.ad-table thead th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ad-text-secondary);
    border-bottom: 1px solid var(--ad-card-border);
    white-space: nowrap;
}

.ad-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--ad-text-primary);
    vertical-align: middle;
}

.ad-table tbody tr:hover td {
    background: #f8fafc;
}

.ad-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   BADGES
   ======================================== */
.ad-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.ad-badge-blue { background: var(--ad-primary-light); color: var(--ad-primary-dark); }
.ad-badge-green { background: var(--ad-success-bg); color: #047857; }
.ad-badge-orange { background: var(--ad-warning-bg); color: #b45309; }
.ad-badge-red { background: var(--ad-danger-bg); color: #b91c1c; }
.ad-badge-gray { background: #f1f5f9; color: #475569; }
.ad-badge-purple { background: #ede9fe; color: #6d28d9; }

/* ========================================
   BUTTONS
   ======================================== */
.ad-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--ad-radius);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--ad-transition);
    white-space: nowrap;
}

.ad-btn-primary {
    background: var(--ad-primary);
    color: #fff;
    border-color: var(--ad-primary);
}

.ad-btn-primary:hover {
    background: var(--ad-primary-hover);
    border-color: var(--ad-primary-hover);
}

.ad-btn-secondary {
    background: #fff;
    color: var(--ad-text-primary);
    border-color: var(--ad-card-border);
}

.ad-btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ad-btn-danger {
    background: var(--ad-danger);
    color: #fff;
    border-color: var(--ad-danger);
}

.ad-btn-danger:hover {
    background: #dc2626;
}

.ad-btn-success {
    background: var(--ad-success);
    color: #fff;
    border-color: var(--ad-success);
}

.ad-btn-sm { padding: 6px 12px; font-size: 12px; }
.ad-btn-xs { padding: 4px 8px; font-size: 11px; }

/* ========================================
   FORMS
   ======================================== */
.ad-form-group {
    margin-bottom: 18px;
}

.ad-form-label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ad-text-primary);
    margin-bottom: 6px;
}

.ad-form-input,
.ad-form-select,
.ad-form-textarea {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius);
    font-size: 13.5px;
    color: var(--ad-text-primary);
    background: var(--ad-card-bg);
    transition: var(--ad-transition);
    font-family: inherit;
}

.ad-form-input:focus,
.ad-form-select:focus,
.ad-form-textarea:focus {
    outline: none;
    border-color: var(--ad-primary);
    box-shadow: 0 0 0 3px var(--ad-primary-light);
}

.ad-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.ad-form-hint {
    font-size: 11.5px;
    color: var(--ad-text-muted);
    margin-top: 4px;
}

.ad-form-error {
    font-size: 12px;
    color: var(--ad-danger);
    margin-top: 4px;
}

.ad-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
}

/* ========================================
   ALERTS
   ======================================== */
.ad-alert {
    padding: 14px 18px;
    border-radius: var(--ad-radius);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.ad-alert-success { background: var(--ad-success-bg); color: #065f46; border-color: #a7f3d0; }
.ad-alert-error { background: var(--ad-danger-bg); color: #991b1b; border-color: #fecaca; }
.ad-alert-warning { background: var(--ad-warning-bg); color: #92400e; border-color: #fde68a; }
.ad-alert-info { background: var(--ad-info-bg); color: #155e75; border-color: #a5f3fc; }

/* ========================================
   TABS
   ======================================== */
.ad-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--ad-card-border);
    margin-bottom: 24px;
}

.ad-tab {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ad-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--ad-transition);
    white-space: nowrap;
}

.ad-tab:hover { color: var(--ad-text-primary); }
.ad-tab.active {
    color: var(--ad-primary);
    border-bottom-color: var(--ad-primary);
}

/* ========================================
   PAGINATION
   ======================================== */
.ad-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    font-size: 13px;
}

.ad-pagination-links {
    display: flex;
    gap: 4px;
}

.ad-pagination-links a,
.ad-pagination-links span {
    padding: 6px 12px;
    border-radius: var(--ad-radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: var(--ad-transition);
}

.ad-pagination-links a {
    color: var(--ad-text-primary);
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
}

.ad-pagination-links a:hover {
    background: var(--ad-primary);
    color: #fff;
    border-color: var(--ad-primary);
}

.ad-pagination-links span.current {
    background: var(--ad-primary);
    color: #fff;
}

/* ========================================
   DROPDOWNS
   ======================================== */
.ad-dropdown {
    position: relative;
    display: inline-block;
}

.ad-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-lg);
    min-width: 180px;
    padding: 6px 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

.ad-dropdown:hover .ad-dropdown-menu,
.ad-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ad-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    color: var(--ad-text-primary);
    transition: var(--ad-transition);
    white-space: nowrap;
}

.ad-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--ad-primary);
}

.ad-dropdown-divider {
    height: 1px;
    background: var(--ad-card-border);
    margin: 6px 0;
}

/* ========================================
   PUBLIC HEADER
   ======================================== */
.ad-public-header {
    background: #fff;
    border-bottom: 1px solid var(--ad-card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.ad-public-topbar {
    background: var(--ad-sidebar-bg);
    color: var(--ad-sidebar-text);
    padding: 8px 0;
    font-size: 12px;
}

.ad-public-topbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-public-topbar a {
    color: var(--ad-sidebar-text);
    transition: color 0.2s;
}

.ad-public-topbar a:hover { color: #fff; }

.ad-public-navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ad-public-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--ad-text-primary);
    letter-spacing: -0.5px;
}

.ad-public-logo span {
    color: var(--ad-primary);
}

.ad-public-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.ad-public-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--ad-text-secondary);
    transition: color 0.2s;
    position: relative;
}

.ad-public-nav-link:hover,
.ad-public-nav-link.active {
    color: var(--ad-primary);
}

.ad-public-nav-dropdown {
    position: relative;
}

.ad-public-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius);
    box-shadow: var(--ad-shadow-lg);
    min-width: 200px;
    padding: 8px 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

.ad-public-nav-dropdown:hover .ad-public-nav-dropdown-menu,
.ad-public-nav-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ad-public-nav-dropdown-item {
    display: block;
    padding: 8px 18px;
    font-size: 13.5px;
    color: var(--ad-text-primary);
    transition: all 0.15s;
}

.ad-public-nav-dropdown-item:hover {
    background: #f1f5f9;
    color: var(--ad-primary);
}

/* ========================================
   PUBLIC FOOTER
   ======================================== */
.ad-public-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 0;
}

.ad-public-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.ad-public-footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.ad-public-footer-desc {
    font-size: 13.5px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.ad-public-footer-heading {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.ad-public-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ad-public-footer-links li {
    margin-bottom: 10px;
}

.ad-public-footer-links a {
    font-size: 13.5px;
    color: #94a3b8;
    transition: color 0.2s;
}

.ad-public-footer-links a:hover { color: #fff; }

.ad-public-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 40px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

/* Brand logos in footer */
.ad-footer-brands {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    justify-content: center;
    flex-wrap: wrap;
}

.ad-footer-brand-logo {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s, filter 0.3s;
    filter: grayscale(100%);
    opacity: 0.7;
}

.ad-footer-brand-logo:hover {
    color: #e2e8f0;
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.ad-hero {
    background: var(--ad-sidebar-bg);
    color: #fff;
    padding: 100px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ad-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 60%, rgba(16,185,129,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.ad-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.ad-hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.ad-hero-title span {
    color: var(--ad-primary);
}

.ad-hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 32px;
}

.ad-hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.ad-hero-btn {
    padding: 13px 32px;
    border-radius: var(--ad-radius);
    font-size: 15px;
    font-weight: 600;
    transition: var(--ad-transition);
}

.ad-hero-btn-primary {
    background: var(--ad-primary);
    color: #fff;
}

.ad-hero-btn-primary:hover { background: var(--ad-primary-hover); }

.ad-hero-btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.2);
}

.ad-hero-btn-secondary:hover { background: rgba(255,255,255,0.05); }

/* ========================================
   SECTIONS
   ======================================== */
.ad-section {
    padding: 80px 24px;
}

.ad-section-alt {
    background: #f8fafc;
}

.ad-section-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ad-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.ad-section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--ad-text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.ad-section-subtitle {
    font-size: 16px;
    color: var(--ad-text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   GRIDS
   ======================================== */
.ad-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.ad-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ========================================
   SERVICE CARDS
   ======================================== */
.ad-service-card {
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius-lg);
    padding: 32px;
    transition: var(--ad-transition);
    text-align: left;
}

.ad-service-card:hover {
    box-shadow: var(--ad-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--ad-primary);
}

.ad-service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--ad-radius);
    background: var(--ad-primary-light);
    color: var(--ad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.ad-service-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--ad-text-primary);
    margin-bottom: 10px;
}

.ad-service-desc {
    font-size: 14px;
    color: var(--ad-text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.ad-service-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ad-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ad-service-link:hover { color: var(--ad-primary-hover); }

/* ========================================
   PACKAGE CARDS
   ======================================== */
.ad-package-card {
    background: var(--ad-card-bg);
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius-xl);
    padding: 36px 30px;
    transition: var(--ad-transition);
    position: relative;
    text-align: center;
}

.ad-package-card:hover {
    box-shadow: var(--ad-shadow-lg);
    transform: translateY(-4px);
}

.ad-package-card.featured {
    border-color: var(--ad-primary);
    box-shadow: 0 0 0 1px var(--ad-primary);
}

.ad-package-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ad-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 0 0 8px 8px;
}

.ad-package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-package-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--ad-text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.ad-package-period {
    font-size: 13px;
    color: var(--ad-text-muted);
    margin-bottom: 24px;
}

.ad-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    text-align: left;
}

.ad-package-features li {
    padding: 8px 0;
    font-size: 13.5px;
    color: var(--ad-text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.ad-package-features li:last-child { border-bottom: none; }

.ad-package-features li i {
    color: var(--ad-success);
    font-size: 12px;
}

/* ========================================
   PIPELINE BOARD
   ======================================== */
.ad-pipeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    overflow-x: auto;
}

.ad-pipeline-column {
    background: #f8fafc;
    border-radius: var(--ad-radius);
    padding: 12px;
    min-width: 180px;
}

.ad-pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ad-card-border);
}

.ad-pipeline-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ad-pipeline-count {
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 9999px;
}

.ad-pipeline-card {
    background: #fff;
    border: 1px solid var(--ad-card-border);
    border-radius: var(--ad-radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--ad-transition);
}

.ad-pipeline-card:hover {
    box-shadow: var(--ad-shadow);
    border-color: var(--ad-primary);
}

.ad-pipeline-card-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.ad-pipeline-card-meta {
    font-size: 11px;
    color: var(--ad-text-muted);
}

/* ========================================
   AUTH PAGES
   ======================================== */
.ad-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ad-sidebar-bg);
    padding: 24px;
}

.ad-auth-card {
    background: var(--ad-card-bg);
    border-radius: var(--ad-radius-xl);
    box-shadow: var(--ad-shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
}

.ad-auth-logo {
    text-align: center;
    margin-bottom: 28px;
}

.ad-auth-logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--ad-text-primary);
}

.ad-auth-logo-text span { color: var(--ad-primary); }

.ad-auth-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
}

.ad-auth-subtitle {
    font-size: 13.5px;
    color: var(--ad-text-muted);
    text-align: center;
    margin-bottom: 28px;
}

.ad-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13.5px;
    color: var(--ad-text-secondary);
}

.ad-auth-footer a {
    color: var(--ad-primary);
    font-weight: 600;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.ad-empty {
    text-align: center;
    padding: 48px 24px;
}

.ad-empty-icon {
    font-size: 48px;
    color: var(--ad-text-muted);
    margin-bottom: 16px;
    opacity: 0.5;
}

.ad-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ad-text-primary);
    margin-bottom: 6px;
}

.ad-empty-text {
    font-size: 13.5px;
    color: var(--ad-text-muted);
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .ad-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .ad-sidebar.open { transform: translateX(0); }
    .ad-main { margin-left: 0; }
    .ad-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .ad-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ad-pipeline { grid-template-columns: repeat(4, 1fr); }
    .ad-public-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ad-content { padding: 16px; }
    .ad-header { padding: 0 16px; }
    .ad-stat-grid { grid-template-columns: 1fr; }
    .ad-grid-4,
    .ad-grid-3,
    .ad-grid-2 { grid-template-columns: 1fr; }
    .ad-form-grid { grid-template-columns: 1fr; }
    .ad-pipeline { grid-template-columns: repeat(2, 1fr); }
    .ad-hero { padding: 60px 16px; }
    .ad-hero-title { font-size: 32px; }
    .ad-section { padding: 50px 16px; }
    .ad-section-title { font-size: 24px; }
    .ad-public-navbar { padding: 0 16px; }
    .ad-public-nav { display: none; }
    .ad-public-footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .ad-public-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ========================================
   UTILITIES
   ======================================== */
.ad-flex { display: flex; }
.ad-flex-col { flex-direction: column; }
.ad-items-center { align-items: center; }
.ad-justify-between { justify-content: space-between; }
.ad-gap-2 { gap: 8px; }
.ad-gap-3 { gap: 12px; }
.ad-gap-4 { gap: 16px; }
.ad-mb-4 { margin-bottom: 16px; }
.ad-mt-4 { margin-top: 16px; }
.ad-w-full { width: 100%; }
.ad-text-right { text-align: right; }
.ad-text-center { text-align: center; }
.ad-text-sm { font-size: 12.5px; }
.ad-text-xs { font-size: 11.5px; }
.ad-font-medium { font-weight: 500; }
.ad-font-semibold { font-weight: 600; }
.ad-text-muted { color: var(--ad-text-muted); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
