/* skillo.css — Skillo LMS base styles */

/* ── Variables ──────────────────────────────────────────────── */
:root {
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --green: #2D6A4F;
    --green-dark: #1E5037;
    --green-light: #E8F5EE;
    --bg: #ffffff;
    --bg-2: #f7f7f5;
    --bg-3: #efefed;
    --text: #1a1a18;
    --text-2: #5a5a56;
    --text-3: #9a9a96;
    --border: #e8e8e4;
    --border-strong: #d0d0cc;
    --radius: 10px;
    --transition: 0.15s ease;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1a1a18;
        --bg-2: #242422;
        --bg-3: #2e2e2c;
        --text: #f0f0ee;
        --text-2: #a0a09c;
        --text-3: #606060;
        --border: #2e2e2c;
        --border-strong: #3e3e3c;
        --green-light: #1a2e22;
    }
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { cursor: pointer; font-family: var(--font); }
img { max-width: 100%; display: block; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--text); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: 0.75rem; }
p  { color: var(--text-2); line-height: 1.7; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.sep { border-top: 1px solid var(--border); }
.bg-alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.section-lead { font-size: 16px; color: var(--text-2); max-width: 560px; margin: 0 auto 2.5rem; text-align: center; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 58px;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: var(--bg);
    z-index: 200; backdrop-filter: blur(10px);
    flex-wrap: nowrap;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--text); text-decoration: none; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap; }
.nav-link { font-size: 14px; color: var(--text-2); text-decoration: none; font-weight: 500; transition: color var(--transition); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-btn { font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 20px; text-decoration: none; transition: all var(--transition); border: 1px solid transparent; white-space: nowrap; }
.nav-btn-ghost { color: var(--text-2); border-color: var(--border-strong); }
.nav-btn-ghost:hover { color: var(--text); background: var(--bg-2); }
.nav-btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.nav-btn-primary:hover { background: var(--green-dark); }

/* ── Cards ──────────────────────────────────────────────────── */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; transition: border-color var(--transition); }
.card:hover { border-color: var(--border-strong); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: all var(--transition); text-decoration: none; font-family: var(--font); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ── Forms ──────────────────────────────────────────────────── */
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select, textarea { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none; transition: border-color var(--transition); }
input:focus, select:focus, textarea:focus { border-color: var(--green); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.badge-green { background: var(--green-light); color: var(--green); }
.mb-2 { margin-bottom: 0.5rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 2rem; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; }
.footer-tagline { font-size: 12px; color: var(--text-3); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer-link { font-size: 13px; color: var(--text-3); text-decoration: none; }
.footer-link:hover { color: var(--text-2); }

/* ── RTL Support ────────────────────────────────────────────── */
[dir="rtl"] { font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', -apple-system, sans-serif; }
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer { flex-direction: row-reverse; }
[dir="rtl"] .bubble-ai { border-radius: 10px 0 10px 10px; }
[dir="rtl"] .bubble-user { border-radius: 0 10px 10px 10px; }
[dir="rtl"] .msg-ai { flex-direction: row-reverse; }
[dir="rtl"] .msg-user { justify-content: flex-start; }
[dir="rtl"] .chat-input-row { flex-direction: row-reverse; }
[dir="rtl"] .how-grid { direction: rtl; }
[dir="rtl"] .stats-row { flex-direction: row-reverse; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
-e 

/* HOME PAGE */
/* home.css — Home page specific styles */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    padding: 2rem 0 3.5rem;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--green); padding: 4px 14px;
    background: var(--green-light); border-radius: 20px;
    margin: 0 auto 0.5rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub {
    font-size: 18px; color: var(--text-2); line-height: 1.7;
    max-width: 560px; margin: 0 auto 2.5rem;
}

/* ── CHAT BOX ───────────────────────────────────────────────── */
.chat-box {
    background: var(--bg-2); border: 1px solid var(--border-strong);
    border-radius: 18px; padding: 1.25rem;
    max-width: 640px; margin: 0 auto 1.25rem;
    text-align: left;
}
.chat-messages {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 1rem; min-height: 52px;
}
.msg-ai  { display: flex; gap: 10px; align-items: flex-start; }
.msg-user { display: flex; justify-content: flex-end; }

.chat-avatar {
    width: 28px; height: 28px; border-radius: 8px; background: var(--green);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 2px;
}
.chat-avatar svg { width: 14px; height: 14px; }

.bubble-ai {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 0 10px 10px 10px; padding: 10px 14px;
    font-size: 14px; color: var(--text); line-height: 1.55; max-width: 480px;
}
.bubble-user {
    background: var(--green); color: #fff;
    border-radius: 10px 0 10px 10px; padding: 10px 14px;
    font-size: 14px; line-height: 1.55; max-width: 400px;
}
.bubble-thinking {
    color: var(--text-3); font-style: italic;
}

.chat-input-row {
    display: flex; gap: 8px; align-items: center;
    background: var(--bg); border: 1px solid var(--border-strong);
    border-radius: 10px; padding: 8px 8px 8px 14px;
}
.chat-input {
    flex: 1; border: none; background: transparent; outline: none;
    font-size: 14px; color: var(--text); font-family: var(--font);
}
.chat-input::placeholder { color: var(--text-3); }
.chat-send {
    background: var(--green); border: none; border-radius: 8px;
    width: 34px; height: 34px; display: flex; align-items: center;
    justify-content: center; flex-shrink: 0;
    transition: background var(--transition);
}
.chat-send:hover { background: var(--green-dark); }
.chat-send svg { width: 15px; height: 15px; }

.typing-cursor {
    display: inline-block; width: 2px; height: 14px;
    background: var(--green); vertical-align: middle;
    margin-left: 2px; animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── CHANNEL PILLS ──────────────────────────────────────────── */
.channels-row {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.ch-pill {
    display: flex; align-items: center; gap: 6px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: 20px; padding: 5px 12px;
    font-size: 12px; color: var(--text-2); font-weight: 500;
    transition: border-color var(--transition);
}
.ch-pill:hover { border-color: var(--border-strong); }
.ch-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px; background: var(--border);
    border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
    margin-top: 2.5rem;
}
.how-step { background: var(--bg); padding: 0; display: flex; flex-direction: column; }
.how-img {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.how-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.how-step > .how-num,
.how-step > .how-title,
.how-step > .how-body { padding: 0 1.5rem; }
.how-step > .how-num { margin-top: 1.5rem; }
.how-step > .how-body { padding-bottom: 1.75rem; }
.how-num {
    font-size: 11px; font-weight: 600; color: var(--green);
    margin-bottom: 0.75rem; letter-spacing: 0.06em;
}
.how-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.how-body  { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── CHANNELS GRID ──────────────────────────────────────────── */
.ch-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px; margin-top: 2rem;
}
.ch-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.25rem 1rem; text-align: center;
    transition: border-color var(--transition);
}
.ch-card:hover { border-color: var(--border-strong); }
.ch-icon  { font-size: 24px; margin-bottom: 8px; }
.ch-name  { font-size: 13px; font-weight: 600; color: var(--text); }
.ch-sub   { font-size: 11px; color: var(--text-3); margin-top: 2px; }

/* ── STATS ──────────────────────────────────────────────────── */
.stats-row { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 2.5rem; }
.stat-value { font-size: 34px; font-weight: 600; color: var(--text); letter-spacing: -0.025em; }
.stat-label { font-size: 13px; color: var(--text-2); margin-top: 2px; }

/* ── PRICING ────────────────────────────────────────────────── */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px; margin-top: 2rem;
}
.pricing-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem;
    display: flex; flex-direction: column;
}
.pricing-card.featured { border: 2px solid var(--green); }
.pricing-name   { font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 0.4rem; }
.pricing-price  { font-size: 30px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.pricing-period { font-size: 13px; color: var(--text-3); font-weight: 400; }
.pricing-features { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pricing-feature { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.pricing-check  { color: var(--green); flex-shrink: 0; }
.pricing-cta {
    margin-top: 1.5rem; width: 100%; padding: 9px;
    border: 1px solid var(--border-strong); background: transparent;
    border-radius: var(--radius); font-size: 13px; font-weight: 600;
    color: var(--text); font-family: var(--font);
    transition: all var(--transition);
}
.pricing-cta:hover { background: var(--bg-2); }
.pricing-cta.primary { background: var(--green); color: #fff; border-color: var(--green); }
.pricing-cta.primary:hover { background: var(--green-dark); }
.pricing-note { font-size: 12px; color: var(--text-3); margin-top: 1rem; text-align: center; }

/* ── CTA BOTTOM ─────────────────────────────────────────────── */
.cta-bottom {
    padding: 5rem 0; text-align: center;
    max-width: 640px; margin: 0 auto;
}
.cta-bottom h2 { margin-bottom: 0.75rem; }
.cta-bottom p  { font-size: 16px; color: var(--text-2); margin-bottom: 2rem; }

@media (max-width: 640px) {
    .hero { padding: 3.5rem 0 2.5rem; }
    .stats-row { gap: 1.5rem; }
    .pricing-grid { grid-template-columns: 1fr; }
    .ch-grid { grid-template-columns: repeat(4, 1fr); }
    .channels-row { gap: 6px; }
    .ch-pill { font-size: 11px; padding: 4px 8px; }
}


.chat-dark .bubble-ai {
    color: #f0f0ee !important;
    font-style: normal !important;
}

/* ── CHAT DARK THEME ────────────────────────────────────────── */
.chat-dark {
    background: #1c1c1c;
    border-color: rgba(255,255,255,0.1);
}
.chat-dark .chat-messages {
    min-height: 60px;
}
.chat-dark .bubble-ai {
    background: #2a2a2a;
    border-color: rgba(255,255,255,0.08);
    color: #f0f0ee;
    font-style: normal;
}
.chat-dark .bubble-thinking {
    color: #777;
    font-style: italic;
}
.chat-dark .chat-input-row {
    background: #1e1e1e;
    border-color: rgba(255,255,255,0.1);
}
.chat-dark .chat-input {
    color: #f0f0ee;
}
.chat-dark .chat-input::placeholder {
    color: #555;
}

/* ── CHANNEL SVG ICONS ──────────────────────────────────────── */
.ch-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .channels-row { gap: 5px; }
    .ch-pill { font-size: 11px; padding: 4px 8px; gap: 4px; }
    .ch-dot  { width: 5px; height: 5px; }
}

/* ── Mobile fixes ────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* Hero */
    .hero { padding: 1.5rem 0 1.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 15px; }

    /* Channels grid — 3 colonne su mobile */
    .ch-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .ch-card { padding: 0.875rem 0.5rem; }
    .ch-name { font-size: 12px; }
    .ch-sub  { font-size: 10px; }

    /* Stats — colonna su mobile */
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }

    /* How grid — 1 colonna */
    .how-grid { grid-template-columns: 1fr; }

    /* Pricing — 1 colonna */
    .pricing-grid { grid-template-columns: 1fr; }

    /* Channels pill row */
    .channels-row { gap: 5px; }
    .ch-pill { font-size: 11px; padding: 4px 8px; gap: 4px; }
    .ch-dot  { width: 5px; height: 5px; }
}

.multi-example-table {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 600px;
}

@media (max-width: 768px) {
    .multi-example-table { max-width: 100%; }
}

/* ── Hero payoff animato ─────────────────────────────────────── */
.hero-rotating-h1 {
    height: 70px;
    overflow: hidden;
    margin: 0 auto 0.75rem;
    position: relative;
}
.hero-phrase-h1 {
    display: block;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--c, var(--text));
    opacity: 0;
    transform: translateY(16px);
    position: absolute;
    width: 100%;
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-phrase-h1.active {
    opacity: 1;
    transform: translateY(0);
}
.hero-phrase-h1.exit {
    opacity: 0;
    transform: translateY(-16px);
}
@media (max-width: 480px) {
    .hero-rotating-h1 { height: 80px; }
    .hero-phrase-h1 { font-size: 1.3rem; }
}

/* ── Use cases section ───────────────────────────────────────── */
.usecase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2.5rem;
}
.usecase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}
.usecase-card-alt {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.usecase-card-alt p,
.usecase-card-alt h3,
.usecase-card-alt .usecase-examples li { color: #fff !important; }
.usecase-card-alt p { opacity: 0.9; }
.usecase-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.usecase-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.usecase-card p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; }
.usecase-examples { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.usecase-examples li { font-size: 14px; color: var(--text-2); }

@media (max-width: 768px) {
    .usecase-grid { grid-template-columns: 1fr; }
}
-e 

/* DATAGRID COMPONENT */
/* datagrid.css — Skillo Datagrid Component */

/* ── Wrapper ─────────────────────────────────────────────────── */
.dg-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

/* ── Toolbar ─────────────────────────────────────────────────── */
.dg-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.dg-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px 12px;
    flex: 1;
    max-width: 320px;
}
.dg-search-icon { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.dg-search {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    color: var(--text);
    font-family: var(--font);
    width: 100%;
}
.dg-search::placeholder { color: var(--text-3); }
.dg-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.dg-count { font-size: 12px; color: var(--text-3); }

/* ── Buttons ─────────────────────────────────────────────────── */
.dg-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
    transition: all var(--transition);
}
.dg-btn:hover { background: var(--bg-2); }
.dg-btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.dg-btn-primary:hover { background: var(--green-dark); }

/* ── Table ───────────────────────────────────────────────────── */
.dg-table-wrap { overflow-x: auto; }
.dg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.dg-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    user-select: none;
}
.dg-table th.dg-sortable { cursor: pointer; }
.dg-table th.dg-sortable:hover { color: var(--text); }
.dg-sort-icon { margin-left: 4px; opacity: 0.5; font-size: 10px; }

.dg-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.dg-table tr:last-child td { border-bottom: none; }
.dg-table tr:hover td { background: var(--bg-2); }

/* ── Cell types ──────────────────────────────────────────────── */
.dg-editable {
    display: inline-block;
    min-width: 60px;
    padding: 3px 6px;
    border-radius: 5px;
    outline: none;
    transition: background 0.1s;
    cursor: text;
}
.dg-editable:hover { background: var(--bg-2); }
.dg-editable:focus {
    background: var(--bg);
    box-shadow: 0 0 0 2px var(--green);
}

.dg-lookup-cell {
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: background 0.1s;
}
.dg-lookup-cell:hover { background: var(--bg-2); }

.dg-lookup-opt {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.1s;
}
.dg-lookup-opt:hover { background: var(--bg-2); }
.dg-lookup-opt.active { color: var(--green); font-weight: 600; }

/* ── Actions ─────────────────────────────────────────────────── */
.dg-actions { text-align: right; white-space: nowrap; }
.dg-row-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0.5;
    transition: opacity 0.1s, background 0.1s;
}
.dg-row-btn:hover { opacity: 1; background: var(--bg-2); }
.dg-row-btn-del:hover { background: #fee2e2; }

/* ── Footer / pagination ─────────────────────────────────────── */
.dg-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.dg-pagination { display: flex; gap: 4px; }
.dg-page-btn {
    min-width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--bg);
    color: var(--text-2);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}
.dg-page-btn:hover { border-color: var(--border-strong); color: var(--text); }
.dg-page-btn.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 600;
}

/* ── States ──────────────────────────────────────────────────── */
.dg-loading, .dg-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-3);
    font-size: 13px;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.dg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.dg-overlay-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.dg-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.dg-overlay-title { font-size: 15px; font-weight: 700; color: var(--text); }
.dg-overlay-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-3);
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition);
}
.dg-overlay-close:hover { color: var(--text); }
.dg-overlay-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.dg-overlay-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* ── Form dentro overlay ─────────────────────────────────────── */
.dg-form-row { display: flex; flex-direction: column; gap: 5px; }
.dg-form-label { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
.dg-form-input {
    padding: 8px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 13px;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color var(--transition);
}
.dg-form-input:focus { border-color: var(--green); }
select.dg-form-input { cursor: pointer; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .dg-search-wrap { max-width: 100%; }
    .dg-table th, .dg-table td { padding: 8px 10px; }
}
-e 

/* SETTINGS PAGES */
/* settings.css — Skillo Settings */

/* ── Index: griglia card ─────────────────────────────────────── */
.settings-page-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.settings-page-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.settings-page-back {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color var(--transition);
    flex-shrink: 0;
}
.settings-page-back:hover { color: var(--text); }

.settings-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.settings-page-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.settings-page-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    border-color: var(--border-strong);
}
.settings-page-card-icon {
    width: 44px; height: 44px; border-radius: 11px;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.settings-page-card-label { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.settings-page-card-sub   { font-size: 12px; color: var(--text-3); }

/* ── Filtri ──────────────────────────────────────────────────── */
.dg-filters {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: var(--bg);
    margin: 0;
}
.dg-filters legend {
    font-size: 11px; font-weight: 600; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.06em; padding: 0 6px;
}
.dg-filters-row {
    display: flex; gap: 1rem; flex-wrap: wrap;
    align-items: flex-end; margin-top: 0.5rem;
}
.dg-filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.dg-filter-group label {
    font-size: 11px; font-weight: 600; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.04em;
}
.dg-filter-group input,
.dg-filter-group select {
    padding: 7px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 7px;
    font-size: 13px; font-family: var(--font);
    color: var(--text); background: var(--bg);
    outline: none; transition: border-color var(--transition);
}
.dg-filter-group input:focus,
.dg-filter-group select:focus { border-color: var(--green); }
.dg-filter-group select { cursor: pointer; }

/* ── Permissions matrix ──────────────────────────────────────── */
.perm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.perm-table th {
    padding: 10px 14px; background: var(--bg-2);
    font-weight: 600; color: var(--text-3); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border); text-align: left;
}
.perm-table th:not(:first-child) { text-align: center; }
.perm-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.perm-table td:not(:first-child) { text-align: center; }
.perm-table tr:last-child td { border-bottom: none; }
.perm-table tr:hover td { background: var(--bg-2); }
.perm-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--green); }
.perm-check:disabled { opacity: 0.4; cursor: not-allowed; }
.role-badge { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.role-admin  { background: #f0f4ff; color: #3b5bdb; }
.role-power  { background: #fff3bf; color: #e67700; }
.role-user   { background: #e6fcf5; color: #2b8a3e; }
.role-client { background: #f8f0fc; color: #862e9c; }

/* ── Texts page ──────────────────────────────────────────────── */
.txt-cell { display: block; font-size: 13px; line-height: 1.5; max-width: 320px; white-space: pre-wrap; word-break: break-word; }
.texts-stats-bar { display: flex; align-items: center; gap: 2rem; padding: 12px 1.25rem; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; }
.texts-stat { display: flex; align-items: baseline; gap: 6px; }
.texts-stat-value { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.texts-stat-label { font-size: 12px; color: var(--text-3); }
.texts-stat-ok   { color: var(--green); }
.texts-stat-warn { color: #e67e22; }
.texts-progress { flex: 1; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin-left: auto; max-width: 200px; }
.texts-progress-bar { height: 100%; background: var(--green); border-radius: 3px; transition: width 0.5s ease; }

/* ── Revenue strip (settings index) ─────────────────────────── */
.revenue-strip { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1.25rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; height: 80px; flex-shrink: 0; }
.revenue-strip-info { flex-shrink: 0; min-width: 80px; }
.revenue-strip-value { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.revenue-strip-delta { font-size: 15px; font-weight: 700; }
.revenue-strip-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.revenue-strip-chart { flex: 1; height: 60px; overflow: hidden; }

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .settings-page-layout { padding: 1rem; }
    .dg-filters-row { gap: 0.75rem; }
    .dg-filter-group { min-width: 120px; }
    .settings-pages-grid { grid-template-columns: 1fr 1fr; }
}
-e 

/* DOCS PAGE */
/* docs.css — Skillo Docs Page */

.docs-section { padding: 5rem 0 3rem; }
.docs-card-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.docs-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.docs-body { flex: 1; }
.docs-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.docs-desc  { font-size: 14px; color: var(--text-2); margin: 0 0 0.75rem; }
.docs-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.docs-links a { font-size: 13px; color: var(--green); text-decoration: none; font-weight: 500; }
.docs-help  { margin-top: 3rem; padding: 1.5rem; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--border); }
.docs-help-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.docs-help-body  { font-size: 14px; color: var(--text-2); margin: 0 0 1rem; }

@media (max-width: 600px) {
    .docs-section { padding: 3rem 0 2rem; }
    .docs-card-inner { flex-direction: column; gap: 0.75rem; }
}
-e 

/* FEATURES PAGE */
/* features.css — Skillo Features Page */

.feature-hero { padding: 5rem 0 3rem; text-align: center; }
.feature-cta  { text-align: center; max-width: 600px; margin: 0 auto; }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.feature-img {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.feature-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}
.feature-img-fallback {
    background: var(--bg-2);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    font-size: 80px;
    text-align: center;
}
.feature-emoji  { font-size: 36px; margin-bottom: 1rem; }
.feature-text   { order: 1; }
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.feature-bullets .check { color: var(--green); font-weight: 600; flex-shrink: 0; }

@media (max-width: 768px) {
    .feature-hero  { padding: 3rem 0 2rem; }
    .feature-grid  { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature-img   { order: -1 !important; }
    .feature-img img { height: 200px; }
    .feature-text  { order: 1 !important; }
}
-e 

/* PRICING PAGE */
/* pricing.css — Skillo Pricing Page */

.pricing-hero  { padding: 5rem 0 3rem; text-align: center; }
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 6px 8px;
}
.pricing-toggle button {
    padding: 8px 20px;
    border-radius: 24px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.2s;
}
.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: start;
}
.plan-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    position: relative;
}
.plan-card.featured {
    border: 2px solid var(--green);
    box-shadow: 0 8px 32px rgba(45,106,79,0.12);
}
.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.plan-name  { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.plan-price { font-size: 36px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.plan-period { font-size: 14px; font-weight: 400; color: var(--text-3); }
.plan-sub   { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.plan-learners { font-size: 13px; color: var(--text-2); margin-bottom: 1.25rem; }
.plan-cta {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    transition: all 0.15s;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--text);
}
.plan-cta:hover { opacity: 0.85; }
.plan-cta.primary { background: var(--green); color: #fff; border-color: var(--green); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 12px 16px; }
.compare-table th { font-weight: 600; }
.delivery-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.delivery-table th, .delivery-table td { padding: 14px 16px; }

@media (max-width: 900px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .plans-grid { grid-template-columns: 1fr; }
    .pricing-hero { padding: 3rem 0 2rem; }
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 8px 10px; }
}
-e 

/* PRIVACY PAGE */
/* privacy.css — Skillo Privacy Policy */

.prose h2 { font-size: 18px; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--text); }
.prose p   { font-size: 15px; color: var(--text-2); margin-bottom: 1rem; line-height: 1.75; }
.prose ul  { margin: 0 0 1rem 1.5rem; display: flex; flex-direction: column; gap: 6px; }
.prose li  { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.prose strong { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
    .prose h2 { font-size: 16px; }
    .prose p, .prose li { font-size: 14px; }
}

/* LAYOUT UTILITIES & FOOTER STICKY */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { flex-shrink: 0; }
.footer { margin-top: auto; }

.page-wrap {
    flex: 1;
    padding: 2rem 20px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.page-header h2 { margin: 0; }
.page-header-actions { margin-left: auto; display: flex; gap: 8px; }

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.max-w-sm { max-width: 560px; }

@media (max-width: 768px) {
    .page-wrap { padding: 1rem; }
}
