@charset "UTF-8";

/* ==========================================================================
   Domain Investment Analyzer AI — Luxury Anti-Slop Design System
   ========================================================================== */

:root {
    --font-sans: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Core Palette */
    --slate-950: #0b1120;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    /* Accent & Brand */
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --brand-glow: rgba(99, 102, 241, 0.25);

    /* Semantic Tones */
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-soft: #ecfdf5;
    --amber-500: #f59e0b;
    --amber-soft: #fffbeb;
    --rose-500: #f43f5e;
    --rose-soft: #fff1f2;
    --cyan-500: #06b6d4;
    --cyan-soft: #ecfeff;

    /* Layout metrics */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-soft: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-800);
    font-family: var(--font-sans);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.app-navbar {
    background: var(--slate-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.25rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--brand-glow);
}

.brand-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.brand-pill {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 6px;
}

.app-navbar .nav-link {
    color: var(--slate-300);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-md);
    transition: all 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-navbar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.app-navbar .nav-link.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.nav-ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.ai-status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background-color: #34d399;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.btn-logout {
    border-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.85rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--slate-100);
    padding: 1.15rem 1.4rem;
    font-weight: 700;
}

.metric-card {
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    height: 100%;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--slate-300);
}

.metric-icon-box {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.metric-icon-purple { background: #ede9fe; color: #7c3aed; }
.metric-icon-emerald { background: #d1fae5; color: #059669; }
.metric-icon-cyan { background: #cffafe; color: #0891b2; }
.metric-icon-amber { background: #fef3c7; color: #d97706; }

.metric-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.metric-label {
    color: var(--slate-500);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ==========================================================================
   Hero & Quick Search Box
   ========================================================================== */
.hero-box {
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a 75%);
    border-radius: var(--radius-xl);
    color: #ffffff;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-box::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    color: var(--slate-300);
    font-size: 1.05rem;
    max-width: 650px;
}

.search-input-group {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.search-input-field {
    border: none;
    outline: none;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.75rem 1rem;
    width: 100%;
    color: var(--slate-900);
    direction: ltr;
    text-align: left;
}

.btn-ai-analyze {
    background: var(--brand-gradient);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-md);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-ai-analyze:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--brand-glow);
}

/* ==========================================================================
   Score Rings & Evaluation Badges
   ========================================================================== */
.score-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-weight: 900;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.score-circle.quality-high { background: linear-gradient(135deg, #10b981, #059669); }
.score-circle.quality-mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.score-circle.quality-low { background: linear-gradient(135deg, #ef4444, #dc2626); }

.score-circle.risk-low { background: linear-gradient(135deg, #10b981, #059669); }
.score-circle.risk-mid { background: linear-gradient(135deg, #f59e0b, #d97706); }
.score-circle.risk-high { background: linear-gradient(135deg, #ef4444, #dc2626); }

.score-number { font-size: 1.8rem; line-height: 1; }
.score-label-small { font-size: 0.68rem; font-weight: 700; opacity: 0.9; }

/* Decision Badges */
.badge-decision {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
}

.badge-decision-candidate {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-decision-verify {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-decision-avoid {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.badge-decision-none {
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
}

/* ==========================================================================
   Tables & Lists
   ========================================================================== */
.table-custom {
    margin-bottom: 0;
}

.table-custom th {
    background-color: var(--slate-50);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--slate-200);
    white-space: nowrap;
}

.table-custom td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--slate-100);
    font-size: 0.93rem;
}

.table-custom tr:hover td {
    background-color: rgba(248, 250, 252, 0.8);
}

.domain-cell-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--slate-900);
    direction: ltr;
    display: inline-block;
}

.tld-pill {
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    margin-right: 6px;
}

/* ==========================================================================
   Form Controls
   ========================================================================== */
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--slate-700);
    margin-bottom: 0.4rem;
}

.form-control, .form-select {
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.15s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    outline: none;
}

/* ==========================================================================
   Alerts & Utilities
   ========================================================================== */
.custom-alert {
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    padding: 0.85rem 1.25rem;
}

.app-footer {
    background: #ffffff;
    border-top: 1px solid var(--slate-200);
}

/* Micro-badge */
.badge-pill-soft {
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: 0.78rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .hero-title { font-size: 1.45rem; }
    .hero-box { padding: 1.5rem 1.2rem; }
    .score-circle { width: 75px; height: 75px; }
    .score-number { font-size: 1.45rem; }
}
