/* ============================================================
   HamiiScripts — Premium Cyber-Tech UI Transformation
   Identity: Immersive Neon, Glassmorphism, Premium Dark Dev.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
    /* Deeper, more atmospheric background space */
    --bg-deep: #060811;
    --surface: rgba(13, 17, 30, 0.65);
    --surface-2: rgba(22, 28, 45, 0.8);
    --border: rgba(57, 217, 138, 0.15); /* Tinted borders for organic tech feel */
    --border-glow: rgba(57, 217, 138, 0.3);
    
    /* Text Hierarchy */
    --text: #F0F4F8;
    --text-dim: #94A3B8;
    
    /* Brand Accent & Futuristic Neon Glow Colors */
    --accent: #39D98A;      /* Signature Mint Green */
    --accent-glow: rgba(57, 217, 138, 0.4);
    --blue: #38BDF8;
    --blue-glow: rgba(56, 189, 248, 0.4);
    --danger: #F85149;
    --warn: #F59E0B;
    
    --font-display: 'JetBrains Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --radius: 12px; /* Smoother modern rounded corners */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Ambient Background Mesh (Suhaib Style Effect) ---- */
body {
    margin: 0;
    background: var(--bg-deep);
    /* Subtle glowing grid/mesh behind content */
    background-image: 
        radial-gradient(at 0% 0%, rgba(56, 189, 248, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(57, 217, 138, 0.08) 0px, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { 
    font-family: var(--font-display); 
    font-weight: 700; 
    letter-spacing: -0.03em; 
    margin: 0 0 .5em; 
    color: #fff;
}
p { color: var(--text-dim); font-weight: 400; }

/* Blinking Terminal Cursor Element */
.cursor { 
    color: var(--accent); 
    text-shadow: 0 0 10px var(--accent-glow);
    animation: blink 1.1s step-end infinite; 
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Premium Glassmorphic Navbar ---- */
.navbar { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: rgba(6, 8, 17, 0.7); 
    backdrop-filter: blur(16px) saturate(180%); 
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); 
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.04em; color: #fff; }
.brand span { color: var(--accent); text-shadow: 0 0 15px var(--accent-glow); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { 
    color: var(--text-dim); 
    font-size: .95rem; 
    font-weight: 500;
    transition: var(--transition); 
    position: relative;
}
.nav-links a:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }
/* Cool active slide line underline */
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; 
    background: var(--accent); box-shadow: 0 0 8px var(--accent); transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-auth { display: flex; gap: 12px; }

/* ---- Cyber Glow Buttons ---- */
.btn { 
    display: inline-flex; 
    align-items: center;
    justify-content: center;
    padding: 12px 22px; 
    border-radius: var(--radius); 
    font-family: var(--font-display); 
    font-size: .88rem; 
    font-weight: 600; 
    cursor: pointer; 
    border: 1px solid transparent; 
    transition: var(--transition); 
}
.btn-accent { 
    background: var(--accent); 
    color: #030712; 
    box-shadow: 0 4px 20px rgba(57, 217, 138, 0.25);
}
.btn-accent:hover { 
    background: #51f0a2; 
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(57, 217, 138, 0.45);
}
.btn-outline { 
    border-color: rgba(255, 255, 255, 0.15); 
    color: var(--text); 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(4px);
}
.btn-outline:hover { 
    border-color: var(--accent); 
    color: var(--accent);
    background: rgba(57, 217, 138, 0.04);
    box-shadow: 0 0 15px rgba(57, 217, 138, 0.15);
    transform: translateY(-2px);
}
.btn-ghost { color: var(--text-dim); background: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 4px 15px rgba(248, 81, 73, 0.2); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(248, 81, 73, 0.4); }

/* ---- Premium Hero Section & Terminal Layout ---- */
.hero { max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding: 80px 24px 40px; text-align: center; } .hero-terminal { margin: 40px auto 0 !important; } }

.hero h1 { 
    font-size: clamp(2.4rem, 6vw, 3.8rem); 
    line-height: 1.1; 
    margin: 0 0 20px;
    background: linear-gradient(135deg, #FFF 40%, var(--text-dim) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead { font-size: 1.15rem; max-width: 600px; color: var(--text-dim); margin-bottom: 32px; }

/* High-tech Glow Terminal Container */
.hero-terminal { 
    background: rgba(10, 14, 26, 0.75); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 14px; 
    overflow: hidden; 
    width: 100%;
    max-width: 540px;
    margin-left: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(56, 189, 248, 0.05);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.hero-terminal:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 50px rgba(56, 189, 248, 0.15);
}
.terminal-bar { display: flex; gap: 8px; padding: 14px 18px; background: rgba(18, 24, 43, 0.9); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F56; } .dot-y { background: #FFBD2E; } .dot-g { background: #27C93F; }
.terminal-body { padding: 24px; font-family: var(--font-display); font-size: .95rem; line-height: 1.7; color: #CBD5E1; }
.terminal-body .prompt { color: var(--blue); font-weight: 500; }

/* ---- Glass-Neon Cards Grid ---- */
.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 16px; }
.eyebrow { font-family: var(--font-display); color: var(--accent); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; text-shadow: 0 0 10px var(--accent-glow); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { 
    background: var(--surface); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: var(--radius); 
    padding: 26px; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition); 
    position: relative;
    overflow: hidden;
}
/* Subtle top-light gradient sheet on card hover */
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(57, 217, 138, 0.03) 0%, transparent 100%);
    opacity: 0; transition: var(--transition); pointer-events: none;
}
.card:hover { 
    border-color: rgba(57, 217, 138, 0.35); 
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(57, 217, 138, 0.06);
}
.card:hover::before { opacity: 1; }
.card img { width: 100%; border-radius: 8px; margin-bottom: 18px; aspect-ratio: 16/10; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.05); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #fff; }

.tag { 
    display: inline-block; 
    font-family: var(--font-display); 
    font-size: .75rem; 
    padding: 4px 10px; 
    border-radius: 6px; 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08); 
    color: var(--text-dim); 
    margin-right: 6px; 
    transition: var(--transition);
}
.card:hover .tag { border-color: rgba(57, 217, 138, 0.2); color: var(--text); }

/* ---- Vibrant Micro-Glow Status Badges ---- */
.status-badge { 
    font-family: var(--font-display); 
    font-size: .72rem; 
    font-weight: 600;
    padding: 5px 12px; 
    border-radius: 6px; 
    text-transform: uppercase; 
    letter-spacing: .05em; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.status-pending, .status-open { background: rgba(245, 158, 11, 0.1); color: var(--warn); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-pending::before, .status-open::before { background: var(--warn); box-shadow: 0 0 8px var(--warn); }

.status-accepted, .status-in_progress { background: rgba(56, 189, 248, 0.1); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.2); }
.status-accepted::before, .status-in_progress::before { background: var(--blue); box-shadow: 0 0 8px var(--blue); }

.status-delivered { background: rgba(57, 217, 138, 0.1); color: var(--accent); border: 1px solid rgba(57, 217, 138, 0.2); }
.status-delivered::before { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.status-completed, .status-closed { background: rgba(148, 163, 184, 0.1); color: var(--text-dim); border: 1px solid rgba(148, 163, 184, 0.2); }
.status-completed::before, .status-closed::before { background: var(--text-dim); }

.status-cancelled { background: rgba(248, 81, 73, 0.1); color: var(--danger); border: 1px solid rgba(248, 81, 73, 0.2); }
.status-cancelled::before { background: var(--danger); box-shadow: 0 0 8px var(--danger); }

/* ---- Cyber Form Elements ---- */
.form-group { margin-bottom: 22px; }
label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 8px; color: var(--text-dim); letter-spacing: 0.02em; }
input, textarea, select { 
    width: 100%; 
    padding: 13px 16px; 
    background: rgba(10, 14, 26, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: var(--radius); 
    color: var(--text); 
    font-family: var(--font-body); 
    font-size: .98rem; 
    transition: var(--transition);
}
input:focus, textarea:focus, select:focus { 
    outline: none; 
    border-color: var(--accent); 
    background: rgba(10, 14, 26, 0.9);
    box-shadow: 0 0 15px rgba(57, 217, 138, 0.12), inset 0 0 8px rgba(57, 217, 138, 0.05);
}
.auth-box { 
    max-width: 420px; 
    margin: 100px auto; 
    background: var(--surface); 
    border: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 16px; 
    padding: 40px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    backdrop-filter: blur(16px);
}
.google-btn { 
    display: flex; align-items: center; justify-content: center; gap: 12px; 
    width: 100%; padding: 14px; background: #fff; color: #0f172a; 
    border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition);
}
.google-btn:hover { background: #f1f5f9; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,255,255,0.1); }

/* ---- Clean Admin / Customer Dashboard Layout ---- */
.dash-wrap { display: flex; min-height: 100vh; background: rgba(6, 8, 17, 0.3); }
.sidebar { 
    width: 250px; 
    background: rgba(9, 13, 24, 0.7); 
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.05); 
    padding: 32px 0; 
    flex-shrink: 0; 
}
.sidebar a { 
    display: flex; align-items: center;
    padding: 14px 28px; color: var(--text-dim); font-size: .95rem; font-weight: 500;
    border-left: 4px solid transparent; transition: var(--transition);
}
.sidebar a:hover, .sidebar a.active { 
    color: var(--text); 
    border-left-color: var(--accent); 
    background: linear-gradient(90deg, rgba(57, 217, 138, 0.06) 0%, transparent 100%); 
}
.sidebar a.active { color: var(--accent); font-weight: 600; }
.dash-content { flex: 1; padding: 40px; max-width: 1200px; }

/* Sleek Tech Tables */
table { 
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: rgba(13, 17, 30, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px);
}
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: .92rem; }
th { 
    color: var(--text-dim); font-family: var(--font-display); font-size: .8rem; 
    text-transform: uppercase; letter-spacing: 0.06em; background: rgba(255, 255, 255, 0.02);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255, 255, 255, 0.01); color: #fff; }

/* ---- Premium Futuristic Chat Widget ---- */
.chat-box { 
    display: flex; flex-direction: column; height: 560px; 
    background: rgba(10, 14, 26, 0.75); border: 1px solid rgba(255, 255, 255, 0.06); 
    border-radius: 16px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
}
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 75%; padding: 12px 18px; border-radius: 14px; font-size: .95rem; line-height: 1.5; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.msg-customer { 
    align-self: flex-end; 
    background: linear-gradient(135deg, var(--accent-dim) 0%, #1b6b44 100%); 
    color: #fff; border-bottom-right-radius: 2px; 
}
.msg-admin { 
    align-self: flex-start; 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text); border-bottom-left-radius: 2px; 
}
.chat-input { display: flex; background: rgba(18, 24, 43, 0.9); border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 10px; gap: 10px; }
.chat-input input { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 8px; background: rgba(6, 8, 17, 0.5); }
.chat-input button { border-radius: 8px; height: 100%; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 50px 24px; text-align: center; background: rgba(4, 6, 12, 0.4); }
.footer-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.footer-brand span { color: var(--accent); text-shadow: 0 0 10px var(--accent-glow); }
.terminal-line { font-family: var(--font-display); font-size: .85rem; margin-top: 12px; color: var(--text-dim); }
.terminal-line .ok { color: var(--accent); font-weight: bold; }
.copyright { font-size: .82rem; margin-top: 16px; color: rgba(255, 255, 255, 0.25); }

/* Responsive Adaptations */
@media (max-width: 800px) {
    .nav-links { display: none; }
    .dash-wrap { flex-direction: column; }
    .sidebar { width: 100%; display: flex; overflow-x: auto; padding: 12px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .sidebar a { padding: 8px 18px; border-left: none; border-bottom: 2px solid transparent; }
    .sidebar a:hover, .sidebar a.active { border-left-color: transparent; border-bottom-color: var(--accent); background: transparent; }
    .dash-content { padding: 24px 16px; }
}