/* DotCity Software Engineering — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-darker: #5b21b6;
    --primary-light: #ede9fe;
    --primary-lighter: #f5f3ff;
    --secondary: #111827;
    --accent: #a855f7;
    --blue: #2563eb;
    --success: #059669;
    --warning: #d97706;
    --danger: #dc2626;
    --text-dark: #1f2937;
    --text-mid: #4b5563;
    --text-light: #9ca3af;
    --white: #ffffff;
    --bg-light: #f9fafb;
    --border: #e5e7eb;
    --radius: 0.75rem;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --bottom-nav-height: 68px;
}

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

body { font-family: 'Inter', sans-serif; color: var(--text-dark); background: var(--bg-light); padding-bottom: var(--bottom-nav-height); min-height: 100vh; }

/* HEADER */
.top-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.top-header .inner { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.2rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-decoration: none; letter-spacing: -0.5px; }
.desktop-nav { display: flex; align-items: center; gap: 1.25rem; }
.desktop-nav a { font-size: 0.875rem; font-weight: 500; color: var(--text-mid); text-decoration: none; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
@media(max-width:768px){ .desktop-nav { display: none; } }
.header-actions { display: flex; gap: 0.6rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.1rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; cursor: pointer; transition: all 0.2s; text-decoration: none; border: none; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker)); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-lighter); }
.btn-success { background: linear-gradient(135deg, #059669, #047857); color: white; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.w-full { width: 100%; justify-content: center; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--secondary) 0%, #0f172a 40%, #1e1b4b 80%, var(--primary-dark) 100%); color: var(--white); padding: 4.5rem 1.25rem 3.5rem; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2l-2 2-34 34v-2zm4 4L80 0v2L44 40h-2zm4 0L80 4v2L48 40h-2zm4 0L80 8v2L52 40h-2zm4 0L80 12v2L56 40h-2zm4 0L80 16v2L60 40h-2zm4 0L80 20v2L64 40h-2zm4 0L80 24v2L68 40h-2zm4 0L80 28v2L72 40h-2zm4 4L80 32v2L76 40h-2zm4 4L80 36v2L78 40h-2z'/%3E%3C/g%3E%3C/svg%3E"); }
.hero .inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3); color: #c4b5fd; padding: 0.35rem 1rem; border-radius: 100px; font-size: 0.78rem; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: 0.5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero h1 .gradient-text { background: linear-gradient(135deg, #c4b5fd, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.05rem; color: #d1d5db; max-width: 580px; margin: 0 auto 2rem; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-code { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1rem 1.5rem; margin: 2rem auto 0; max-width: 480px; font-family: 'Courier New', monospace; font-size: 0.85rem; color: #a78bfa; text-align: left; }
.hero-code span { color: #86efac; }

/* SECTIONS */
.section { padding: 3.5rem 1.25rem; }
.section-alt { background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-label { font-size: 0.78rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.4rem; }
.section-header h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: var(--secondary); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-mid); max-width: 540px; margin: 0 auto; line-height: 1.7; }

/* CARDS */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.75rem; transition: all 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius); background: var(--primary-lighter); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.25rem; color: var(--primary); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--secondary); margin-bottom: 0.5rem; }
.card p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.card-link:hover { gap: 0.6rem; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pricing-card { background: var(--white); border-radius: 1rem; border: 2px solid var(--border); padding: 2rem 1.75rem; position: relative; transition: all 0.25s; }
.pricing-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--primary); background: linear-gradient(135deg, var(--primary-lighter), var(--white)); }
.pricing-card .popular-badge { position: absolute; top: -1px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius); letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.pricing-card .plan-name { font-size: 0.8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; }
.pricing-card .plan-price { font-size: 2.5rem; font-weight: 800; color: var(--secondary); line-height: 1; }
.pricing-card .plan-price sup { font-size: 1.2rem; vertical-align: super; font-weight: 600; }
.pricing-card .plan-period { font-size: 0.82rem; color: var(--text-light); margin-bottom: 0.75rem; }
.pricing-card .plan-desc { font-size: 0.875rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; margin-bottom: 1.75rem; }
.pricing-card ul li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--text-mid); margin-bottom: 0.6rem; }
.pricing-card ul li i { color: var(--success); font-size: 0.75rem; margin-top: 3px; flex-shrink: 0; }
.pricing-card ul li.unavail i { color: var(--text-light); }
.pricing-card ul li.unavail { color: var(--text-light); }

/* PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--secondary), #1e1b4b); color: var(--white); padding: 2.5rem 1.25rem 2rem; }
.page-header .inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 0.5rem; }
.page-header p { color: #d1d5db; font-size: 0.95rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.78rem; color: #9ca3af; margin-bottom: 0.75rem; }
.breadcrumb a { color: #c4b5fd; text-decoration: none; }

/* PORTAL / AUTH */
.auth-wrap { min-height: calc(100vh - 60px - var(--bottom-nav-height)); display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; background: linear-gradient(135deg, var(--secondary), #1e1b4b); }
.auth-card { background: var(--white); border-radius: 1.25rem; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.auth-card h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.auth-card .auth-sub { color: var(--text-mid); font-size: 0.875rem; margin-bottom: 1.75rem; }

/* FORMS */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 0.4rem; }
.form-control { width: 100%; padding: 0.65rem 0.9rem; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; transition: border 0.2s; background: var(--white); color: var(--text-dark); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
textarea.form-control { resize: vertical; min-height: 110px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 2.5rem; }
.input-icon-wrap .input-icon { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 0.9rem; pointer-events: none; }

/* DASHBOARD */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem; }
@media(max-width:900px){ .dashboard-layout { grid-template-columns: 1fr; } }
.sidebar { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; height: fit-content; }
.sidebar .user-info { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.sidebar .avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: white; margin: 0 auto 0.6rem; }
.sidebar .user-name { font-weight: 700; font-size: 0.95rem; }
.sidebar .user-email { font-size: 0.78rem; color: var(--text-light); }
.sidebar-nav a { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-mid); font-size: 0.875rem; font-weight: 500; transition: all 0.2s; margin-bottom: 0.15rem; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--primary-lighter); color: var(--primary); }
.sidebar-nav a i { width: 18px; text-align: center; }
.main-content { display: flex; flex-direction: column; gap: 1.5rem; }
.content-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; }
.content-card .card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; }

/* BADGES */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.65rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #f3f4f6; color: #6b7280; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-purple { background: var(--primary-lighter); color: var(--primary); }

/* TABLE */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.65rem 0.75rem; font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border); }
.data-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }

/* ALERTS */
.alert { padding: 0.85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* SUBSIDIARY LINKS */
.subs-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0.75rem; }
.sub-chip { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 0.85rem 1rem; text-decoration: none; color: var(--text-dark); display: flex; align-items: center; gap: 0.65rem; transition: all 0.2s; font-size: 0.85rem; }
.sub-chip:hover { border-color: var(--primary); color: var(--primary); }
.sub-chip.active { border-color: var(--primary); background: var(--primary-lighter); color: var(--primary); }
.sub-chip .sub-emoji { font-size: 1.25rem; }
.sub-chip .sub-info .name { font-weight: 700; font-size: 0.85rem; }
.sub-chip .sub-info .url { font-size: 0.7rem; color: var(--text-light); }

/* FOOTER */
.main-footer { background: var(--secondary); color: #9ca3af; padding: 3rem 1.25rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media(max-width:640px){ .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .logo { font-size: 1.2rem; margin-bottom: 0.6rem; display: block; }
.footer-brand p { font-size: 0.83rem; color: #6b7280; line-height: 1.7; }
.footer-col h4 { font-weight: 700; color: var(--white); margin-bottom: 0.8rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #6b7280; text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #c4b5fd; }
.footer-bottom { border-top: 1px solid #374151; padding-top: 1.25rem; font-size: 0.78rem; color: #4b5563; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* BOTTOM NAV */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); height: var(--bottom-nav-height); display: flex; align-items: center; z-index: 200; box-shadow: 0 -4px 12px rgba(0,0,0,0.08); }
.bottom-nav .nav-items { display: flex; width: 100%; justify-content: space-around; align-items: center; padding: 0 0.25rem; }
.bottom-nav .nav-item { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.4rem 0.5rem; border-radius: 0.5rem; text-decoration: none; color: var(--text-light); font-size: 0.68rem; font-weight: 500; transition: all 0.2s; flex: 1; max-width: 80px; }
.bottom-nav .nav-item i { font-size: 1.2rem; }
.bottom-nav .nav-item:hover, .bottom-nav .nav-item.active { color: var(--primary); }
.bottom-nav .nav-item.active i { transform: scale(1.1); }

/* UTILS */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-center { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}
@media(max-width:640px){ .section{padding:2rem 1rem;} .hero{padding:2.5rem 1rem 2rem;} }

/* TECH STACK TAGS */
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tech-tag { background: var(--primary-lighter); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; }

/* PROCESS STEPS */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; counter-reset: step; }
.process-step { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; text-align: center; position: relative; counter-increment: step; }
.process-step::before { content: counter(step); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
.process-step h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.4rem; margin-top: 0.25rem; }
.process-step p { font-size: 0.82rem; color: var(--text-mid); }

/* TICKET */
.ticket-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ticket-card:hover { border-color: var(--primary-light); }
