/* ============================================
   Aitoolsify.com — Premium Dark Theme
   Pure CSS — No frameworks needed
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-950: #0a0a0a;
    --bg-900: #171717;
    --bg-800: #262626;
    --bg-700: #404040;
    --text-white: #ffffff;
    --text-100: #f5f5f5;
    --text-300: #d4d4d4;
    --text-400: #a3a3a3;
    --text-500: #737373;
    --border: rgba(255,255,255,0.1);
    --border-hover: rgba(255,255,255,0.2);
    --indigo: #818cf8;
    --indigo-dark: #4f46e5;
    --indigo-bg: rgba(99,102,241,0.1);
    --pink: #f472b6;
    --pink-bg: rgba(244,114,182,0.1);
    --blue: #60a5fa;
    --blue-bg: rgba(96,165,250,0.1);
    --green: #4ade80;
    --green-bg: rgba(74,222,128,0.1);
    --yellow: #facc15;
    --yellow-bg: rgba(250,204,21,0.1);
    --amber: #fb923c;
    --red: #f87171;
    --radius: 16px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    --transition: all 0.2s ease;
    --max-width: 1280px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-950);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: rgba(99,102,241,0.3); }

/* ---- Container ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(10,10,10,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 0 16px; display: flex;
    align-items: center; justify-content: space-between;
    height: 64px;
}
.navbar-logo img { height: 32px; width: auto; transition: transform 0.2s; }
.navbar-logo:hover img { transform: scale(1.05); }
.navbar-links { display: none; align-items: center; gap: 8px; }
.navbar-links a {
    color: var(--text-300); padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.navbar-links a:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.navbar-divider { width: 1px; height: 24px; background: var(--border); margin: 0 8px; }
.navbar-cta {
    background: var(--text-white); color: #000; padding: 8px 16px;
    border-radius: var(--radius-full); font-size: 14px; font-weight: 600;
    transition: var(--transition); border: none;
}
.navbar-cta:hover { background: #e5e5e5; }
.navbar-mobile-btn {
    display: flex; background: none; border: none; color: var(--text-400);
    padding: 8px; border-radius: var(--radius-sm);
}
.navbar-mobile-btn:hover { color: var(--text-white); background: var(--bg-800); }
.navbar-mobile-btn svg { width: 24px; height: 24px; }
.mobile-menu {
    display: none; background: var(--bg-950);
    border-bottom: 1px solid var(--border); padding: 8px;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
    display: block; color: var(--text-300); padding: 10px 12px;
    border-radius: var(--radius-sm); font-size: 16px; font-weight: 500;
}
.mobile-menu a:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }

@media (min-width: 768px) {
    .navbar-links { display: flex; }
    .navbar-mobile-btn { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 128px 0 80px; text-align: center;
    position: relative; overflow: hidden;
}
.hero-glow {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 1000px; height: 500px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.2), transparent 70%);
    pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    font-size: 14px; color: var(--text-300); margin-bottom: 32px;
}
.hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
    letter-spacing: -0.025em; margin-bottom: 24px; line-height: 1.1;
    background: linear-gradient(to bottom, #fff, #737373);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h1 .accent { -webkit-text-fill-color: var(--indigo); }
.hero p {
    max-width: 640px; margin: 0 auto 40px; font-size: 18px;
    color: var(--text-400); line-height: 1.7;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; background: var(--text-white); color: #000;
    border-radius: var(--radius-full); font-weight: 600; font-size: 16px;
    transition: var(--transition); border: none;
}
.hero-cta:hover { background: #e5e5e5; transform: scale(1.05); }
.hero-cta svg { width: 16px; height: 16px; transition: transform 0.2s; }
.hero-cta:hover svg { transform: translateX(4px); }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }
.section-alt { background: rgba(23,23,23,0.3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 16px; }
.section-header p { color: var(--text-400); max-width: 560px; margin: 0 auto; }

.section-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 40px;
}
.section-title-row .title-group { display: flex; align-items: center; gap: 12px; }
.section-title-row .icon-box {
    padding: 8px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
}
.section-title-row .icon-box.pink { background: var(--pink-bg); color: var(--pink); }
.section-title-row .icon-box.blue { background: var(--blue-bg); color: var(--blue); }
.section-title-row h2 { font-size: 1.5rem; font-weight: 700; }
.section-title-row .view-all {
    color: var(--text-400); font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 4px; transition: var(--transition);
}
.section-title-row .view-all:hover { color: var(--text-white); }

/* ============================================
   CARDS (Tool Cards)
   ============================================ */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
}
.card:hover { border-color: rgba(99,102,241,0.5); box-shadow: 0 25px 50px rgba(99,102,241,0.1); }
.card-image {
    aspect-ratio: 16/9; width: 100%; position: relative;
    overflow: hidden; flex-shrink: 0;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image .placeholder {
    width: 100%; height: 100%; display: flex;
    align-items: center; justify-content: center;
}
.card-image .placeholder span {
    font-size: 3.75rem; font-weight: 900; color: rgba(255,255,255,0.3);
}
.card-badge {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    color: #fff; font-size: 10px; font-weight: 500;
    padding: 4px 8px; border-radius: var(--radius-full);
    text-transform: uppercase;
}
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-category {
    font-size: 12px; font-weight: 500; color: var(--indigo);
    background: var(--indigo-bg); padding: 4px 8px; border-radius: 4px;
}
.card-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 700; color: var(--yellow);
}
.card-rating svg { width: 12px; height: 12px; fill: currentColor; }
.card-title {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 8px;
    transition: var(--transition);
}
.card:hover .card-title { color: var(--indigo); }
.card-excerpt { font-size: 14px; color: var(--text-400); margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-link {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.6);
    display: flex; align-items: center; gap: 4px; margin-top: auto;
    transition: var(--transition);
}
.card:hover .card-link { color: var(--text-white); }

/* Gradient placeholders */
.gradient-indigo-purple { background: linear-gradient(135deg, #6366f1, #a855f7); }
.gradient-pink-rose { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.gradient-emerald-teal { background: linear-gradient(135deg, #10b981, #14b8a6); }
.gradient-amber-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-blue-cyan { background: linear-gradient(135deg, #3b82f6, #06b6d4); }

.from-indigo.to-purple { background: linear-gradient(135deg, #6366f1, #a855f7); }
.from-pink.to-rose { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.from-emerald.to-teal { background: linear-gradient(135deg, #10b981, #14b8a6); }
.from-amber.to-orange { background: linear-gradient(135deg, #f59e0b, #f97316); }
.from-blue.to-cyan { background: linear-gradient(135deg, #3b82f6, #06b6d4); }

/* ============================================
   CATEGORY SLIDER
   ============================================ */
.category-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }

.category-card {
    text-align: center; padding: 24px 16px;
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius); transition: var(--transition);
}
.category-card:hover { border-color: var(--indigo); transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.category-card .name { font-size: 14px; font-weight: 600; }

/* ============================================
   BLOG ARCHIVE LAYOUT
   ============================================ */
.blog-layout { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) { .blog-layout { flex-direction: row; } }

.blog-sidebar { width: 100%; flex-shrink: 0; }
@media (min-width: 1024px) { .blog-sidebar { width: 240px; } }

.blog-sidebar h3 {
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-white); margin-bottom: 16px;
}
.sidebar-links { display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: block; padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: 14px; color: var(--text-400); transition: var(--transition);
}
.sidebar-link:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: var(--indigo); background: var(--indigo-bg); font-weight: 500; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    font-size: 12px; padding: 4px 8px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    border-radius: 4px; color: var(--text-400);
}

.blog-main { flex: 1; min-width: 0; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; transition: var(--transition);
}
.pagination a { background: var(--bg-900); border: 1px solid var(--border); color: var(--text-400); }
.pagination a:hover { border-color: var(--indigo); color: var(--text-white); }
.pagination .active {
    background: var(--indigo-dark); border: 1px solid var(--indigo);
    color: var(--text-white);
}
.pagination .dots { color: var(--text-500); border: none; background: none; }
.pagination .prev, .pagination .next { width: auto; padding: 0 16px; }

/* ============================================
   SINGLE POST
   ============================================ */
.post-hero { padding: 128px 0 48px; }
.post-hero .category-badge {
    display: inline-block; font-size: 12px; font-weight: 500;
    color: var(--indigo); background: var(--indigo-bg);
    padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: 16px;
}
.post-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
    line-height: 1.2; margin-bottom: 16px;
}
.post-meta { display: flex; align-items: center; gap: 16px; color: var(--text-400); font-size: 14px; }
.post-meta .author { font-weight: 500; color: var(--text-white); }

.post-content {
    max-width: 768px; margin: 0 auto; padding: 48px 16px 80px;
    font-size: 17px; line-height: 1.8; color: var(--text-300);
}
.post-content h2 { font-size: 1.75rem; font-weight: 700; color: var(--text-white); margin: 48px 0 16px; }
.post-content h3 { font-size: 1.375rem; font-weight: 600; color: var(--text-white); margin: 32px 0 12px; }
.post-content p { margin-bottom: 20px; }
.post-content ul, .post-content ol { margin-bottom: 20px; padding-left: 24px; }
.post-content li { margin-bottom: 8px; }
.post-content strong { color: var(--text-white); font-weight: 600; }
.post-content a { color: var(--indigo); border-bottom: 1px solid rgba(129,140,248,0.3); }
.post-content a:hover { border-bottom-color: var(--indigo); }
.post-content img { border-radius: var(--radius-sm); margin: 24px 0; }
.post-content pre {
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 20px; overflow-x: auto;
    margin: 24px 0; font-size: 14px;
}
.post-content code { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.9em; }
.post-content table {
    width: 100%; border-collapse: collapse; margin: 24px 0;
}
.post-content th, .post-content td {
    padding: 12px 16px; border: 1px solid var(--border);
    text-align: left; font-size: 14px;
}
.post-content th { background: var(--bg-900); font-weight: 600; color: var(--text-white); }

/* Pros & Cons */
.pros-cons { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 32px 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: repeat(2, 1fr); } }
.pros-box, .cons-box {
    padding: 24px; border-radius: var(--radius); border: 1px solid var(--border);
}
.pros-box { background: rgba(74,222,128,0.05); border-color: rgba(74,222,128,0.2); }
.cons-box { background: rgba(248,113,113,0.05); border-color: rgba(248,113,113,0.2); }
.pros-box h3 { color: var(--green); margin-bottom: 16px; font-size: 16px; }
.cons-box h3 { color: var(--red); margin-bottom: 16px; font-size: 16px; }
.pros-box li, .cons-box li { font-size: 14px; margin-bottom: 8px; list-style: none; padding-left: 20px; position: relative; }
.pros-box li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.cons-box li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Verdict Box */
.verdict-box {
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; margin: 48px 0;
    text-align: center;
}
.verdict-score {
    font-size: 3rem; font-weight: 900;
    background: linear-gradient(135deg, var(--indigo), var(--pink));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.verdict-label { font-size: 14px; color: var(--text-400); margin-top: 8px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
    padding: 128px 0 80px; text-align: center;
    position: relative; overflow: hidden;
}
.about-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 800px; height: 800px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(99,102,241,0.1), transparent 70%);
    pointer-events: none; z-index: 0;
}
.about-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
    background: linear-gradient(to bottom, #fff, #a3a3a3);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; margin-bottom: 32px; position: relative; z-index: 1;
}
.about-hero p { max-width: 640px; margin: 0 auto; font-size: 1.25rem; color: var(--text-400); position: relative; z-index: 1; }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
    background: var(--bg-900); border: 1px solid var(--border);
    padding: 32px; border-radius: var(--radius); transition: var(--transition);
}
.feature-card:hover { background: var(--bg-800); }
.feature-card .icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-400); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 32px; position: relative; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--bg-900); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px; font-size: 2rem; box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-400); }

.team-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card {
    background: var(--bg-950); border: 1px solid rgba(255,255,255,0.05);
    padding: 24px; border-radius: var(--radius); display: flex; align-items: center; gap: 16px;
}
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-800); flex-shrink: 0; }
.team-card h3 { font-weight: 700; }
.team-card .role { font-size: 12px; color: var(--indigo); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.team-card p { font-size: 14px; color: var(--text-500); }

.faq-list { max-width: 768px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; padding: 24px; background: rgba(23,23,23,0.5); }
.faq-item h3 { font-weight: 600; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-400); line-height: 1.6; }

.newsletter-cta { padding: 96px 0; background: rgba(79,70,229,0.1); border-top: 1px solid var(--border); text-align: center; }
.newsletter-cta h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 16px; }
.newsletter-cta p { font-size: 1.125rem; color: var(--text-300); margin-bottom: 32px; }
.newsletter-form {
    display: flex; flex-direction: column; gap: 16px;
    max-width: 400px; margin: 0 auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
    flex: 1; background: var(--bg-950); border: 1px solid var(--border-hover);
    border-radius: var(--radius-full); padding: 12px 24px; color: #fff;
    outline: none; font-size: 16px;
}
.newsletter-form input:focus { border-color: var(--indigo); }
.newsletter-form button {
    background: #fff; color: #000; font-weight: 700;
    padding: 12px 32px; border-radius: var(--radius-full);
    border: none; font-size: 16px; transition: var(--transition);
}
.newsletter-form button:hover { background: #e5e5e5; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border); padding: 48px 0;
    background: var(--bg-950);
}
.footer-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: 16px; text-align: center;
}
.footer-logo img { height: 24px; width: auto; opacity: 0.5; }
.footer-text { font-size: 14px; color: var(--text-500); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-500); transition: var(--transition); }
.footer-links a:hover { color: var(--text-white); }

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-layout { padding-top: 80px; min-height: 100vh; }

.admin-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: var(--bg-900); border-bottom: 1px solid var(--border);
    height: 64px; display: flex; align-items: center; padding: 0 24px;
    justify-content: space-between;
}
.admin-header h1 { font-size: 16px; font-weight: 600; }
.admin-header .admin-nav { display: flex; gap: 16px; align-items: center; }
.admin-header .admin-nav a { font-size: 14px; color: var(--text-400); transition: var(--transition); }
.admin-header .admin-nav a:hover { color: var(--text-white); }
.admin-header .admin-nav a.active { color: var(--indigo); }

.admin-container { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }

.admin-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.admin-title-row h2 { font-size: 1.5rem; font-weight: 700; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; border: none;
    transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--indigo-dark); color: #fff; }
.btn-primary:hover { background: var(--indigo); }
.btn-danger { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.btn-danger:hover { background: rgba(248,113,113,0.2); }
.btn-ghost { background: transparent; color: var(--text-400); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-white); border-color: var(--border-hover); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.admin-table th { font-weight: 600; color: var(--text-400); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table tr:hover { background: rgba(255,255,255,0.02); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--amber); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-300); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 10px 14px; background: var(--bg-950);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: #fff; font-size: 14px; outline: none; transition: var(--transition);
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--indigo); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-check {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--indigo); }

/* Login Page */
.login-page {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; background: var(--bg-950);
}
.login-box {
    width: 100%; max-width: 400px; padding: 40px;
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.login-box h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; text-align: center; }
.login-box p { font-size: 14px; color: var(--text-400); text-align: center; margin-bottom: 32px; }
.login-box .logo { display: flex; justify-content: center; margin-bottom: 24px; }
.login-box .logo img { height: 40px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: rgba(248,113,113,0.1); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.alert-success { background: rgba(74,222,128,0.1); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-900); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.stat-card .label { font-size: 14px; color: var(--text-400); margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: 700; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.hidden { display: none; }
