/* ============================================================
   eGSM.ro — Design System
   ============================================================ */

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

:root {
    --bg:           #f2f5f3;
    --bg-2:         #e8ece9;
    --bg-3:         #dde3df;
    --surface:      #ffffff;
    --surface-2:    #f7faf8;
    --border:       rgba(0, 0, 0, .08);
    --border-hover: rgba(34, 197, 94, .45);

    --blue:         #16a34a;
    --blue-light:   #22c55e;
    --cyan:         #0d9488;
    --green:        #22c55e;
    --purple:       #7c3aed;
    --orange:       #d97706;

    --text:         #1a2e25;
    --text-2:       #4a6b5a;
    --text-3:       #8aab97;

    --radius-sm:    8px;
    --radius:       14px;
    --radius-lg:    20px;
    --radius-xl:    28px;

    --shadow:       0 2px 12px rgba(0, 0, 0, .08);
    --shadow-lg:    0 12px 40px rgba(0, 0, 0, .12);
    --glow-blue:    0 0 32px rgba(34, 197, 94, .15);
    --glow-cyan:    0 0 32px rgba(13, 148, 136, .12);

    --transition:       .2s cubic-bezier(.4, 0, .2, 1);
    --transition-slow:  .4s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ---------- Typography ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* fallback pentru browsere fara gradient-text support */
@supports not (-webkit-background-clip: text) {
    .gradient-text { color: var(--blue-light); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.6rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, .3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(34, 197, 94, .45);
    color: #fff;
}

.btn-cyan {
    background: linear-gradient(135deg, #2dd4bf, #0d9488);
    color: #fff;
    box-shadow: 0 4px 16px rgba(45, 212, 191, .25);
}
.btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45, 212, 191, .4);
    color: #fff;
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--surface-2);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--surface);
    color: var(--text);
    border-color: rgba(255, 255, 255, .15);
}

.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ---------- Navbar (Bootstrap override) ---------- */
#mainNavbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding-top: .75rem;
    padding-bottom: .75rem;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}

#mainNavbar.scrolled {
    background: rgba(242, 245, 243, .95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
}

/* Logo */
#mainNavbar .navbar-brand { padding: 0; }

.nav-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
}
.nav-logo-text span { color: #16a34a; }

/* Nav links */
#mainNavbar .nav-link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-2) !important;
    border-radius: var(--radius-sm);
    padding: .42rem .85rem !important;
    transition: color var(--transition), background var(--transition);
}
#mainNavbar .nav-link:hover,
#mainNavbar .nav-link.active {
    color: var(--text) !important;
    background: rgba(0, 0, 0, .05);
}

/* Toggler */
#mainNavbar .navbar-toggler {
    border-color: rgba(255,255,255,.2);
    padding: .35rem .6rem;
    box-shadow: none !important;
}
/* Hamburger icon — închis */
#mainNavbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C0%2C0%2C0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
/* X (close) icon — închis, când meniul e deschis */
#mainNavbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280%2C0%2C0%2C0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M6 6l18 18M24 6L6 24'/%3e%3c/svg%3e");
}

/* Mobile collapse background */
#mainNavbar .navbar-collapse {
    border-radius: var(--radius);
}
@media (max-width: 991.98px) {
    #mainNavbar .navbar-collapse {
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(18px);
        margin-top: .5rem;
        padding: .75rem 1rem 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }
    #mainNavbar .navbar-nav { margin-bottom: .75rem; }
}

/* Butoane navbar */
.btn-nav-outline {
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-2);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .42rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-nav-outline:hover {
    color: var(--text);
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
}

.btn-nav-green {
    font-size: .84rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: var(--radius-sm);
    padding: .42rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(34,197,94,.3);
}
.btn-nav-green:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,197,94,.45);
}

.btn-nav-logout {
    font-size: .84rem;
    font-weight: 600;
    color: #fca5a5;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2);
    border-radius: var(--radius-sm);
    padding: .42rem 1rem;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.btn-nav-logout:hover {
    color: #fff;
    background: rgba(239,68,68,.85);
    border-color: transparent;
}

.nav-user-info {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-2);
    padding: .42rem .6rem;
}
.nav-user-info i { font-size: 1rem; color: #16a34a; }

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(34, 197, 94, .12) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 60%, rgba(13, 148, 136, .08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 10% 80%, rgba(22, 163, 74, .06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem .35rem .5rem;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1.5rem;
    max-width: 100%;
    white-space: normal;
    text-align: left;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(1.6); }
}

.hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: .25rem;
}

.hero-stat-label {
    font-size: .78rem;
    color: var(--text-2);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(34, 197, 94, .12) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.dash-topbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.dash-dot        { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot-red    { background: #ef4444; }
.dash-dot-yellow { background: #f59e0b; }
.dash-dot-green  { background: #10b981; }
.dash-url {
    flex: 1;
    background: var(--bg-3);
    border-radius: 6px;
    padding: .3rem .75rem;
    font-size: .72rem;
    color: var(--text-3);
    margin-left: .5rem;
    font-family: 'Consolas', monospace;
}

.dash-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.25rem;
}
.dash-tab {
    padding: .4rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    cursor: default;
    border: 1px solid transparent;
}
.dash-tab.active {
    background: rgba(34, 197, 94, .1);
    color: #15803d;
    border-color: rgba(34, 197, 94, .3);
}

.dash-items {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.dash-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    transition: var(--transition);
}
.dash-item:hover { border-color: var(--border-hover); }

.dash-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}
.di-blue   { background: rgba(59, 130, 246, .15);  color: var(--blue-light); }
.di-cyan   { background: rgba(6, 182, 212, .15);   color: var(--cyan); }
.di-purple { background: rgba(139, 92, 246, .15);  color: #a78bfa; }

.dash-item-info  { flex: 1; min-width: 0; }
.dash-item-title {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-item-meta  { font-size: .74rem; color: var(--text-3); }

.dash-tag {
    font-size: .68rem;
    font-weight: 700;
    padding: .22rem .55rem;
    border-radius: 5px;
    flex-shrink: 0;
}
.tag-new  { background: rgba(16, 185, 129, .15);  color: var(--green); }
.tag-hot  { background: rgba(239, 68, 68, .15);   color: #f87171; }
.tag-sale { background: rgba(245, 158, 11, .15);  color: var(--orange); }

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text);
}
.float-card-1 {
    top: -20px;
    right: -24px;
    animation: float 4s ease-in-out infinite;
}
.float-card-2 {
    bottom: 24px;
    left: -28px;
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.float-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}

/* ---------- Section Headers ---------- */
.section-head {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .1);
    border: 1px solid rgba(34, 197, 94, .3);
    color: #15803d;
    font-size: .74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    padding: .3rem .8rem;
    border-radius: 50px;
    margin-bottom: .9rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: .85rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- Section: Features ---------- */
.section-features {
    padding: 100px 24px;
    background: var(--bg-2);
}

.features-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: rgba(34, 197, 94, .25);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .4), var(--glow-blue);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.fi-blue   { background: rgba(59, 130, 246, .12); color: var(--blue-light); }
.fi-cyan   { background: rgba(6, 182, 212, .12);  color: var(--cyan); }
.fi-green  { background: rgba(16, 185, 129, .12); color: var(--green); }
.fi-purple { background: rgba(139, 92, 246, .12); color: #a78bfa; }
.fi-orange { background: rgba(245, 158, 11, .12); color: var(--orange); }
.fi-red    { background: rgba(239, 68, 68, .12);  color: #f87171; }

.feature-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}
.feature-card p {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ---------- Section: Stats ---------- */
.section-stats {
    padding: 72px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-wrap {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    margin-bottom: .5rem;
}
.stat-label {
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 500;
}

/* ---------- Section: How it works ---------- */
/* ---------- Section: Showcase ---------- */
.home-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
.home-showcase-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hsc-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: var(--transition);
}
.hsc-item:hover {
    border-color: rgba(34,197,94,.25);
    transform: translateX(4px);
}
.hsc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hsc-title {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .25rem;
}
.hsc-desc {
    font-size: .8rem;
    color: var(--text-2);
    line-height: 1.6;
}

.section-how {
    padding: 100px 24px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.how-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
}

.how-grid::before {
    content: '';
    position: absolute;
    top: 42px;
    left: calc(16.66% + 26px);
    right: calc(16.66% + 26px);
    height: 1px;
    background: linear-gradient(90deg, #22c55e, #2dd4bf, #22c55e);
    opacity: .25;
}

.how-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.how-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(34, 197, 94, .35);
    position: relative;
    z-index: 1;
}

.how-step h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .6rem;
}
.how-step p {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.7;
}

/* ---------- Section: Categories ---------- */
.section-categories {
    padding: 100px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.categories-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: block;
    text-decoration: none;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #22c55e, #2dd4bf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}
.category-card:hover {
    border-color: rgba(34, 197, 94, .25);
    transform: translateY(-5px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .4), var(--glow-cyan);
}
.category-card:hover::after { transform: scaleX(1); }

.cat-emoji {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}
.category-card h5 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}
.category-card p {
    font-size: .82rem;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.cat-arrow {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 600;
    color: var(--cyan);
    transition: gap var(--transition);
}
.category-card:hover .cat-arrow { gap: .6rem; }

/* ---------- Section: Testimonials ---------- */
.section-testimonials {
    padding: 100px 24px;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.testimonials-grid {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-slow);
}
.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.t-stars {
    display: flex;
    gap: .2rem;
    margin-bottom: 1.25rem;
    color: var(--orange);
    font-size: .9rem;
}

.t-quote {
    font-size: .9rem;
    color: var(--text-2);
    line-height: 1.75;
    flex: 1;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.t-author { display: flex; align-items: center; gap: .85rem; }
.t-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.t-name  { font-size: .88rem; font-weight: 700; color: var(--text); }
.t-role  { font-size: .75rem; color: var(--text-3); margin-top: .1rem; }

/* ---------- Section: CTA ---------- */
.section-cta {
    padding: 120px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(34, 197, 94, .12) 0%, transparent 65%);
    pointer-events: none;
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-note {
    font-size: .78rem;
    color: var(--text-3);
}
.cta-note-green { color: var(--green); font-weight: 600; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
}

.footer-main {
    padding: 64px 24px 48px;
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    margin-bottom: 1rem;
}
.footer-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: #fff;
}
.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.footer-logo-text span { color: #16a34a; }

.footer-brand p {
    font-size: .875rem;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 280px;
}

.footer-socials {
    display: flex;
    gap: .65rem;
}
.footer-social {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--text-2);
    transition: var(--transition);
    text-decoration: none;
}
.footer-social:hover {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.footer-col h6 {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.footer-links a {
    font-size: .875rem;
    color: var(--text-2);
    transition: color var(--transition);
    text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 24px;
}
.footer-bottom-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: .8rem;
    color: var(--text-3);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-inner         { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .hero-desc          { margin-left: auto; margin-right: auto; }
    .hero-cta           { justify-content: center; }
    .hero-stats         { justify-content: center; }
    .float-card         { display: none; }
    .hero-content       { min-width: 0; }
    .hero-visual        { max-width: 520px; margin: 0 auto; width: 100%; min-width: 0; }
    .dashboard-mockup   { width: 100%; box-sizing: border-box; overflow: hidden; }
    .dash-tabs          { flex-wrap: wrap; }
    .features-grid      { grid-template-columns: repeat(2, 1fr); }
    .stats-wrap         { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) { border-top: 1px solid var(--border); }
    .categories-grid    { grid-template-columns: repeat(2, 1fr); }
    .footer-main        { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .hero               { padding: 80px 16px 50px; min-height: auto; overflow: hidden; }
    .hero-inner         { gap: 2rem; }
    .hero-content       { min-width: 0; width: 100%; }
    .hero h1            { font-size: 2rem; word-break: break-word; }
    .hero-desc          { font-size: .95rem; }
    .hero-stats         { gap: 1.25rem; flex-wrap: wrap; }
    .hero-visual        { display: none; }
    .home-showcase      { grid-template-columns: 1fr; }
    .features-grid      { grid-template-columns: 1fr; }
    .how-grid           { grid-template-columns: 1fr; }
    .how-grid::before   { display: none; }
    .testimonials-grid  { grid-template-columns: 1fr; }
    .footer-main        { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .section-stats      { padding: 2rem 16px; }
    .section-features,
    .section-how,
    .section-categories,
    .section-testimonials { padding: 3rem 0; }
    .section-cta        { padding: 3rem 16px; }
}

@media (max-width: 480px) {
    .hero               { padding: 70px 14px 44px; overflow: hidden; }
    .hero h1            { font-size: 1.75rem; word-break: break-word; }
    .hero-desc          { font-size: .9rem; word-break: break-word; }
    .hero-badge         { font-size: .68rem; letter-spacing: 0; max-width: calc(100vw - 28px); }
    .hero-cta           { flex-direction: column; }
    .btn-lg             { width: 100%; justify-content: center; }
    .hero-stats         { gap: 1rem; padding-top: 1.25rem; }
    .hero-stat-num      { font-size: 1.3rem; }
    .categories-grid    { grid-template-columns: 1fr; }
    .stats-wrap         { grid-template-columns: 1fr 1fr; }
    .cta-btns           { flex-direction: column; align-items: stretch; }
    .cta-btns .btn-lg   { width: 100%; justify-content: center; }
    .dash-items         { gap: .5rem; }
    .dash-item-title    { font-size: .78rem; }
    .dash-item-meta     { font-size: .7rem; }
    .testimonial-card   { padding: 1.25rem; }
    .feature-card       { padding: 1.25rem; }
}

/* ============================================================
   Auth Pages (înregistrare / autentificare)
   ============================================================ */
.auth-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 68px; /* navbar height */
}

/* ---------- Panou stânga ---------- */
.auth-side {
    background: linear-gradient(160deg, #e8f5ee 0%, #d1ead9 100%);
    border-right: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 3rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}
.auth-side::before {
    content: '';
    position: absolute;
    top: -100px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(34,197,94,.15) 0%, transparent 70%);
    pointer-events: none;
}

.auth-side-inner {
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    margin-bottom: 2.5rem;
}
.auth-logo-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #22c55e, #2dd4bf);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.auth-logo span {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a2e25;
}

.auth-side-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #1a2e25;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.auth-side-desc {
    font-size: .95rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.auth-benefits {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 2.5rem;
}
.auth-benefits li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: var(--text-2);
}
.benefit-icon {
    width: 22px; height: 22px;
    background: rgba(34,197,94,.15);
    color: #4ade80;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-side-members {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.member-avatars {
    display: flex;
    margin-right: .25rem;
}
.m-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 700;
    color: #fff;
    margin-left: -8px;
}
.m-avatar:first-child { margin-left: 0; }
.member-text {
    font-size: .8rem;
    color: var(--text-2);
}

/* ---------- Panou dreapta (formular) ---------- */
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--bg);
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 2rem;
}
.auth-form-header h1 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: .4rem;
}
.auth-form-header p {
    font-size: .9rem;
    color: var(--text-2);
}

/* Alert */
.auth-alert {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    margin-bottom: 1.5rem;
}
.auth-alert-error {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    color: #fca5a5;
}
.auth-alert-success {
    background: rgba(34,197,94,.1);
    border: 1px solid rgba(34,197,94,.25);
    color: #86efac;
}

/* Form groups */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { display: flex; flex-direction: column; gap: .4rem; }

.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.label-optional {
    font-weight: 400;
    color: var(--text-3);
}
.label-link {
    font-size: .78rem;
    font-weight: 500;
    color: #15803d;
    text-decoration: none;
    margin-left: auto;
}
.label-link:hover { text-decoration: underline; }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-icon,
.input-icon-bs {
    position: absolute;
    left: .85rem;
    color: var(--text-3);
    pointer-events: none;
    flex-shrink: 0;
    font-size: .95rem;
    line-height: 1;
}

.input-wrap input,
.input-wrap select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .72rem .85rem .72rem 2.5rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a9489' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    padding-right: 2.2rem;
}
.input-wrap input:focus,
.input-wrap select:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.input-wrap input::placeholder { color: var(--text-3); }
.input-wrap option { background: var(--surface); color: var(--text); }

.has-error .input-wrap input,
.has-error .input-wrap select {
    border-color: rgba(239,68,68,.5);
}
.has-error .input-wrap input:focus,
.has-error .input-wrap select:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.form-error {
    font-size: .78rem;
    color: #f87171;
    display: flex;
    align-items: center;
    gap: .3rem;
}
.form-error::before { content: '✕'; font-size: .7rem; }

/* Toggle password visibility */
.input-toggle-pass {
    position: absolute;
    right: .85rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-3);
    padding: 0;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}
.input-toggle-pass:hover { color: var(--text); }

/* Checkbox custom */
.form-group-check .check-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .75rem;
    cursor: pointer;
    font-size: .855rem;
    color: var(--text-2);
    line-height: 1.5;
}
.form-group-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}
.check-box {
    width: 18px; height: 18px;
    border: 1.5px solid var(--border);
    border-radius: 5px;
    background: var(--surface);
    flex-shrink: 0;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.form-group-check input:checked ~ .check-box {
    background: #22c55e;
    border-color: #22c55e;
}
.form-group-check input:checked ~ .check-box::after {
    content: '';
    width: 5px; height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translate(-1px, -1px);
    display: block;
}
.check-label a {
    color: #15803d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Buton submit */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    padding: .85rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(34,197,94,.3);
    margin-top: .25rem;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,.45);
}
.btn-submit:active { transform: translateY(0); }

/* Link switch */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: .875rem;
    color: var(--text-2);
}
.auth-switch a {
    color: #15803d;
    font-weight: 600;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* ---------- Responsive auth ---------- */
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-side  { display: none; }
    .auth-main  { padding: 2rem 1.25rem; min-height: calc(100vh - 68px); }
}

@media (max-width: 480px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-form-header h1 { font-size: 1.4rem; }
}
