/* ==========================================================
   THEMECRAFT ULTRA — PREMIUM DESIGN SYSTEM v2.0
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    /* Brand Identity - Primary */
    --tc-primary: #6366f1;
    --tc-primary-light: #818cf8;
    --tc-primary-lighter: #c7d2fe;
    --tc-primary-soft: #eef0ff;
    --tc-primary-dark: #4f46e5;
    --tc-primary-darker: #3730a3;

    /* Accent */
    --tc-accent: #06b6d4;
    --tc-accent-light: #22d3ee;
    --tc-accent-lighter: #a5f3fc;
    --tc-accent-soft: #ecfeff;
    --tc-accent-dark: #0891b2;
    --tc-accent-darker: #155e75;

    /* Semantic */
    --tc-success: #10b981;
    --tc-success-light: #34d399;
    --tc-success-lighter: #a7f3d0;
    --tc-success-soft: #d1fae5;
    --tc-success-dark: #059669;
    --tc-success-darker: #065f46;

    --tc-warn: #f59e0b;
    --tc-warn-light: #fbbf24;
    --tc-warn-lighter: #fde68a;
    --tc-warn-soft: #fef3c7;
    --tc-warn-dark: #d97706;
    --tc-warn-darker: #92400e;

    --tc-danger: #ef4444;
    --tc-danger-light: #f87171;
    --tc-danger-lighter: #fecaca;
    --tc-danger-soft: #fee2e2;
    --tc-danger-dark: #dc2626;
    --tc-danger-darker: #991b1b;

    --tc-info: #3b82f6;
    --tc-info-light: #60a5fa;
    --tc-info-lighter: #bfdbfe;
    --tc-info-soft: #dbeafe;
    --tc-info-dark: #2563eb;
    --tc-info-darker: #1e40af;

    /* Neutrals - Light Theme */
    --tc-bg: #f8f9fc;
    --tc-bg-2: #f1f3f9;
    --tc-surface: #ffffff;
    --tc-surface-2: #fafbfd;
    --tc-surface-3: #f5f6fa;
    --tc-elevated: rgba(255, 255, 255, 0.78);
    --tc-glass: rgba(255, 255, 255, 0.65);
    --tc-overlay: rgba(255, 255, 255, 0.5);

    /* Text */
    --tc-text: #0a0e1a;
    --tc-text-soft: #3a4256;
    --tc-text-muted: #8892a6;
    --tc-text-faint: #c4cad6;
    --tc-text-invert: #ffffff;

    /* Borders */
    --tc-border: #e8eaf0;
    --tc-border-strong: #d8dbe4;
    --tc-divider: #f1f3f8;
    --tc-border-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.2));

    /* Code blocks */
    --tc-code-bg: #0a0e1a;
    --tc-code-header: #050810;
    --tc-code-border: #1a1f3a;
    --tc-code-text: #e2e8f0;
    --tc-code-comment: #64748b;
    --tc-code-tag: #818cf8;
    --tc-code-attr: #06b6d4;
    --tc-code-value: #fbbf24;

    /* Premium Shadows - Multi-layer */
    --tc-shadow-xs: 0 1px 2px rgba(10, 14, 26, 0.04);
    --tc-shadow-sm: 0 2px 4px rgba(10, 14, 26, 0.04), 0 1px 2px rgba(10, 14, 26, 0.02);
    --tc-shadow: 0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.03);
    --tc-shadow-md: 0 12px 28px rgba(10, 14, 26, 0.08), 0 4px 10px rgba(10, 14, 26, 0.04);
    --tc-shadow-lg: 0 24px 48px rgba(10, 14, 26, 0.10), 0 8px 16px rgba(10, 14, 26, 0.05);
    --tc-shadow-xl: 0 32px 64px rgba(10, 14, 26, 0.12), 0 12px 24px rgba(10, 14, 26, 0.06);
    --tc-shadow-inner: inset 0 1px 2px rgba(10, 14, 26, 0.04);
    --tc-shadow-glow: 0 0 0 4px rgba(99, 102, 241, 0.14);
    --tc-shadow-glow-soft: 0 8px 32px rgba(99, 102, 241, 0.18);

    /* Radii */
    --tc-radius-xs: 4px;
    --tc-radius-sm: 6px;
    --tc-radius: 10px;
    --tc-radius-md: 14px;
    --tc-radius-lg: 20px;
    --tc-radius-xl: 28px;
    --tc-radius-pill: 999px;

    /* Motion */
    --tc-ease: cubic-bezier(0.32, 0.72, 0, 1);
    --tc-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --tc-duration: 200ms;
    --tc-duration-slow: 400ms;
    --tc-theme-transition: background-color 0.3s var(--tc-ease), color 0.3s var(--tc-ease), border-color 0.3s var(--tc-ease);
}

/* ===========================
   SECTION TITLES
   =========================== */
.tc-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-text-muted);
    margin: 0 0 0.75rem 0;
    padding-left: 0.5rem;
    border-left: 3px solid var(--tc-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 18px;
}

/* ===========================
   DARK THEME OVERRIDE
   =========================== */
[data-theme="dark"] {
    --tc-bg: #0a0e1a;
    --tc-bg-2: #11162a;
    --tc-surface: #161b35;
    --tc-surface-2: #1a1f3a;
    --tc-surface-3: #232849;
    --tc-elevated: rgba(22, 27, 53, 0.85);
    --tc-glass: rgba(22, 27, 53, 0.7);
    --tc-overlay: rgba(22, 27, 53, 0.5);

    --tc-text: #f5f7fa;
    --tc-text-soft: #c8cfdc;
    --tc-text-muted: #9ba3b5;
    --tc-text-faint: #6b7385;
    --tc-text-invert: #0a0e1a;

    --tc-border: #2a3050;
    --tc-border-strong: #3a4262;
    --tc-divider: #232849;

    --tc-primary-soft: rgba(99, 102, 241, 0.18);
    --tc-success-soft: rgba(16, 185, 129, 0.18);
    --tc-warn-soft: rgba(245, 158, 11, 0.18);
    --tc-danger-soft: rgba(239, 68, 68, 0.18);
    --tc-info-soft: rgba(59, 130, 246, 0.18);

    --tc-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --tc-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --tc-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
    --tc-shadow-md: 0 12px 28px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    --tc-shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
    --tc-shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.7), 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Bootstrap overrides for dark mode (text-muted, etc.) */
[data-theme="dark"] {
    color-scheme: dark;
}
[data-theme="dark"] .text-muted,
[data-theme="dark"] .form-text,
[data-theme="dark"] .tc-text-muted { color: var(--tc-text-muted) !important; }
[data-theme="dark"] .text-body { color: var(--tc-text) !important; }
[data-theme="dark"] .text-body-secondary { color: var(--tc-text-soft) !important; }
[data-theme="dark"] .text-reset { color: inherit !important; }
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select { color: var(--tc-text); background-color: var(--tc-surface-2); border-color: var(--tc-border); }
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder { color: var(--tc-text-faint); }
[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus { background-color: var(--tc-surface); color: var(--tc-text); border-color: var(--tc-primary); }
[data-theme="dark"] .form-control:disabled,
[data-theme="dark"] .form-select:disabled { background-color: var(--tc-surface-2); color: var(--tc-text-faint); }
[data-theme="dark"] .dropdown-menu { background-color: var(--tc-surface); border-color: var(--tc-border); color: var(--tc-text); }
[data-theme="dark"] .dropdown-item { color: var(--tc-text-soft); }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus { background-color: var(--tc-surface-2); color: var(--tc-text); }
[data-theme="dark"] .dropdown-divider { border-color: var(--tc-border); }
[data-theme="dark"] hr { color: var(--tc-border); border-color: var(--tc-border); opacity: 1; }

/* Smooth theme transition ONLY when toggling (anti-FOUC + zero overhead) */

/* ===========================
   BASE
   =========================== */
* { box-sizing: border-box; }

body {
    background: var(--tc-bg);
    color: var(--tc-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--tc-text);
    line-height: 1.2;
}

/* === Typography Scale (Inter family) === */
.tc-h1, .tc-display-1 { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.tc-h2, .tc-display-2 { font-size: clamp(1.875rem, 3.2vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.tc-h3, .tc-display-3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.tc-h4 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.tc-h5 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.tc-h6 { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.4; }
.tc-display-4 { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; }
.tc-display-5 { font-size: 4.25rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1; }
.tc-display-6 { font-size: 5rem; font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; }

.tc-lead { font-size: 1.125rem; font-weight: 400; line-height: 1.65; color: var(--tc-text-soft); letter-spacing: -0.005em; }
.tc-text-xs { font-size: 0.75rem; line-height: 1.5; }
.tc-text-sm { font-size: 0.85rem; line-height: 1.5; }
.tc-text-lg { font-size: 1.0625rem; line-height: 1.55; }
.tc-text-xl { font-size: 1.25rem; line-height: 1.5; }
.tc-text-muted-soft { color: var(--tc-text-muted); }
.tc-text-primary-grad { background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.tc-text-mono { font-family: 'JetBrains Mono', 'SF Mono', monospace; }

.tc-fw-light { font-weight: 300; }
.tc-fw-normal { font-weight: 400; }
.tc-fw-medium { font-weight: 500; }
.tc-fw-semibold { font-weight: 600; }
.tc-fw-bold { font-weight: 700; }
.tc-fw-black { font-weight: 900; }

.tc-typo-card { background: var(--tc-surface); border: 1px solid var(--tc-border); border-radius: var(--tc-radius-md); padding: 1.25rem 1.5rem; transition: border-color 200ms, transform 200ms; }
.tc-typo-card:hover { border-color: var(--tc-primary); transform: translateY(-2px); }
.tc-typo-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.tc-typo-card-tag { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 600; color: var(--tc-primary); background: var(--tc-primary-soft); padding: 2px 8px; border-radius: var(--tc-radius-pill); }
.tc-typo-card-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--tc-text-muted); }

/* === Text Color Utilities === */
.tc-text-primary { color: var(--tc-primary) !important; }
.tc-text-primary-light { color: var(--tc-primary-light) !important; }
.tc-text-primary-lighter { color: var(--tc-primary-lighter) !important; }
.tc-text-primary-dark { color: var(--tc-primary-dark) !important; }
.tc-text-primary-darker { color: var(--tc-primary-darker) !important; }
.tc-text-accent { color: var(--tc-accent) !important; }
.tc-text-accent-light { color: var(--tc-accent-light) !important; }
.tc-text-accent-lighter { color: var(--tc-accent-lighter) !important; }
.tc-text-accent-dark { color: var(--tc-accent-dark) !important; }
.tc-text-accent-darker { color: var(--tc-accent-darker) !important; }
.tc-text-success { color: var(--tc-success) !important; }
.tc-text-success-light { color: var(--tc-success-light) !important; }
.tc-text-success-lighter { color: var(--tc-success-lighter) !important; }
.tc-text-success-dark { color: var(--tc-success-dark) !important; }
.tc-text-warning { color: var(--tc-warning) !important; }
.tc-text-warning-light { color: var(--tc-warning-light) !important; }
.tc-text-warning-lighter { color: var(--tc-warning-lighter) !important; }
.tc-text-warning-dark { color: var(--tc-warning-dark) !important; }
.tc-text-danger { color: var(--tc-danger) !important; }
.tc-text-danger-light { color: var(--tc-danger-light) !important; }
.tc-text-danger-lighter { color: var(--tc-danger-lighter) !important; }
.tc-text-danger-dark { color: var(--tc-danger-dark) !important; }
.tc-text-info { color: var(--tc-info) !important; }
.tc-text-info-light { color: var(--tc-info-light) !important; }
.tc-text-info-lighter { color: var(--tc-info-lighter) !important; }
.tc-text-info-dark { color: var(--tc-info-dark) !important; }
.tc-text-muted { color: var(--tc-text-muted) !important; }
.tc-text-soft { color: var(--tc-text-soft) !important; }
.tc-text-faint { color: var(--tc-text-faint) !important; }
.tc-text-invert { color: var(--tc-text-invert) !important; }

/* === Background Color Utilities === */
.tc-bg-primary { background-color: var(--tc-primary) !important; color: #fff; }
.tc-bg-primary-light { background-color: var(--tc-primary-light) !important; color: #fff; }
.tc-bg-primary-lighter { background-color: var(--tc-primary-lighter) !important; }
.tc-bg-primary-soft { background-color: var(--tc-primary-soft) !important; color: var(--tc-primary-darker); }
.tc-bg-primary-dark { background-color: var(--tc-primary-dark) !important; color: #fff; }
.tc-bg-primary-darker { background-color: var(--tc-primary-darker) !important; color: #fff; }
.tc-bg-accent { background-color: var(--tc-accent) !important; color: #fff; }
.tc-bg-accent-light { background-color: var(--tc-accent-light) !important; color: var(--tc-accent-darker); }
.tc-bg-accent-lighter { background-color: var(--tc-accent-lighter) !important; }
.tc-bg-accent-soft { background-color: var(--tc-accent-soft) !important; color: var(--tc-accent-darker); }
.tc-bg-accent-dark { background-color: var(--tc-accent-dark) !important; color: #fff; }
.tc-bg-accent-darker { background-color: var(--tc-accent-darker) !important; color: #fff; }
.tc-bg-success { background-color: var(--tc-success) !important; color: #fff; }
.tc-bg-success-light { background-color: var(--tc-success-light) !important; color: #fff; }
.tc-bg-success-lighter { background-color: var(--tc-success-lighter) !important; }
.tc-bg-success-soft { background-color: var(--tc-success-soft) !important; color: var(--tc-success-darker); }
.tc-bg-success-dark { background-color: var(--tc-success-dark) !important; color: #fff; }
.tc-bg-warning { background-color: var(--tc-warning) !important; color: #fff; }
.tc-bg-warning-light { background-color: var(--tc-warning-light) !important; color: #fff; }
.tc-bg-warning-lighter { background-color: var(--tc-warning-lighter) !important; }
.tc-bg-warning-soft { background-color: var(--tc-warning-soft) !important; color: var(--tc-warning-darker); }
.tc-bg-warning-dark { background-color: var(--tc-warning-dark) !important; color: #fff; }
.tc-bg-danger { background-color: var(--tc-danger) !important; color: #fff; }
.tc-bg-danger-light { background-color: var(--tc-danger-light) !important; color: #fff; }
.tc-bg-danger-lighter { background-color: var(--tc-danger-lighter) !important; }
.tc-bg-danger-soft { background-color: var(--tc-danger-soft) !important; color: var(--tc-danger-darker); }
.tc-bg-danger-dark { background-color: var(--tc-danger-dark) !important; color: #fff; }
.tc-bg-info { background-color: var(--tc-info) !important; color: #fff; }
.tc-bg-info-light { background-color: var(--tc-info-light) !important; color: #fff; }
.tc-bg-info-lighter { background-color: var(--tc-info-lighter) !important; }
.tc-bg-info-soft { background-color: var(--tc-info-soft) !important; color: var(--tc-info-darker); }
.tc-bg-info-dark { background-color: var(--tc-info-dark) !important; color: #fff; }
.tc-bg-surface { background-color: var(--tc-surface) !important; }
.tc-bg-surface-2 { background-color: var(--tc-surface-2) !important; }
.tc-bg-bg-2 { background-color: var(--tc-bg-2) !important; }
.tc-bg-border { background-color: var(--tc-border) !important; }
.tc-bg-faint { background-color: var(--tc-text-faint) !important; }
.tc-bg-muted { background-color: var(--tc-text-muted) !important; color: #fff; }
.tc-bg-soft { background-color: var(--tc-text-soft) !important; color: #fff; }
.tc-bg-text { background-color: var(--tc-text) !important; color: #fff; }

/* === Color swatch: circle + label === */
.tc-color-swatch { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.65rem 0.9rem; border-radius: var(--tc-radius); background: var(--tc-surface-2); border: 1px solid var(--tc-border); transition: transform 150ms, box-shadow 150ms, border-color 150ms; }
.tc-color-swatch:hover { transform: translateY(-2px); box-shadow: var(--tc-shadow-sm); border-color: var(--tc-primary); }
.tc-color-swatch-dot { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.1); }
.tc-color-swatch-label { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 600; color: var(--tc-text); }

a { color: var(--tc-primary); text-decoration: none; transition: color 150ms var(--tc-ease); }
a:hover { color: var(--tc-primary-dark); }

code, kbd, pre {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-feature-settings: "calt" 1;
}

code {
    background: var(--tc-surface-2);
    color: var(--tc-primary);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--tc-border);
    font-size: 0.82em;
    font-weight: 500;
}

kbd {
    background: var(--tc-surface);
    color: var(--tc-text-soft);
    padding: 2px 7px;
    border-radius: 5px;
    border: 1px solid var(--tc-border-strong);
    font-size: 0.75em;
    box-shadow: 0 1px 0 var(--tc-border-strong);
    font-weight: 500;
}

::selection { background: rgba(99, 102, 241, 0.2); color: var(--tc-text); }

/* ===========================
   NAVBAR PREMIUM
   =========================== */
.tc-navbar {
    background: var(--tc-elevated);
    backdrop-filter: saturate(200%) blur(20px);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid var(--tc-border);
    padding: 0.875rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 64px;
}

/* ===========================
   SHOWCASE WRAP
   =========================== */
.showcase-wrap {
    overflow-x: clip;
    max-width: 100vw;
}

html { scroll-behavior: smooth; overflow-x: clip; box-shadow: none !important; }
html::before, html::after { display: none !important; content: none !important; }
body { overflow-x: clip; box-shadow: none !important; isolation: isolate; }
body::before, body::after { display: none !important; content: none !important; }

/* Scrollbars premium — sutiles, con gradiente del tema y fade en hover */
html { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.35) transparent; }
body { scrollbar-width: thin; scrollbar-color: rgba(99, 102, 241, 0.35) transparent; }
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
html::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.45), rgba(168, 85, 247, 0.45));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 200ms ease;
}
html::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.85), rgba(168, 85, 247, 0.85));
    background-clip: padding-box;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 8px;
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: background 200ms ease;
}
*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(168, 85, 247, 0.6));
    background-clip: padding-box;
}

.section { scroll-margin-top: 80px; }
.section .section-head { scroll-margin-top: 80px; }

/* ===========================
   TOC (Table of Contents)
   =========================== */
.toc {
    position: sticky;
    top: 84px;
    padding: 1.25rem;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
}
.toc a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    color: var(--tc-text-soft);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: var(--tc-radius-sm);
    margin-bottom: 2px;
    transition: all 150ms;
    border-left: 2px solid transparent;
}
.toc a i { font-size: 0.9rem; color: var(--tc-text-muted); transition: color 150ms; }
.toc a:hover { background: var(--tc-surface-2); color: var(--tc-text); }
.toc a:hover i { color: var(--tc-primary); }
.toc a.active {
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    font-weight: 600;
    border-left-color: var(--tc-primary);
}
.toc a.active i { color: var(--tc-primary); }

.tc-navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--tc-text);
    letter-spacing: -0.035em;
}

.tc-brand-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--tc-shadow-glow-soft);
    position: relative;
    overflow: hidden;
}

.tc-brand-mark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.tc-navbar-brand:hover .tc-brand-mark::after { opacity: 1; }

.tc-version-pill {
    font-size: 0.65rem;
    font-weight: 700;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    padding: 2px 8px;
    border-radius: var(--tc-radius-pill);
    margin-left: 0.4rem;
    letter-spacing: 0.04em;
}

/* ===========================
   BUTTONS - COMPLETE
   =========================== */
.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    border-radius: var(--tc-radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--tc-text);
    cursor: pointer;
    transition: all 180ms var(--tc-ease);
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    text-decoration: none;
    letter-spacing: -0.01em;
}
.tc-btn:focus-visible { outline: none; box-shadow: var(--tc-shadow-glow); }
.tc-btn:active { transform: scale(0.97); }
.tc-btn:hover { box-shadow: 0 4px 12px -2px rgba(0,0,0,0.08); }

/* Solid variants */
.tc-btn-primary { background: var(--tc-primary); color: #fff; }
.tc-btn-primary:hover { background: var(--tc-primary-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-accent { background: var(--tc-accent); color: #fff; }
.tc-btn-accent:hover { background: var(--tc-accent-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-success { background: var(--tc-success); color: #fff; }
.tc-btn-success:hover { background: var(--tc-success-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-warning { background: var(--tc-warn); color: #fff; }
.tc-btn-warning:hover { background: var(--tc-warn-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-danger { background: var(--tc-danger); color: #fff; }
.tc-btn-danger:hover { background: var(--tc-danger-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-info { background: var(--tc-info); color: #fff; }
.tc-btn-info:hover { background: var(--tc-info-dark); box-shadow: var(--tc-shadow-md); }
.tc-btn-dark { background: var(--tc-text); color: var(--tc-text-invert); }
.tc-btn-dark:hover { background: var(--tc-text-soft); box-shadow: var(--tc-shadow-md); }
.tc-btn-light { background: var(--tc-surface); color: var(--tc-text); border-color: var(--tc-border); }
.tc-btn-light:hover { background: var(--tc-surface-2); box-shadow: var(--tc-shadow); }

/* Outline variants */
.tc-btn-outline { background: transparent; border: 1px solid var(--tc-border); color: var(--tc-text); }
.tc-btn-outline:hover { background: var(--tc-surface-2); border-color: var(--tc-text); }
.tc-btn-outline-primary { color: var(--tc-primary); border-color: var(--tc-primary-lighter); }
.tc-btn-outline-primary:hover { background: var(--tc-primary-soft); border-color: var(--tc-primary); }
.tc-btn-outline-accent { color: var(--tc-accent); border-color: var(--tc-accent-lighter); }
.tc-btn-outline-accent:hover { background: var(--tc-accent-soft); border-color: var(--tc-accent); }
.tc-btn-outline-success { color: var(--tc-success); border-color: var(--tc-success-lighter); }
.tc-btn-outline-success:hover { background: var(--tc-success-soft); border-color: var(--tc-success); }
.tc-btn-outline-warning { color: var(--tc-warn); border-color: var(--tc-warn-lighter); }
.tc-btn-outline-warning:hover { background: var(--tc-warn-soft); border-color: var(--tc-warn); }
.tc-btn-outline-danger { color: var(--tc-danger); border-color: var(--tc-danger-lighter); }
.tc-btn-outline-danger:hover { background: var(--tc-danger-soft); border-color: var(--tc-danger); }
.tc-btn-outline-info { color: var(--tc-info); border-color: var(--tc-info-lighter); }
.tc-btn-outline-info:hover { background: var(--tc-info-soft); border-color: var(--tc-info); }

/* Ghost */
.tc-btn-ghost { background: transparent; color: var(--tc-text-soft); }
.tc-btn-ghost:hover { background: var(--tc-surface-2); color: var(--tc-text); }

/* Soft variants */
.tc-btn-soft { border: 1px solid transparent; }
.tc-btn-soft-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-btn-soft-primary:hover { background: var(--tc-primary-lighter); color: var(--tc-primary-darker); }
.tc-btn-soft-accent { background: var(--tc-accent-soft); color: var(--tc-accent-dark); }
.tc-btn-soft-accent:hover { background: var(--tc-accent-lighter); }
.tc-btn-soft-success { background: var(--tc-success-soft); color: var(--tc-success-dark); }
.tc-btn-soft-success:hover { background: var(--tc-success-lighter); }
.tc-btn-soft-warning { background: var(--tc-warn-soft); color: var(--tc-warn-darker); }
.tc-btn-soft-warning:hover { background: var(--tc-warn-lighter); }
.tc-btn-soft-danger { background: var(--tc-danger-soft); color: var(--tc-danger-dark); }
.tc-btn-soft-danger:hover { background: var(--tc-danger-lighter); }
.tc-btn-soft-info { background: var(--tc-info-soft); color: var(--tc-info-dark); }
.tc-btn-soft-info:hover { background: var(--tc-info-lighter); }

/* Sizes */
.tc-btn-xs { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
.tc-btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
.tc-btn-lg { padding: 0.8rem 1.4rem; font-size: 0.95rem; }
.tc-btn-xl { padding: 1rem 1.75rem; font-size: 1.05rem; border-radius: var(--tc-radius-md); }

/* Layout */
.tc-btn-block { display: flex; width: 100%; }
.tc-btn-icon { padding: 0.5rem; width: 36px; height: 36px; }
.tc-btn-icon.tc-btn-sm { width: 32px; height: 32px; }
.tc-btn-icon-lg { width: 48px; height: 48px; font-size: 1.2rem; }
.tc-btn-icon-round { padding: 0; width: 36px; height: 36px; border-radius: 50%; }

/* States */
.tc-btn:disabled, .tc-btn[disabled] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.tc-btn.active { box-shadow: inset 0 0 0 2px currentColor; }

/* Shine */
.tc-btn-shine {
    background-size: 250% 100%;
    background-position: 100% 0;
    transition: background-position 0.7s ease, background-color 0.18s var(--tc-ease), box-shadow 0.18s var(--tc-ease);
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
    letter-spacing: -0.005em;
}
.tc-btn-shine.tc-btn-primary { background-image: linear-gradient(110deg, var(--tc-primary-dark) 0%, var(--tc-primary) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-primary) 60%, var(--tc-primary-dark) 100%); }
.tc-btn-shine.tc-btn-accent { background-image: linear-gradient(110deg, var(--tc-accent-dark) 0%, var(--tc-accent) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-accent) 60%, var(--tc-accent-dark) 100%); }
.tc-btn-shine.tc-btn-success { background-image: linear-gradient(110deg, var(--tc-success-dark) 0%, var(--tc-success) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-success) 60%, var(--tc-success-dark) 100%); }
.tc-btn-shine.tc-btn-danger { background-image: linear-gradient(110deg, var(--tc-danger-dark) 0%, var(--tc-danger) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-danger) 60%, var(--tc-danger-dark) 100%); }
.tc-btn-shine.tc-btn-warning { background-image: linear-gradient(110deg, var(--tc-warn-dark) 0%, var(--tc-warn) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-warn) 60%, var(--tc-warn-dark) 100%); }
.tc-btn-shine.tc-btn-info { background-image: linear-gradient(110deg, var(--tc-info-dark) 0%, var(--tc-info) 40%, rgba(255, 255, 255, 0.28) 50%, var(--tc-info) 60%, var(--tc-info-dark) 100%); }
.tc-btn-shine.tc-btn-dark { background-image: linear-gradient(110deg, var(--tc-text) 0%, var(--tc-text) 40%, rgba(255, 255, 255, 0.18) 50%, var(--tc-text) 60%, var(--tc-text) 100%); }
.tc-btn-shine:hover { background-position: 0% 0; }

/* Pulse */
.tc-btn-pulse { animation: tc-pulse 2s infinite; }
@keyframes tc-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* Group */
.tc-btn-group {
    display: inline-flex;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 4px;
    gap: 2px;
}
.tc-btn-group .tc-btn { border: none; }
.tc-btn-group .tc-btn.active { background: var(--tc-primary-soft); color: var(--tc-primary); }

/* ===========================
   CARDS - ELEVATED
   =========================== */
.tc-card {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    box-shadow: var(--tc-shadow-xs);
    transition: all 280ms var(--tc-ease);
    position: relative;
    z-index: 1;
}

.tc-card:hover {
    box-shadow: var(--tc-shadow-md);
    transform: translateY(-2px);
    border-color: var(--tc-border-strong);
}

.tc-card-body { padding: 1.5rem; }
.tc-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--tc-divider);
    font-weight: 700;
    color: var(--tc-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: -0.015em;
    border-top-left-radius: var(--tc-radius-md);
    border-top-right-radius: var(--tc-radius-md);
}
.tc-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--tc-divider);
    background: var(--tc-surface-2);
    border-bottom-left-radius: var(--tc-radius-md);
    border-bottom-right-radius: var(--tc-radius-md);
}

.tc-card-glass {
    background: var(--tc-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.5);
}

.tc-card-gradient {
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-accent) 100%);
    color: #fff;
    border: none;
}
.tc-card-gradient .tc-card-header {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.15);
}

/* ===========================
   METRIC CARDS
   =========================== */
.tc-metric {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 280ms var(--tc-ease);
    box-shadow: var(--tc-shadow-xs);
}

.tc-metric:hover {
    box-shadow: var(--tc-shadow-md);
    transform: translateY(-2px);
}

.tc-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-accent));
    opacity: 0.85;
}

.tc-metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tc-text-muted);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tc-metric-value {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--tc-text);
    font-variant-numeric: tabular-nums;
}

.tc-metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--tc-radius-pill);
    margin-top: 0.6rem;
    letter-spacing: 0.01em;
}

.tc-metric-trend.up { background: rgba(16, 185, 129, 0.1); color: #047857; }
.tc-metric-trend.down { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.tc-metric-trend.flat { background: var(--tc-surface-2); color: var(--tc-text-soft); }

/* ===========================
   FORMS
   =========================== */
.tc-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--tc-text);
    margin-bottom: 0.45rem;
    letter-spacing: -0.005em;
}

.tc-input, .tc-select, .tc-textarea {
    width: 100%;
    height: 40px;
    padding: 0 0.875rem;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    color: var(--tc-text);
    font-size: 0.875rem;
    transition: all 180ms var(--tc-ease);
    font-family: inherit;
    box-shadow: var(--tc-shadow-inner);
}

.tc-textarea { height: auto; min-height: 100px; padding: 0.75rem 0.875rem; line-height: 1.5; }

.tc-input:hover, .tc-select:hover, .tc-textarea:hover { border-color: var(--tc-border-strong); }

.tc-input:focus, .tc-select:focus, .tc-textarea:focus {
    outline: none;
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow), var(--tc-shadow-inner);
    background: var(--tc-surface);
}

.tc-input::placeholder { color: var(--tc-text-faint); }

.tc-input-help {
    display: block;
    font-size: 0.75rem;
    color: var(--tc-text-muted);
    margin-top: 0.45rem;
}

/* ===========================
   TABLES
   =========================== */
.tc-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--tc-surface);
    font-size: 0.875rem;
}

.tc-card-body > .tc-table-wrapper:last-child,
.tc-card-body > .tc-table:last-child { border-bottom-left-radius: var(--tc-radius-md); border-bottom-right-radius: var(--tc-radius-md); overflow: hidden; }

.tc-table thead th {
    background: var(--tc-surface-2);
    color: var(--tc-text-muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--tc-border);
}

.tc-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tc-divider);
    color: var(--tc-text);
    transition: background 150ms;
    vertical-align: middle;
}

.tc-table tbody tr:last-child td { border-bottom: none; }
.tc-table tbody tr { transition: background 150ms var(--tc-ease); }
.tc-table tbody tr:hover td { background: var(--tc-surface-2); }

/* Table hover variante */
.tc-table-hover tbody tr { cursor: pointer; }
.tc-table-hover tbody tr.selected td { background: var(--tc-primary-soft); }
.tc-table-hover tbody tr.selected:hover td { background: var(--tc-primary-lighter); }

/* Table compact */
.tc-table-compact thead th { padding: 0.6rem 0.85rem; }
.tc-table-compact tbody td { padding: 0.6rem 0.85rem; font-size: 0.85rem; }

/* Table striped */
.tc-table-striped tbody tr:nth-child(even) td { background: var(--tc-surface-2); }

/* Table sortable */
.tc-table-sortable { cursor: pointer; user-select: none; }
.tc-table-sortable:hover { color: var(--tc-text); }
.tc-table-sortable.active { color: var(--tc-primary); }
.tc-table-sortable i { font-size: 0.7rem; opacity: 0.5; margin-left: 4px; }
.tc-table-sortable.active i { opacity: 1; }

/* Table checkbox column */
.tc-table-check { width: 40px; padding-left: 1rem; }
.tc-table-check input[type="checkbox"] { cursor: pointer; }

/* Table actions */
.tc-table-actions { width: 1%; white-space: nowrap; text-align: right; }
.tc-table-actions .tc-btn-icon { margin-left: 2px; }

/* Table wrapper with horizontal scroll */
.tc-table-wrapper { overflow-x: auto; }

/* Table toolbar */
.tc-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--tc-border);
    gap: 1rem;
    flex-wrap: wrap;
}
.tc-table-toolbar-left { flex: 1; min-width: 0; }
.tc-table-toolbar-right { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.tc-table-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--tc-text); }
.tc-table-subtitle { font-size: 0.8rem; color: var(--tc-text-muted); }

/* Table search */
.tc-table-search {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.tc-table-search i {
    position: absolute;
    left: 0.7rem;
    color: var(--tc-text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}
.tc-table-search input {
    padding: 0.45rem 0.85rem 0.45rem 2.2rem;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    font-size: 0.85rem;
    background: var(--tc-surface);
    color: var(--tc-text);
    min-width: 200px;
    transition: all 150ms;
}
.tc-table-search input:focus {
    outline: none;
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 3px var(--tc-primary-soft);
}

/* Table footer with pagination */
.tc-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--tc-border);
    flex-wrap: wrap;
    gap: 1rem;
}
.tc-table-info { font-size: 0.85rem; color: var(--tc-text-muted); }
.tc-table-info strong { color: var(--tc-text); }

/* Pagination */
.tc-pagination { display: inline-flex; gap: 4px; align-items: center; }
.tc-pagination-btn {
    min-width: 34px;
    height: 34px;
    padding: 0 0.6rem;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-sm);
    background: var(--tc-surface);
    color: var(--tc-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tc-pagination-btn:hover:not(:disabled):not(.active) { background: var(--tc-surface-2); border-color: var(--tc-primary-lighter); color: var(--tc-text); }
.tc-pagination-btn.active { background: var(--tc-primary); color: #fff; border-color: var(--tc-primary); }
.tc-pagination-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tc-pagination-dots { color: var(--tc-text-muted); padding: 0 0.25rem; }

/* Table tag (plan type) */
.tc-table-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--tc-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--tc-surface-2);
    color: var(--tc-text-soft);
}
.tc-table-tag-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-table-tag-info { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }

/* Table icon (project type) */
.tc-table-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--tc-radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.tc-table-icon-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-table-icon-success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tc-table-icon-warning { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.tc-table-icon-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }

/* Table progress with value */
.tc-table-progress { display: flex; align-items: center; gap: 0.5rem; }
.tc-table-progress .tc-progress { flex: 1; }
.tc-table-progress-value { font-size: 0.75rem; font-weight: 600; color: var(--tc-text-soft); min-width: 36px; text-align: right; }

/* ===========================
   BADGES
   =========================== */
.tc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--tc-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.5;
    white-space: nowrap;
}

.tc-badge-primary { background: var(--tc-primary-soft); color: var(--tc-primary-dark); }
.tc-badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; }
.tc-badge-warning { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.tc-badge-danger { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }
.tc-badge-info { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.tc-badge-neutral { background: var(--tc-surface-2); color: var(--tc-text-soft); }

.tc-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px currentColor;
    opacity: 0.3;
}

/* ===========================
   AVATARS
   =========================== */
.tc-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.78rem;
    line-height: 1 !important;
    flex-shrink: 0;
    border: 2px solid var(--tc-surface);
    letter-spacing: -0.02em;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
}

.tc-avatar-sm { width: 28px; height: 28px; font-size: 0.68rem; }
.tc-avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.tc-avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

.tc-avatar-stack { display: inline-flex; }
.tc-avatar-stack .tc-avatar:not(:first-child) { margin-left: -10px; }

.tc-avatar-status {
    position: relative;
    display: inline-block;
}
.tc-avatar-status::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: var(--tc-success);
    border: 2px solid var(--tc-surface);
    border-radius: 50%;
}
.tc-avatar-status.offline::after { background: var(--tc-text-faint); }
.tc-avatar-status.busy::after { background: var(--tc-danger); }

/* ===========================
   ALERTS
   =========================== */
.tc-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    border-radius: var(--tc-radius);
    border: 1px solid transparent;
    background: var(--tc-surface);
    box-shadow: var(--tc-shadow-xs);
}

.tc-alert-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #fff;
    box-shadow: var(--tc-shadow-sm);
}

.tc-alert-content { flex: 1; min-width: 0; }
.tc-alert-title { font-weight: 700; margin-bottom: 0.2rem; color: var(--tc-text); letter-spacing: -0.01em; }
.tc-alert-text { font-size: 0.85rem; color: var(--tc-text-soft); margin: 0; }

.tc-alert-info { background: #f0f7ff; border-color: #c7e0ff; }
.tc-alert-info .tc-alert-icon { background: var(--tc-info); }
.tc-alert-success { background: #f0fdf6; border-color: #bbf7d0; }
.tc-alert-success .tc-alert-icon { background: var(--tc-success); }
.tc-alert-warning { background: #fffbeb; border-color: #fde68a; }
.tc-alert-warning .tc-alert-icon { background: var(--tc-warn); }
.tc-alert-danger { background: #fef5f5; border-color: #fecaca; }
.tc-alert-danger .tc-alert-icon { background: var(--tc-danger); }

[data-theme="dark"] .tc-alert { background: var(--tc-surface-2); border-color: var(--tc-border); }
[data-theme="dark"] .tc-alert-info { background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.35); }
[data-theme="dark"] .tc-alert-info .tc-alert-icon { background: var(--tc-info); }
[data-theme="dark"] .tc-alert-success { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.35); }
[data-theme="dark"] .tc-alert-success .tc-alert-icon { background: var(--tc-success); }
[data-theme="dark"] .tc-alert-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .tc-alert-warning .tc-alert-icon { background: var(--tc-warn); }
[data-theme="dark"] .tc-alert-danger { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); }
[data-theme="dark"] .tc-alert-danger .tc-alert-icon { background: var(--tc-danger); }
[data-theme="dark"] .tc-alert-title { color: var(--tc-text); }
[data-theme="dark"] .tc-alert-text { color: var(--tc-text-soft); }
[data-theme="dark"] .tc-alert-close { color: var(--tc-text-muted); }
[data-theme="dark"] .tc-alert-close:hover { background: rgba(255,255,255,0.08); }

/* Alert close button */
.tc-alert-close {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tc-text-muted);
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: auto;
    transition: all 150ms;
    opacity: 0.6;
}
.tc-alert-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--tc-text);
    opacity: 1;
}
.tc-alert-close i { line-height: 1; }

/* Alert actions */
.tc-alert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tc-alert.dismissing {
    animation: tc-alert-out 280ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tc-alert-out {
    to {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: -8px;
        transform: translateX(20px);
    }
}

/* ===========================
   PROGRESS
   =========================== */
.tc-progress {
    width: 100%;
    height: 8px;
    background: var(--tc-surface-2);
    border-radius: var(--tc-radius-pill);
    overflow: hidden;
    box-shadow: var(--tc-shadow-inner);
}

.tc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tc-primary), var(--tc-accent));
    border-radius: var(--tc-radius-pill);
    transition: width 0.8s var(--tc-ease);
    position: relative;
    overflow: hidden;
}

.tc-progress-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===========================
   TABS
   =========================== */
.tc-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--tc-border);
    margin-bottom: 1.5rem;
    position: relative;
}

.tc-tab {
    padding: 0.75rem 1.1rem;
    color: var(--tc-text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 180ms var(--tc-ease), border-color 180ms var(--tc-ease);
    user-select: none;
}

.tc-tab:hover { color: var(--tc-text); }
.tc-tab.active { color: var(--tc-primary); border-bottom-color: var(--tc-primary); }

/* Tabs - Centrados y al final */
.tc-tabs-center { justify-content: center; }
.tc-tabs-end { justify-content: flex-end; }

/* ===========================
   ACCORDION
   =========================== */
.tc-accordion-item {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius) !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 180ms, box-shadow 180ms;
}
.tc-accordion-item.open {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow);
}

.tc-accordion-trigger {
    width: 100%;
    text-align: left;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--tc-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    transition: color 180ms;
}
.tc-accordion-trigger i { transition: transform 280ms var(--tc-ease); }
.tc-accordion-item.open .tc-accordion-trigger i { transform: rotate(180deg); }
.tc-accordion-item.open .tc-accordion-trigger { color: var(--tc-primary); }

.tc-accordion-content {
    padding: 0 1.25rem 1.1rem;
    color: var(--tc-text-soft);
    font-size: 0.875rem;
    display: none;
    line-height: 1.65;
}
.tc-accordion-item.open .tc-accordion-content { display: block; }

/* ===========================
   MODAL - PREMIUM
   =========================== */
.tc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--tc-ease);
}

.tc-modal-backdrop.show { opacity: 1; pointer-events: auto; }

.tc-modal {
    background: var(--tc-surface);
    border-radius: var(--tc-radius-lg);
    box-shadow: var(--tc-shadow-xl);
    max-width: 500px;
    width: 100%;
    flex: 0 1 500px;
    transform: translateY(20px) scale(0.96);
    transition: transform 320ms var(--tc-ease);
    overflow: hidden;
    border: 1px solid var(--tc-border);
}

.tc-modal-backdrop.show .tc-modal { transform: translateY(0) scale(1); }
.tc-modal-backdrop.show .tc-modal-side { transform: translateX(0); }

.tc-modal-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--tc-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tc-modal-body { padding: 1.5rem; }
.tc-modal-footer {
    padding: 1.1rem 1.5rem 1.5rem;
    border-top: 1px solid var(--tc-divider);
    background: var(--tc-surface-2);
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* ===========================
   TOAST
   =========================== */
.tc-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tc-text);
    color: var(--tc-text-invert);
    padding: 0.875rem 1.25rem;
    border-radius: var(--tc-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1080;
    max-width: 380px;
    animation: slideInUp 0.4s var(--tc-ease);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 500;
}
[data-theme="dark"] .tc-toast {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: rgba(0,0,0,0.2);
}
.tc-toast-title { font-weight: 700; font-size: 0.875rem; }
.tc-toast-msg { font-size: 0.8rem; opacity: 0.85; }

@keyframes slideInUp {
    from { transform: translate(-50%, 120%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.tc-toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tc-success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 0.8rem;
}

/* ===========================
   COMMAND PALETTE - UNIQUE
   =========================== */
.tc-command {
    background: var(--tc-surface);
    border-radius: var(--tc-radius-lg);
    box-shadow: var(--tc-shadow-xl);
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    border: 1px solid var(--tc-border);
}

.tc-command-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tc-divider);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tc-command-search i { color: var(--tc-text-muted); }

.tc-command-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    color: var(--tc-text);
    font-family: inherit;
}

.tc-command-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.5rem;
}

.tc-command-item {
    padding: 0.65rem 0.875rem;
    border-radius: var(--tc-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 120ms;
}
.tc-command-item:hover, .tc-command-item.active { background: var(--tc-primary-soft); }
.tc-command-item i { color: var(--tc-text-muted); width: 18px; }
.tc-command-item.active i { color: var(--tc-primary); }
.tc-command-shortcut { margin-left: auto; display: flex; gap: 4px; }

.tc-command-footer {
    padding: 0.6rem 1.25rem;
    border-top: 1px solid var(--tc-divider);
    background: var(--tc-surface-2);
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--tc-text-muted);
}

/* ===========================
   PRICING CARD
   =========================== */
.tc-pricing {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    padding: 2rem;
    position: relative;
    transition: all 280ms var(--tc-ease);
}
.tc-pricing:hover { transform: translateY(-4px); box-shadow: var(--tc-shadow-md); }

.tc-pricing.featured {
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f3a 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: var(--tc-shadow-lg);
}
.tc-pricing.featured .tc-pricing-name { color: #fff; }
.tc-pricing.featured .tc-pricing-price { color: #fff; }
.tc-pricing.featured .tc-pricing-feature { color: rgba(255,255,255,0.85); }
.tc-pricing.featured .tc-pricing-feature i { color: var(--tc-accent); }

[data-theme="dark"] .tc-pricing.featured {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #7c3aed 100%);
    color: #fff;
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3), 0 8px 16px rgba(124, 58, 237, 0.2);
}
[data-theme="dark"] .tc-pricing.featured .tc-pricing-name { color: #fff; }
[data-theme="dark"] .tc-pricing.featured .tc-pricing-price { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
[data-theme="dark"] .tc-pricing.featured .tc-pricing-desc { color: rgba(255,255,255,0.9); }
[data-theme="dark"] .tc-pricing.featured .tc-pricing-feature { color: rgba(255,255,255,0.95); }
[data-theme="dark"] .tc-pricing.featured .tc-pricing-feature i { color: #a5f3fc; }

.tc-pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--tc-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tc-pricing-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-text-muted);
    margin-bottom: 0.5rem;
}

.tc-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
}
.tc-pricing-price small {
    font-size: 1rem;
    font-weight: 500;
    color: var(--tc-text-muted);
    margin-left: 4px;
}
.tc-pricing.featured .tc-pricing-price small { color: rgba(255,255,255,0.6); }

.tc-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.tc-pricing-feature {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--tc-text-soft);
}
.tc-pricing-feature i { color: var(--tc-primary); width: 16px; flex-shrink: 0; }

/* ===========================
   FEATURE CARD
   =========================== */
.tc-feature {
    padding: 1.5rem;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    transition: all 280ms var(--tc-ease);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tc-feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--tc-shadow-md);
    border-color: var(--tc-primary);
}

.tc-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--tc-primary-soft), transparent 60%);
    opacity: 0;
    transition: opacity 280ms;
    pointer-events: none;
}
.tc-feature:hover::before { opacity: 1; }

.tc-feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--tc-primary-soft), rgba(6, 182, 212, 0.1));
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
}

.tc-feature h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.tc-feature p {
    font-size: 0.875rem;
    color: var(--tc-text-soft);
    margin: 0;
    line-height: 1.6;
    position: relative;
}

/* ===========================
   COLOR SWATCHES
   =========================== */
.tc-swatch {
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    overflow: hidden;
    background: var(--tc-surface);
    transition: all 220ms var(--tc-ease);
}
.tc-swatch:hover {
    transform: translateY(-3px);
    box-shadow: var(--tc-shadow);
}

.tc-swatch-color { height: 90px; position: relative; }
.tc-swatch-color::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.05));
}

.tc-swatch-info { padding: 0.875rem 1rem; font-size: 0.8rem; }
.tc-swatch-name { font-weight: 700; color: var(--tc-text); }
.tc-swatch-hex { color: var(--tc-text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; }

/* ===========================
   INSTALL METHODS
   =========================== */
.tc-install-method {
    background: var(--tc-surface);
    border: 2px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 200ms var(--tc-ease);
    height: 100%;
}
.tc-install-method:hover {
    border-color: var(--tc-primary);
    transform: translateY(-2px);
    box-shadow: var(--tc-shadow);
}
.tc-install-method.active {
    border-color: var(--tc-primary);
    background: var(--tc-primary-soft);
    box-shadow: var(--tc-shadow-glow);
}
.tc-install-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    transition: all 200ms;
}
.tc-install-method.active .tc-install-icon {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    box-shadow: var(--tc-shadow-glow-soft);
}
.tc-install-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--tc-text);
    margin-bottom: 0.15rem;
}
.tc-install-desc {
    font-size: 0.75rem;
    color: var(--tc-text-muted);
}

/* ===========================
   CODE WRAPPER
   =========================== */
.tc-code-wrapper {
    background: #0a0e1a;
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    border: none;
    box-shadow: var(--tc-shadow-md);
    margin: 0 0 1.5rem 0;
}
.tc-code-wrapper:not(.d-none) {
    margin-top: 1rem;
}
.tc-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: #050810;
    border-bottom: 1px solid #1a1f3a;
}
.tc-code-tabs {
    display: flex;
    gap: 0.25rem;
}
.tc-code-tab {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms;
}
.tc-code-tab:hover { color: #94a3b8; }
.tc-code-tab.active {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}
.tc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms;
    font-family: inherit;
}
.tc-copy-btn:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #818cf8;
}
.tc-copy-btn.copied {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

/* Override code block to match wrapper */
.tc-code-wrapper .tc-code-block {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 1.25rem 1.5rem;
    font-size: 0.82rem;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.7;
    overflow-x: auto;
}
.tc-code-wrapper .tc-code-block code {
    background: transparent;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
}
.tc-code-block .comment { color: #64748b; font-style: italic; }
.tc-code-block .tag { color: #818cf8; }
.tc-code-block .attr { color: #06b6d4; }
.tc-code-block .value { color: #fbbf24; }

/* ===========================
   THEME TOGGLE BUTTON
   =========================== */
.tc-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--tc-radius);
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    color: var(--tc-text-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 200ms var(--tc-ease);
    position: relative;
    overflow: hidden;
}
.tc-theme-toggle:hover {
    border-color: var(--tc-primary);
    color: var(--tc-primary);
    transform: scale(1.05);
}
.tc-theme-toggle .sun, .tc-theme-toggle .moon {
    position: absolute;
    transition: all 400ms var(--tc-ease-bounce);
}
.tc-theme-toggle .sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}
.tc-theme-toggle .moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
[data-theme="dark"] .tc-theme-toggle .sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}
[data-theme="dark"] .tc-theme-toggle .moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* ===========================
   COLOR PALETTE SHOWCASE
   =========================== */
.tc-palette-group {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    padding: 1.5rem;
    transition: all 200ms;
}
.tc-palette-group:hover {
    box-shadow: var(--tc-shadow-sm);
    transform: translateY(-2px);
}
.tc-palette-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tc-text-muted);
    margin-bottom: 0.75rem;
}
.tc-palette-shades {
    display: flex;
    border-radius: var(--tc-radius-sm);
    overflow: hidden;
    height: 56px;
    box-shadow: inset 0 0 0 1px var(--tc-border);
}
.tc-palette-shade {
    flex: 1;
    position: relative;
    cursor: pointer;
    transition: flex 200ms var(--tc-ease);
}
.tc-palette-shade:hover {
    flex: 1.5;
}
.tc-palette-shade::after {
    content: attr(data-hex);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0;
    transition: opacity 200ms;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    color: #fff;
    background: rgba(0,0,0,0.2);
}
.tc-palette-shade:hover::after { opacity: 1; }

/* ===========================
   FORM VALIDATION STATES
   =========================== */
.tc-input.is-valid {
    border-color: var(--tc-success);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310b981'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}
.tc-input.is-valid:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
    border-color: var(--tc-success);
}

.tc-input.is-invalid {
    border-color: var(--tc-danger);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ef4444'%3E%3Cpath d='M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}
.tc-input.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
    border-color: var(--tc-danger);
}

.tc-input:disabled, .tc-input[readonly] {
    background: var(--tc-surface-2);
    color: var(--tc-text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===========================
   FLOATING LABELS
   =========================== */
.tc-floating {
    position: relative;
    margin-bottom: 0.5rem;
}
.tc-floating-input {
    width: 100%;
    height: 52px;
    padding: 22px 14px 6px 14px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    color: var(--tc-text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all 180ms var(--tc-ease);
    outline: none;
}
.tc-floating-textarea {
    height: 110px;
    padding-top: 26px;
}
.tc-floating-label {
    position: absolute;
    left: 14px;
    top: 16px;
    color: var(--tc-text-muted);
    font-size: 0.875rem;
    pointer-events: none;
    transition: all 180ms var(--tc-ease);
    background: transparent;
}
.tc-floating-input:focus {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow);
}
.tc-floating-input:focus + .tc-floating-label,
.tc-floating-input:not(:placeholder-shown) + .tc-floating-label {
    top: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tc-primary);
}

/* ===========================
   COLOR PICKER
   =========================== */
.tc-color {
    width: 40px;
    height: 40px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    cursor: pointer;
    padding: 2px;
    background: var(--tc-surface);
    transition: all 180ms;
}
.tc-color:hover { border-color: var(--tc-primary); transform: scale(1.05); }
.tc-color::-webkit-color-swatch-wrapper { padding: 0; }
.tc-color::-webkit-color-swatch { border: none; border-radius: 6px; }

/* ===========================
   PASSWORD STRENGTH
   =========================== */
.tc-password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.tc-password-bar {
    flex: 1;
    height: 4px;
    background: var(--tc-border);
    border-radius: var(--tc-radius-pill);
    transition: all 300ms;
}
.tc-password-bar.active:nth-child(-n+2) { background: var(--tc-danger); }
.tc-password-bar.active:nth-child(3) { background: var(--tc-warn); }
.tc-password-bar.active:nth-child(4) { background: var(--tc-success); }

/* ===========================
   QUANTITY STEPPER
   =========================== */
.tc-quantity {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    overflow: hidden;
    background: var(--tc-surface);
    transition: all 180ms;
}
.tc-quantity:focus-within {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow);
}
.tc-quantity-btn {
    width: 38px;
    background: var(--tc-surface-2);
    border: none;
    color: var(--tc-text-soft);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 150ms;
    font-family: inherit;
}
.tc-quantity-btn:hover { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-quantity-input {
    width: 60px;
    border: none;
    text-align: center;
    font-weight: 600;
    color: var(--tc-text);
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    -moz-appearance: textfield;
}
.tc-quantity-input::-webkit-outer-spin-button,
.tc-quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===========================
   TAGS INPUT
   =========================== */
.tc-tags-input {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px;
    min-height: 48px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    transition: all 180ms;
    cursor: text;
}
.tc-tags-input:focus-within {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow);
}
.tc-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    padding: 3px 6px 3px 10px;
    border-radius: var(--tc-radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    animation: tagIn 200ms var(--tc-ease);
}
.tc-tag i {
    cursor: pointer;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 150ms;
}
.tc-tag i:hover { background: rgba(99, 102, 241, 0.2); }
.tc-tags-field {
    flex: 1;
    min-width: 120px;
    border: none;
    outline: none;
    padding: 4px 8px;
    background: transparent;
    font-size: 0.875rem;
    color: var(--tc-text);
    font-family: inherit;
}
.tc-tags-field::placeholder { color: var(--tc-text-faint); }

@keyframes tagIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===========================
   DROPDOWN (Portal pattern)
   =========================== */
.tc-dropdown {
    position: relative;
    display: inline-block;
}

.tc-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 99999;
    min-width: 200px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    box-shadow: var(--tc-shadow-lg);
    padding: 0.4rem;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.98);
    transition: all 180ms var(--tc-ease);
    pointer-events: none;
}

.tc-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.tc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    color: var(--tc-text-soft);
    cursor: pointer;
    border-radius: var(--tc-radius-sm);
    text-decoration: none;
    transition: all 150ms ease;
    user-select: none;
}
.tc-dropdown-item i { font-size: 1rem; opacity: 0.8; }
.tc-dropdown-item:hover { background: var(--tc-surface-2); color: var(--tc-text); }
.tc-dropdown-item.active { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-dropdown-item.danger { color: var(--tc-danger); }
.tc-dropdown-item.danger:hover { background: var(--tc-danger-soft); }

.tc-dropdown-header {
    padding: 0.5rem 0.9rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-text-muted);
}
.tc-dropdown-divider { height: 1px; background: var(--tc-border); margin: 0.4rem 0; }

.tc-dropdown-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    color: var(--tc-text-soft);
    cursor: pointer;
    transition: background 150ms;
    border-radius: var(--tc-radius-sm);
    margin: 0 0.4rem;
}
.tc-dropdown-check:hover { background: var(--tc-surface-2); color: var(--tc-text); }
.tc-dropdown-check input { display: none; }
.tc-dropdown-check i {
    color: var(--tc-primary);
    font-size: 1.1rem;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--tc-border);
    border-radius: 4px;
    transition: all 150ms;
}
.tc-dropdown-check input:checked + i {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #fff;
}
.tc-dropdown-check input:checked + i::before { content: "\f633"; font-family: 'bootstrap-icons'; }

/* Command palette (static showcase) */
.tc-command-palette {
    width: 100%;
    max-width: 320px;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    background: var(--tc-surface);
    overflow: hidden;
}

.tc-search-panel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid var(--tc-border);
    background: var(--tc-surface-2);
}

.tc-search-panel > i {
    color: var(--tc-text-muted);
    font-size: 0.95rem;
}

.tc-search-panel .tc-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.875rem;
    color: var(--tc-text-soft);
    box-shadow: none;
    outline: none;
}

.tc-search-panel .tc-input::placeholder {
    color: var(--tc-text-muted);
}

.tc-search-panel .tc-input:focus {
    box-shadow: none;
    outline: none;
}

.tc-search-panel .tc-shortcut {
    font-size: 0.65rem;
    padding: 2px 6px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 4px;
    color: var(--tc-text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.tc-command-list {
    padding: 0.4rem;
}

.tc-command-list .tc-dropdown-item {
    padding: 0.55rem 0.75rem;
}

.tc-command-list .tc-dropdown-item kbd {
    margin-left: auto;
    font-size: 0.65rem;
    padding: 2px 6px;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: 4px;
    color: var(--tc-text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.tc-command-list .tc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ===========================
   BREADCRUMB
   =========================== */
.tc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    flex-wrap: wrap;
}
.tc-breadcrumb-item { display: flex; align-items: center; gap: 0.4rem; }
.tc-breadcrumb-item a { color: var(--tc-text-soft); text-decoration: none; transition: color 150ms; }
.tc-breadcrumb-item a:hover { color: var(--tc-primary); }
.tc-breadcrumb-item.active { color: var(--tc-text); font-weight: 600; }
.tc-breadcrumb-separator { color: var(--tc-text-faint); font-size: 0.75rem; }

/* Breadcrumb Slash */
.tc-breadcrumb-slash .tc-breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 0.5rem;
    color: var(--tc-text-faint);
}
.tc-breadcrumb-slash .tc-breadcrumb-item { padding: 0; }

/* Breadcrumb Pill */
.tc-breadcrumb-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.4rem 0.6rem;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-pill);
    gap: 0.3rem;
    list-style: none;
}
.tc-breadcrumb-pill a, .tc-breadcrumb-pill .active {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--tc-radius-pill);
    text-decoration: none;
    color: var(--tc-text-soft);
    font-size: 0.8rem;
    transition: all 150ms;
}
.tc-breadcrumb-pill a:hover { background: var(--tc-surface); color: var(--tc-text); }
.tc-breadcrumb-pill .active { background: var(--tc-primary-soft); color: var(--tc-primary); font-weight: 600; }
.tc-breadcrumb-pill .tc-breadcrumb-sep { color: var(--tc-text-faint); font-size: 0.85rem; }

/* Breadcrumb Arrow */
.tc-breadcrumb-arrow {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
}
.tc-breadcrumb-arrow a, .tc-breadcrumb-arrow .active {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--tc-surface);
    color: var(--tc-text-soft);
    text-decoration: none;
    border: 1px solid var(--tc-border);
    border-right: none;
    font-size: 0.85rem;
    transition: all 150ms;
    white-space: nowrap;
    flex-shrink: 0;
}
.tc-breadcrumb-arrow a:last-of-type, .tc-breadcrumb-arrow .active { border-right: 1px solid var(--tc-border); }
.tc-breadcrumb-arrow a:first-child { border-top-left-radius: var(--tc-radius); border-bottom-left-radius: var(--tc-radius); }
.tc-breadcrumb-arrow > :last-child {
    border-top-right-radius: var(--tc-radius);
    border-bottom-right-radius: var(--tc-radius);
    border-right: 1px solid var(--tc-border);
}
.tc-breadcrumb-arrow > :last-child.active { border-color: var(--tc-primary); }
.tc-breadcrumb-arrow a:hover { background: var(--tc-surface-2); color: var(--tc-text); z-index: 1; }
.tc-breadcrumb-arrow .active { background: var(--tc-primary); color: #fff; border-color: var(--tc-primary); }
.tc-breadcrumb-arrow i { font-size: 0.7rem; opacity: 0.7; }

/* Breadcrumb ellipsis */
.tc-breadcrumb-ellipsis {
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: var(--tc-radius-sm);
    transition: all 150ms;
    user-select: none;
}
.tc-breadcrumb-ellipsis:hover { background: var(--tc-surface-2); }

/* ===========================
   PAGINATION
   =========================== */
.tc-pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.tc-page-item { display: inline-flex; }
.tc-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-sm);
    color: var(--tc-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 150ms var(--tc-ease);
    font-family: inherit;
}
.tc-page-link:hover {
    border-color: var(--tc-primary);
    color: var(--tc-primary);
    background: var(--tc-primary-soft);
}
.tc-page-item.active .tc-page-link {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #fff;
    box-shadow: var(--tc-shadow-sm);
}
.tc-page-item.disabled .tc-page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* Pagination Circle */
.tc-pagination-circle .tc-page-link { border-radius: 50%; min-width: 38px; height: 38px; padding: 0; }
.tc-pagination-circle .tc-page-item { display: inline-flex; }
.tc-pagination-circle { gap: 0.4rem; }

/* Pagination Outline */
.tc-pagination-outline .tc-page-link { background: transparent; border-color: var(--tc-border); }
.tc-pagination-outline .tc-page-link:hover { background: var(--tc-primary); color: #fff; border-color: var(--tc-primary); }
.tc-pagination-outline .tc-page-item.active .tc-page-link { background: transparent; color: var(--tc-primary); border-color: var(--tc-primary); box-shadow: none; }

/* Pagination Small */
.tc-pagination-sm .tc-page-link { min-width: 30px; height: 30px; font-size: 0.78rem; padding: 0 0.5rem; }

/* Pagination Compact */
.tc-pagination-compact .tc-page-link { min-width: 32px; height: 32px; font-size: 0.8rem; }

/* ===========================
   SPINNER
   =========================== */
.tc-spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--tc-border);
    border-top-color: var(--tc-primary);
    border-radius: 50%;
    animation: tc-spin 0.8s linear infinite;
}
.tc-spinner-sm { width: 1rem; height: 1rem; border-width: 2px; }
.tc-spinner-lg { width: 2.5rem; height: 2.5rem; border-width: 3px; }
.tc-spinner-accent { border-top-color: var(--tc-accent); }
.tc-spinner-success { border-top-color: var(--tc-success); }
.tc-spinner-light { border-color: rgba(255,255,255,0.3); border-top-color: #fff; }

@keyframes tc-spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   DOTS LOADER
   =========================== */
.tc-dots { display: inline-flex; gap: 4px; }
.tc-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--tc-primary);
    animation: tc-bounce 1.2s ease-in-out infinite;
}
.tc-dots span:nth-child(2) { animation-delay: 0.15s; }
.tc-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes tc-bounce {
    0%, 80%, 100% { transform: scale(0.5); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===========================
   LIST GROUP
   =========================== */
.tc-list-group {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    overflow: hidden;
}
.tc-list-group-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    color: var(--tc-text);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--tc-divider);
    background: var(--tc-surface);
    transition: background 150ms;
    cursor: pointer;
    text-decoration: none;
}
.tc-list-group-item:last-child { border-bottom: none; }
.tc-list-group-item:hover { background: var(--tc-surface-2); }
.tc-list-group-item.active { background: var(--tc-primary-soft); color: var(--tc-primary); border-left: 3px solid var(--tc-primary); padding-left: calc(1.1rem - 3px); }
.tc-list-group-item i { color: var(--tc-text-muted); width: 18px; }
.tc-list-group-item.active i { color: var(--tc-primary); }
.tc-list-group-item .ms-auto { color: var(--tc-text-muted); font-size: 0.75rem; }

/* List group badge */
.tc-list-group-badge {
    margin-left: auto;
    background: var(--tc-surface-2);
    color: var(--tc-text-soft);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--tc-radius-pill);
    min-width: 24px;
    text-align: center;
}
.tc-list-group-item.active .tc-list-group-badge { background: var(--tc-primary); color: #fff; }

/* List group danger */
.tc-list-group-item.danger { color: var(--tc-danger); }
.tc-list-group-item.danger i { color: var(--tc-danger); }
.tc-list-group-item.danger:hover { background: rgba(239, 68, 68, 0.08); }

/* List group flush */
.tc-list-group-flush { border: none; background: transparent; }
.tc-list-group-flush .tc-list-group-item { border: 1px solid var(--tc-border); margin-bottom: 0.5rem; border-radius: var(--tc-radius) !important; }
.tc-list-group-flush .tc-list-group-item:last-child { margin-bottom: 0; }

/* List group icon (notification style) */
.tc-list-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.tc-list-group-icon-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-list-group-icon-success { background: rgba(16, 185, 129, 0.1); color: var(--tc-success); }
.tc-list-group-icon-warning { background: rgba(245, 158, 11, 0.1); color: var(--tc-warning); }
.tc-list-group-icon-danger { background: rgba(239, 68, 68, 0.1); color: var(--tc-danger); }

/* List group with checkbox */
.tc-list-group-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--tc-primary);
    cursor: pointer;
}

/* ===========================
   NAVS & TABS EXTENDED
   =========================== */
.tc-nav-pills {
    display: inline-flex;
    gap: 0.25rem;
    background: var(--tc-surface-2);
    padding: 0.25rem;
    border-radius: var(--tc-radius);
    border: 1px solid var(--tc-border);
}
.tc-nav-pills .tc-nav-item {
    padding: 0.5rem 1rem;
    color: var(--tc-text-soft);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--tc-radius-sm);
    cursor: pointer;
    transition: all 150ms;
}
.tc-nav-pills .tc-nav-item:hover { color: var(--tc-text); }
.tc-nav-pills .tc-nav-item.active {
    background: var(--tc-surface);
    color: var(--tc-primary);
    box-shadow: var(--tc-shadow-sm);
}

/* Nav Pills - Contador */
.tc-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 0.4rem;
    background: var(--tc-surface);
    color: var(--tc-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--tc-radius-pill);
}
.tc-nav-pills .tc-nav-item.active .tc-nav-count { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-nav-count-success { background: rgba(16, 185, 129, 0.1) !important; color: var(--tc-success) !important; }
.tc-nav-count-warning { background: rgba(245, 158, 11, 0.1) !important; color: var(--tc-warning) !important; }
.tc-nav-count-neutral { background: var(--tc-surface-2) !important; color: var(--tc-text-muted) !important; }

/* Nav Pills - Solo Iconos */
.tc-nav-pills-icon { flex-direction: column; }
.tc-nav-pills-icon .tc-nav-item { padding: 0.55rem 0.7rem; }
.tc-nav-pills-icon .tc-nav-item i { font-size: 1.05rem; margin: 0; }

/* Nav Pills - Outline */
.tc-nav-pills-outline { background: transparent; border: none; }
.tc-nav-pills-outline .tc-nav-item { border: 1px solid var(--tc-border); }
.tc-nav-pills-outline .tc-nav-item.active {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-sm);
}

/* Nav Pills - Small */
.tc-nav-pills-sm { padding: 0.15rem; }
.tc-nav-pills-sm .tc-nav-item { padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* Nav Pills - Block (Full Width) */
.tc-nav-pills-block { display: flex; width: 100%; }
.tc-nav-pills-block .tc-nav-item { flex: 1; text-align: center; justify-content: center; }

/* ===========================
   SWITCH / TOGGLE
   =========================== */
.tc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.tc-switch input { opacity: 0; width: 0; height: 0; }
.tc-switch-slider {
    position: absolute;
    inset: 0;
    background: var(--tc-border-strong);
    border-radius: var(--tc-radius-pill);
    cursor: pointer;
    transition: all 200ms var(--tc-ease);
}
.tc-switch-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 200ms var(--tc-ease);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tc-switch input:checked + .tc-switch-slider {
    background: var(--tc-primary);
}
.tc-switch input:checked + .tc-switch-slider::before {
    transform: translateX(20px);
}

/* ===========================
   CHECKBOX & RADIO - PREMIUM
   =========================== */
.tc-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    user-select: none;
    font-size: 0.875rem;
    color: var(--tc-text);
    font-weight: 500;
}
.tc-check input { position: absolute; opacity: 0; pointer-events: none; }
.tc-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--tc-border-strong);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tc-surface);
    transition: all 150ms;
    flex-shrink: 0;
}
.tc-check-box i { color: #fff; font-size: 11px; opacity: 0; transition: opacity 150ms; }
.tc-check input:checked + .tc-check-box {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
}
.tc-check input:checked + .tc-check-box i { opacity: 1; }

.tc-check-radio .tc-check-box { border-radius: 50%; }
.tc-check-radio .tc-check-box::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 150ms;
}
.tc-check-radio input:checked + .tc-check-box::before { opacity: 1; }

/* ===========================
   RANGE SLIDER
   =========================== */
.tc-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--tc-surface-2);
    border-radius: var(--tc-radius-pill);
    outline: none;
    border: 1px solid var(--tc-border);
}
.tc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--tc-surface);
    border: 2px solid var(--tc-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--tc-shadow);
    transition: all 150ms;
}
.tc-range::-webkit-slider-thumb:hover { transform: scale(1.1); }
.tc-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--tc-surface);
    border: 2px solid var(--tc-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--tc-shadow);
}

/* ===========================
   INPUT GROUP
   =========================== */
.tc-input-group {
    display: flex;
    align-items: stretch;
    border-radius: var(--tc-radius);
    overflow: hidden;
    border: 1px solid var(--tc-border);
    background: var(--tc-surface);
    transition: all 180ms var(--tc-ease);
}
.tc-input-group:focus-within {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow-glow);
}
.tc-input-group-addon {
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    background: var(--tc-surface-2);
    color: var(--tc-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    border-right: 1px solid var(--tc-border);
}
.tc-input-group .tc-input {
    border: none;
    box-shadow: none;
    background: transparent;
    flex: 1;
}
.tc-input-group .tc-input:focus { box-shadow: none; }
.tc-input-group-btn {
    padding: 0 1rem;
    background: var(--tc-surface-2);
    border: none;
    border-left: 1px solid var(--tc-border);
    color: var(--tc-text-soft);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 150ms;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.tc-input-group-btn:hover { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-input-group-btn.tc-btn-primary { background: var(--tc-primary); color: #fff; }
.tc-input-group-btn.tc-btn-primary:hover { background: var(--tc-primary-dark); color: #fff; }

.tc-input-center { text-align: center; }

.tc-segmented {
    display: flex;
    background: var(--tc-surface-2);
    border-radius: var(--tc-radius);
    padding: 3px;
    width: 100%;
}
.tc-segmented-item {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--tc-text-soft);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: calc(var(--tc-radius) - 3px);
    transition: all 150ms;
}
.tc-segmented-item:hover { color: var(--tc-text); }
.tc-segmented-item.active {
    background: var(--tc-surface);
    color: var(--tc-text);
    box-shadow: var(--tc-shadow-xs);
}

.tc-input-tags {
    flex-wrap: wrap;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.4rem 0.6rem;
}
.tc-input-tags .tc-input {
    flex: 0 0 auto;
    min-width: 120px;
    border: none;
    background: transparent;
    padding: 0.25rem 0.4rem;
}
.tc-input-tags .tc-input:focus { box-shadow: none; }

.tc-tag-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.5rem 0.6rem;
    background: var(--tc-surface);
    border: 1.5px solid var(--tc-border);
    border-radius: var(--tc-radius);
    transition: all 200ms;
}
.tc-tag-container:focus-within {
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 4px var(--tc-primary-soft);
}

.tc-tag-input {
    flex: 1;
    min-width: 140px;
    border: none;
    background: transparent;
    padding: 0.4rem 0.4rem;
    font-size: 0.9rem;
    color: var(--tc-text);
    outline: none;
}
.tc-tag-input::placeholder { color: var(--tc-text-muted); }

.tc-help-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--tc-text-muted);
}
.tc-help-text kbd {
    display: inline-block;
    padding: 1px 6px;
    font-size: 0.7rem;
    font-family: 'SF Mono', 'Monaco', monospace;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: 4px;
    color: var(--tc-text-soft);
}
.tc-link {
    color: var(--tc-primary);
    text-decoration: none;
    font-weight: 500;
}
.tc-link:hover { text-decoration: underline; }

.tc-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.35rem 0.3rem 0.7rem;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-pill);
    font-size: 0.82rem;
    color: var(--tc-text-soft);
    font-weight: 500;
    transition: all 150ms;
}
.tc-tag:hover { border-color: var(--tc-primary-lighter); }
.tc-tag button {
    background: none;
    border: none;
    color: var(--tc-text-muted);
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    line-height: 1;
    transition: all 150ms;
}
.tc-tag button:hover { background: var(--tc-border); color: var(--tc-text); }
.tc-tag button i { line-height: 1; }

.tc-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tc-tag-avatar {
    padding-left: 0.35rem;
}
.tc-tag-avatar-img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.tc-url-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    align-items: flex-start;
    margin-top: 0.75rem;
    transition: all 200ms;
}
.tc-url-preview:hover { border-color: var(--tc-primary-lighter); }
.tc-url-preview-favicon {
    width: 48px;
    height: 48px;
    border-radius: var(--tc-radius-sm);
    background: var(--tc-text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.tc-url-preview-content { flex: 1; min-width: 0; }
.tc-url-preview-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--tc-text);
    margin-bottom: 0.25rem;
    word-break: break-all;
}
.tc-url-preview-desc {
    font-size: 0.82rem;
    color: var(--tc-text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}
.tc-url-preview-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--tc-text-soft);
}
.tc-url-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.tc-url-preview-meta i { font-size: 0.8rem; }

.tc-range-value {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tc-primary);
}

.tc-range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0 0.4rem;
}
.tc-range-labels span {
    font-size: 0.75rem;
    color: var(--tc-text-muted);
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 150ms;
}
.tc-range-labels span.active {
    background: var(--tc-primary);
    color: #fff;
}

.tc-range-temp {
    background: linear-gradient(to right, #06b6d4, #f59e0b);
    height: 8px;
    border-radius: var(--tc-radius-pill);
}

.tc-color-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tc-color-group .tc-color { width: 44px; height: 44px; flex-shrink: 0; }
.tc-color-group .tc-input { font-family: 'SF Mono', 'Monaco', monospace; font-size: 0.85rem; }

.tc-color-palette {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.tc-color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 150ms;
    position: relative;
}
.tc-color-swatch:hover { transform: scale(1.1); }
.tc-color-swatch.active {
    border-color: var(--tc-surface);
    box-shadow: 0 0 0 2px var(--tc-primary);
}

.tc-file-avatar {
    aspect-ratio: 1;
    max-width: 160px;
    margin: 0 auto;
    border-style: dashed;
}
.tc-file-avatar i { font-size: 1.75rem; }

.tc-file-button {
    flex-direction: row;
    justify-content: center;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
    cursor: pointer;
}
.tc-file-button i { font-size: 1rem; }

.tc-file-compact {
    padding: 0.75rem 1rem;
    cursor: default;
}
.tc-file-compact .tc-file-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--tc-radius-sm);
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ===========================
   FILE INPUT
   =========================== */
.tc-file {
    position: relative;
    display: block;
    padding: 2rem;
    background: var(--tc-surface-2);
    border: 2px dashed var(--tc-border-strong);
    border-radius: var(--tc-radius);
    text-align: center;
    cursor: pointer;
    transition: all 200ms var(--tc-ease);
}
.tc-file:hover {
    border-color: var(--tc-primary);
    background: var(--tc-primary-soft);
}
.tc-file i { font-size: 2rem; color: var(--tc-text-muted); margin-bottom: 0.5rem; display: block; }
.tc-file:hover i { color: var(--tc-primary); }
.tc-file-title { font-weight: 700; margin-bottom: 0.25rem; color: var(--tc-text); }
.tc-file-text { font-size: 0.8rem; color: var(--tc-text-muted); margin: 0; }
.tc-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===========================
   STEPPER
   =========================== */
.tc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1rem 0;
}
.tc-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    position: relative;
}
.tc-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tc-surface-2);
    border: 2px solid var(--tc-border-strong);
    color: var(--tc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 200ms;
}
.tc-step-label {
    font-size: 0.85rem;
    color: var(--tc-text-muted);
    font-weight: 600;
}
.tc-step-line {
    flex: 1;
    height: 2px;
    background: var(--tc-border);
    margin: 0 0.5rem;
}
.tc-step.completed .tc-step-circle {
    background: var(--tc-primary);
    border-color: var(--tc-primary);
    color: #fff;
}
.tc-step.completed .tc-step-line { background: var(--tc-primary); }
.tc-step.completed .tc-step-label { color: var(--tc-text); }
.tc-step.active .tc-step-circle {
    background: var(--tc-primary-soft);
    border-color: var(--tc-primary);
    color: var(--tc-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.tc-step.active .tc-step-label { color: var(--tc-primary); font-weight: 700; }

/* ===========================
   TOOLTIP (CSS-only)
   =========================== */
.tc-tooltip-wrap {
    position: relative;
    display: inline-block;
}
.tc-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--tc-text);
    color: #fff;
    padding: 0.4rem 0.7rem;
    border-radius: var(--tc-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 180ms var(--tc-ease);
    pointer-events: none;
    z-index: 10;
    box-shadow: var(--tc-shadow-md);
}
.tc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: var(--tc-text);
}
.tc-tooltip-wrap:hover .tc-tooltip,
.tc-tooltip-wrap:focus-within .tc-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===========================
   CAROUSEL
   =========================== */
.tc-carousel {
    position: relative;
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
}
.tc-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
}
.tc-carousel-track::-webkit-scrollbar { display: none; }
.tc-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    text-align: center;
    color: #fff;
    position: relative;
    min-width: 0;
    overflow: hidden;
}
.tc-carousel-slide:nth-child(1) { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.tc-carousel-slide:nth-child(2) { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.tc-carousel-slide:nth-child(3) { background: linear-gradient(135deg, #0a0e1a, #1a1f3a); }
.tc-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--tc-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: var(--tc-shadow);
    transition: all 150ms;
}
.tc-carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.tc-carousel-prev { left: 12px; }
.tc-carousel-next { right: 12px; }
.tc-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}
.tc-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all 200ms;
    padding: 0;
}
.tc-carousel-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ===========================
   OFFCANVAS
   =========================== */
.tc-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 26, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms var(--tc-ease);
}
.tc-offcanvas-backdrop.show { opacity: 1; pointer-events: auto; }

.tc-offcanvas {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 380px;
    max-width: 90vw;
    background: var(--tc-surface);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 320ms var(--tc-ease);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.tc-offcanvas.show { transform: translateX(0); }
.tc-offcanvas-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--tc-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tc-offcanvas-body { padding: 1.5rem; flex: 1; overflow-y: auto; }

/* ===========================
   KBD EXTENDED
   =========================== */
.tc-kbd-group { display: inline-flex; gap: 2px; }

/* ===========================
   CALLOUT
   =========================== */
.tc-callout {
    padding: 1.25rem 1.5rem;
    background: var(--tc-primary-soft);
    border-left: 4px solid var(--tc-primary);
    border-radius: var(--tc-radius);
    color: var(--tc-text);
}
.tc-callout-title { font-weight: 700; margin-bottom: 0.25rem; }
.tc-callout-text { font-size: 0.875rem; color: var(--tc-text-soft); margin: 0; }

/* ===========================
   EXTRA BADGES & TABS STYLES
   =========================== */
.tc-badge-soft-primary { background: var(--tc-primary-soft); color: var(--tc-primary); border: 1px solid transparent; }
.tc-badge-soft-primary:hover { background: var(--tc-primary-lighter); }
.tc-badge-soft-success { background: var(--tc-success-soft); color: var(--tc-success-dark); border: 1px solid transparent; }
.tc-badge-soft-warning { background: var(--tc-warn-soft); color: var(--tc-warn-darker); border: 1px solid transparent; }
.tc-badge-soft-danger { background: var(--tc-danger-soft); color: var(--tc-danger-dark); border: 1px solid transparent; }
.tc-badge-soft-info { background: var(--tc-info-soft); color: var(--tc-info-dark); border: 1px solid transparent; }

.tc-badge-accent { background: var(--tc-accent); color: #fff; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); display: inline-flex; align-items: center; gap: 0.3rem; }
.tc-badge-dark { background: var(--tc-text); color: var(--tc-text-invert); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); display: inline-flex; align-items: center; gap: 0.3rem; }

.tc-badge-outline-primary { background: transparent; border: 1px solid var(--tc-primary-lighter); color: var(--tc-primary); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }
.tc-badge-outline-success { background: transparent; border: 1px solid var(--tc-success-lighter); color: var(--tc-success); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }
.tc-badge-outline-warning { background: transparent; border: 1px solid var(--tc-warn-lighter); color: var(--tc-warn-dark); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }
.tc-badge-outline-danger { background: transparent; border: 1px solid var(--tc-danger-lighter); color: var(--tc-danger); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }
.tc-badge-outline-info { background: transparent; border: 1px solid var(--tc-info-lighter); color: var(--tc-info); padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }

.tc-badge-xs { padding: 0.15rem 0.4rem; font-size: 0.6rem; }
.tc-badge-sm { padding: 0.2rem 0.5rem; font-size: 0.65rem; }
.tc-badge-lg { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.tc-badge-counter { background: rgba(255,255,255,0.25); padding: 0.05rem 0.4rem; border-radius: var(--tc-radius-pill); font-size: 0.65rem; margin-left: 4px; font-weight: 700; }
.tc-badge-pill { border-radius: var(--tc-radius-pill); }
.tc-badge-square { border-radius: 4px; background: var(--tc-text); color: var(--tc-text-invert); padding: 0.3rem 0.7rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tc-badge-gradient { background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent)); color: #fff; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); }
.tc-badge-glow { background: var(--tc-success); color: #fff; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-radius: var(--tc-radius-pill); display: inline-flex; align-items: center; gap: 0.3rem; animation: tc-pulse 2s infinite; }

/* ===========================
   EXTRA AVATAR STYLES
   =========================== */
.tc-avatar-xs { width: 24px; height: 24px; font-size: 0.65rem; }
.tc-avatar-2xl { width: 80px; height: 80px; font-size: 1.5rem; }
.tc-avatar-primary { background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark)) !important; color: #fff; }
.tc-avatar-success { background: linear-gradient(135deg, var(--tc-success), var(--tc-success-dark)) !important; color: #fff; }
.tc-avatar-warning { background: linear-gradient(135deg, var(--tc-warn), var(--tc-warn-dark)) !important; color: #fff; }
.tc-avatar-danger { background: linear-gradient(135deg, var(--tc-danger), var(--tc-danger-dark)) !important; color: #fff; }
.tc-avatar-info { background: linear-gradient(135deg, var(--tc-info), var(--tc-info-dark)) !important; color: #fff; }
.tc-avatar-accent { background: linear-gradient(135deg, var(--tc-accent), var(--tc-accent-dark)) !important; color: #fff; }

.tc-avatar-wrapper { position: relative; display: inline-block; }
.tc-avatar-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--tc-danger); color: #fff; font-size: 0.65rem; font-weight: 700; border-radius: var(--tc-radius-pill); display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--tc-surface); }
.tc-avatar-badge-dot { min-width: 12px; height: 12px; padding: 0; }

/* ===========================
   EXTRA ALERT STYLES
   =========================== */
.tc-alert-soft-primary { background: var(--tc-primary-soft); color: var(--tc-primary-darker); border-left: 4px solid var(--tc-primary); padding: 1rem 1.25rem; border-radius: var(--tc-radius); display: flex; gap: 1rem; }
.tc-alert-soft-primary .tc-alert-icon { color: var(--tc-primary); }
.tc-alert-soft-primary .tc-alert-title { color: var(--tc-primary-darker); }
.tc-alert-outline-info { background: transparent; border: 1px solid var(--tc-info-lighter); color: var(--tc-text); padding: 1rem 1.25rem; border-radius: var(--tc-radius); display: flex; gap: 1rem; }
.tc-alert-outline-info .tc-alert-icon { color: var(--tc-info); }
.tc-alert-outline-info .tc-alert-title { color: var(--tc-info-dark); }
.tc-alert-solid-dark { background: var(--tc-text); border-left: 4px solid var(--tc-accent); padding: 1rem 1.25rem; border-radius: var(--tc-radius); display: flex; gap: 1rem; }
.tc-alert-solid-dark .tc-alert-icon { color: var(--tc-accent); }
.tc-alert-solid-dark .tc-alert-title { color: #fff; }
.tc-alert-solid-dark .tc-alert-text { color: rgba(255,255,255,0.8); margin: 0; }

/* ===========================
   EXTRA PROGRESS STYLES
   =========================== */
.tc-progress-xs { height: 4px; }
.tc-progress-sm { height: 8px; }
.tc-progress-success .tc-progress-bar { background: var(--tc-success); }
.tc-progress-warning .tc-progress-bar { background: var(--tc-warn); }
.tc-progress-danger .tc-progress-bar { background: var(--tc-danger); }
.tc-progress-striped .tc-progress-bar { background-image: linear-gradient(45deg, rgba(255,255,255,0.2) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.2) 75%, transparent 75%, transparent); background-size: 1rem 1rem; }
.tc-progress-indeterminate { position: relative; overflow: hidden; }
.tc-progress-indeterminate .tc-progress-bar { width: 30% !important; animation: tc-indeterminate 1.5s infinite linear; }
@keyframes tc-indeterminate {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

.tc-spinner-accent { border-color: rgba(6, 182, 212, 0.2); border-top-color: var(--tc-accent); }
.tc-spinner-success { border-color: rgba(16, 185, 129, 0.2); border-top-color: var(--tc-success); }
.tc-spinner-danger { border-color: rgba(239, 68, 68, 0.2); border-top-color: var(--tc-danger); }

/* ===========================
   EXTRA TABS STYLES
   =========================== */
.tc-tabs-vertical { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--tc-border); padding-right: 0.5rem; }
.tc-tab-v { padding: 0.75rem 1rem; cursor: pointer; border-radius: var(--tc-radius); color: var(--tc-text-soft); font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 0.6rem; transition: all 200ms; }
.tc-tab-v:hover { background: var(--tc-surface-2); color: var(--tc-text); }
.tc-tab-v.active { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-tab-v.active i { color: var(--tc-primary); }

.tc-pills-tabs { display: inline-flex; background: var(--tc-surface-2); border-radius: var(--tc-radius); padding: 4px; gap: 2px; border: 1px solid var(--tc-border); }
.tc-pill-tab { padding: 0.5rem 1rem; cursor: pointer; border-radius: var(--tc-radius-sm); color: var(--tc-text-soft); font-size: 0.8rem; font-weight: 600; transition: all 200ms; display: inline-flex; align-items: center; gap: 0.4rem; }
.tc-pill-tab:hover { color: var(--tc-text); }
.tc-pill-tab.active { background: var(--tc-surface); color: var(--tc-primary); box-shadow: var(--tc-shadow-xs); }
.tc-pill-count { background: var(--tc-surface-3); color: var(--tc-text-soft); padding: 0 6px; border-radius: var(--tc-radius-pill); font-size: 0.7rem; }
.tc-pill-tab.active .tc-pill-count { background: var(--tc-primary-soft); color: var(--tc-primary); }

/* Pills Tabs - Variantes de color */
.tc-pills-tabs-success .tc-pill-tab.active { background: var(--tc-success); color: #fff; }
.tc-pills-tabs-success .tc-pill-tab.active .tc-pill-count { background: rgba(255,255,255,0.2); color: #fff; }
.tc-pills-tabs-warning .tc-pill-tab.active { background: var(--tc-warning); color: #fff; }
.tc-pills-tabs-warning .tc-pill-tab.active .tc-pill-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ===========================
   EXTRA DROPDOWN STYLES
   =========================== */
.tc-dropdown-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    color: var(--tc-text-soft);
    cursor: pointer;
    transition: background 150ms;
    border-radius: var(--tc-radius-sm);
    margin: 0 0.4rem;
}
.tc-dropdown-check:hover { background: var(--tc-surface-2); color: var(--tc-text); }
.tc-dropdown-check input { width: 16px; height: 16px; accent-color: var(--tc-primary); cursor: pointer; }
.tc-dropdown-check i { color: var(--tc-primary); font-size: 0.9rem; opacity: 0; }
.tc-dropdown-check input:checked + i { opacity: 1; }
.tc-dropdown-check input { display: none; }
.tc-dropdown-check i::before { content: "\f633"; font-family: 'bootstrap-icons'; }
.tc-dropdown-check input:checked ~ i { opacity: 1; }

/* ===========================
   EXTRA CARDS & METRICS STYLES
   =========================== */
.tc-sparkline {
    width: 100%;
    height: 40px;
    margin-top: 8px;
    display: block;
}

.tc-card-image { padding: 0; overflow: visible; }
.tc-card-image .tc-card-img {
    height: 120px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: var(--tc-radius-md);
    border-top-right-radius: var(--tc-radius-md);
}
.tc-card-image .tc-card-body { padding: 1.25rem; }

.tc-card-hover {
    transition: all 200ms var(--tc-ease);
    cursor: pointer;
}
.tc-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--tc-shadow-lg);
    border-color: var(--tc-primary);
}

.tc-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.tc-icon-primary { background: var(--tc-primary-soft); color: var(--tc-primary); }
.tc-icon-success { background: var(--tc-success-soft); color: var(--tc-success); }
.tc-icon-warning { background: var(--tc-warn-soft); color: var(--tc-warn-darker); }
.tc-icon-danger { background: var(--tc-danger-soft); color: var(--tc-danger); }
.tc-icon-info { background: var(--tc-info-soft); color: var(--tc-info); }
.tc-icon-accent { background: var(--tc-accent-soft); color: var(--tc-accent-dark); }

.tc-card-profile { padding: 0; overflow: visible; }
.tc-card-cover {
    height: 80px;
    width: 100%;
    border-top-left-radius: var(--tc-radius-md);
    border-top-right-radius: var(--tc-radius-md);
    overflow: hidden;
}
.tc-card-profile .tc-card-body {
    padding: 0.5rem 1.25rem 1.25rem;
    text-align: center;
}
.tc-card-profile .tc-avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    margin: -40px auto 0;
    border: 4px solid var(--tc-surface);
    box-shadow: var(--tc-shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-pricing {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 200ms;
    height: 100%;
    position: relative;
}
.tc-pricing:hover { transform: translateY(-2px); box-shadow: var(--tc-shadow-md); }
.tc-pricing.featured {
    background: linear-gradient(135deg, var(--tc-text) 0%, #1a1f3a 100%);
    color: #fff;
    border: none;
    box-shadow: var(--tc-shadow-lg);
    transform: scale(1.05);
}
.tc-pricing.featured:hover { transform: scale(1.05) translateY(-2px); /* box-shadow: var(--tc-shadow-xl); */ }
.tc-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--tc-radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.tc-pricing-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-text-muted);
    margin-bottom: 0.5rem;
}
.tc-pricing.featured .tc-pricing-name { color: var(--tc-accent); }
.tc-pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}
.tc-pricing-price small { font-size: 1rem; font-weight: 500; color: var(--tc-text-muted); }
.tc-pricing.featured .tc-pricing-price small { color: rgba(255,255,255,0.6); }
.tc-pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}
.tc-pricing-feature {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tc-pricing-feature i { color: var(--tc-success); font-size: 1.1rem; }
.tc-pricing.featured .tc-pricing-feature { color: rgba(255,255,255,0.9); }
.tc-pricing.featured .tc-pricing-feature i { color: var(--tc-accent); }

/* ===========================
   EXTRA TOOLTIP STYLES
   =========================== */
.tc-tooltip-wrap { position: relative; display: inline-block; }
.tc-tooltip { position: absolute; background: var(--tc-text); color: #fff; padding: 0.4rem 0.75rem; border-radius: var(--tc-radius-sm); font-size: 0.75rem; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 200ms var(--tc-ease); bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px); z-index: 1000; box-shadow: var(--tc-shadow-md); }
.tc-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: var(--tc-text); }
.tc-tooltip-wrap:hover .tc-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

.tc-tooltip-top .tc-tooltip { bottom: calc(100% + 8px); top: auto; }
.tc-tooltip-bottom .tc-tooltip { top: calc(100% + 8px); bottom: auto; transform: translateX(-50%) translateY(-4px); }
.tc-tooltip-bottom .tc-tooltip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--tc-text); }
.tc-tooltip-bottom.tc-tooltip-wrap:hover .tc-tooltip { transform: translateX(-50%) translateY(0); }

.tc-tooltip-left .tc-tooltip { right: calc(100% + 8px); left: auto; top: 50%; bottom: auto; transform: translateY(-50%) translateX(-4px); }
.tc-tooltip-left .tc-tooltip::after { right: auto; left: 100%; top: 50%; transform: translateY(-50%); border-top-color: transparent; border-left-color: var(--tc-text); }
.tc-tooltip-left.tc-tooltip-wrap:hover .tc-tooltip { transform: translateY(-50%) translateX(0); }

.tc-tooltip-right .tc-tooltip { left: calc(100% + 8px); top: 50%; bottom: auto; transform: translateY(-50%) translateX(4px); }
.tc-tooltip-right .tc-tooltip::after { left: auto; right: 100%; top: 50%; transform: translateY(-50%); border-top-color: transparent; border-right-color: var(--tc-text); }
.tc-tooltip-right.tc-tooltip-wrap:hover .tc-tooltip { transform: translateY(-50%) translateX(0); }

.tc-tooltip.tc-tooltip-primary { background: var(--tc-primary); }
.tc-tooltip.tc-tooltip-primary::after { border-top-color: var(--tc-primary); }
.tc-tooltip.tc-tooltip-success { background: var(--tc-success); }
.tc-tooltip.tc-tooltip-success::after { border-top-color: var(--tc-success); }
.tc-tooltip.tc-tooltip-warning { background: var(--tc-warn); }
.tc-tooltip.tc-tooltip-warning::after { border-top-color: var(--tc-warn); }
.tc-tooltip.tc-tooltip-danger { background: var(--tc-danger); }
.tc-tooltip.tc-tooltip-danger::after { border-top-color: var(--tc-danger); }

.tc-tooltip-left .tc-tooltip.tc-tooltip-primary::after { border-left-color: var(--tc-primary); }
.tc-tooltip-right .tc-tooltip.tc-tooltip-primary::after { border-right-color: var(--tc-primary); }
.tc-tooltip-bottom .tc-tooltip.tc-tooltip-primary::after { border-bottom-color: var(--tc-primary); }
.tc-tooltip-left .tc-tooltip.tc-tooltip-success::after { border-left-color: var(--tc-success); }
.tc-tooltip-right .tc-tooltip.tc-tooltip-success::after { border-right-color: var(--tc-success); }
.tc-tooltip-bottom .tc-tooltip.tc-tooltip-success::after { border-bottom-color: var(--tc-success); }
.tc-tooltip-left .tc-tooltip.tc-tooltip-warning::after { border-left-color: var(--tc-warn); }
.tc-tooltip-right .tc-tooltip.tc-tooltip-warning::after { border-right-color: var(--tc-warn); }
.tc-tooltip-bottom .tc-tooltip.tc-tooltip-warning::after { border-bottom-color: var(--tc-warn); }
.tc-tooltip-left .tc-tooltip.tc-tooltip-danger::after { border-left-color: var(--tc-danger); }
.tc-tooltip-right .tc-tooltip.tc-tooltip-danger::after { border-right-color: var(--tc-danger); }
.tc-tooltip-bottom .tc-tooltip.tc-tooltip-danger::after { border-bottom-color: var(--tc-danger); }
.tc-tooltip-wrap.tc-tooltip-bottom .tc-tooltip::after,
.tc-tooltip-wrap.tc-tooltip-left .tc-tooltip::after,
.tc-tooltip-wrap.tc-tooltip-right .tc-tooltip::after { border-top-color: transparent; }

/* ===========================
   UTILITIES - extendidos
   =========================== */
.tc-divider {
    height: 1px;
    background: var(--tc-divider);
    margin: 2.5rem 0;
}

.tc-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--tc-text-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tc-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--tc-border), transparent);
}

.tc-page-title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.4rem;
    color: var(--tc-text);
    line-height: 1.1;
}

.tc-page-subtitle {
    color: var(--tc-text-soft);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-accent) 50%, var(--tc-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    background-size: 200% 100%;
    animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Premium Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--tc-border-strong);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--tc-text-faint); background-clip: padding-box; border: 2px solid transparent; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tc-fade-in {
    animation: fadeInUp 0.6s var(--tc-ease) both;
}

/* ===========================
   COMPONENT LABELS & HELPERS
   =========================== */
.tc-component-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tc-text-muted);
    margin-bottom: 0.75rem;
}
.tc-form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tc-text-soft);
    margin-bottom: 0.4rem;
}
.tc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.tc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.tc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: start;
}
.tc-grid-2 > *,
.tc-grid-3 > *,
.tc-grid-4 > * {
    min-width: 0;
}
@media (max-width: 768px) {
    .tc-grid-2, .tc-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .tc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tc-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--tc-text-soft);
    font-size: 0.9rem;
}
.tc-check-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}
.tc-check-list li::before {
    content: "✓";
    color: var(--tc-success);
    font-weight: 700;
    flex-shrink: 0;
}
.tc-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--tc-text-soft);
    font-weight: 500;
}
.tc-feature-pill i {
    color: var(--tc-primary);
    font-size: 0.85rem;
}
.tc-btn-ghost-light {
    color: rgba(255, 255, 255, 0.9);
}
.tc-btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===========================
   CAROUSEL - PREMIUM VARIANTS
   =========================== */
.tc-carousel {
    min-width: 0;
    max-width: 100%;
}
.tc-carousel * {
    min-width: 0;
}
.tc-carousel-hero {
    min-height: 360px;
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
}
.tc-carousel-slide-hero {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #4f46e5; /* fallback sólido para evitar movimiento al cargar la imagen remota */
    padding: 3rem;
    text-align: left;
    display: flex;
    align-items: center !important;
    justify-content: flex-start;
    transition: background-image 300ms ease;
}
.tc-carousel-content {
    max-width: 540px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}
.tc-carousel-content .tc-badge { margin-bottom: 0.25rem; }
.tc-carousel-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}
.tc-carousel-subtitle {
    font-size: 1.05rem;
    margin: 0;
    opacity: 0.92;
    line-height: 1.5;
    color: #fff;
}

/* Testimonial variant */
.tc-carousel-testimonial {
    min-height: 320px;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.tc-carousel-testimonial .tc-carousel-track {
    flex: 1 1 auto;
    min-height: 0;
}
.tc-carousel-slide-quote {
    min-height: 320px;
    padding: 2.5rem 2.5rem 3.5rem; /* espacio inferior reservado para dots */
    background: var(--tc-surface);
    color: var(--tc-text);
    flex-direction: column;
    align-items: stretch !important;
    text-align: left;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
}
.tc-quote-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--tc-radius);
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}
.tc-quote-text {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--tc-text);
    font-weight: 500;
    margin: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}
.tc-quote-rating {
    color: #f59e0b;
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.tc-quote-rating i { font-size: 0.9rem; }
.tc-carousel-dots-light {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    margin-top: 0;
    z-index: 2;
    background: transparent;
    padding: 6px 10px;
    border-radius: 999px;
}
.tc-carousel-dots-light .tc-carousel-dot {
    background: var(--tc-border-strong);
    width: 6px;
    height: 6px;
}
.tc-carousel-dots-light .tc-carousel-dot.active {
    background: var(--tc-primary);
    width: 20px;
    height: 6px;
    border-radius: 3px;
}

/* Multi-item (product cards) */
.tc-carousel-multi {
    overflow: hidden;
    position: relative;
}
.tc-carousel-multi .tc-carousel-track {
    gap: 1.25rem;
    padding: 0;
    align-items: flex-start; /* alineamos cards al top para evitar hueco inferior */
}
.tc-carousel-slide-multi {
    flex: 0 0 calc(50% - 0.625rem);
    scroll-snap-align: start;
    min-width: 0;
    padding: 0 !important;
    min-height: auto !important;
    background: transparent !important;
    color: inherit !important;
    text-align: left !important;
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}
/* Botones del multi-item: pequeños, translúcidos, en los bordes del track */
.tc-carousel-multi .tc-carousel-btn {
    top: 70px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.85);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    color: #1a1f3a;
    opacity: 0.7;
    transition: opacity 200ms, transform 200ms;
}
.tc-carousel-multi .tc-carousel-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
.tc-carousel-multi .tc-carousel-prev { left: 6px; }
.tc-carousel-multi .tc-carousel-next { right: 6px; }
.tc-carousel-multi .tc-carousel-btn i { font-size: 0.85rem; }
@media (max-width: 600px) {
    .tc-carousel-slide-multi { flex: 0 0 100%; }
}
.tc-product-card {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 200ms;
}
.tc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--tc-shadow-md);
    border-color: var(--tc-primary-light);
}
.tc-product-img {
    height: 140px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 2.5rem;
}
.tc-product-img::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.tc-product-img i { position: relative; z-index: 1; }
.tc-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}
.tc-product-body {
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tc-product-title {
    font-weight: 600;
    color: var(--tc-text);
    font-size: 0.95rem;
}
.tc-product-price {
    font-weight: 700;
    color: var(--tc-primary);
    font-size: 1.05rem;
}
.tc-product-price s {
    color: var(--tc-text-muted);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 4px;
}
.tc-product-rating {
    color: #f59e0b;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1px;
}
.tc-product-rating i::before { font-size: 0.75rem; }

/* Gallery with thumbnails */
.tc-carousel-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
    height: 100%;
    min-height: 0;
}
.tc-carousel-gallery-main {
    border-radius: var(--tc-radius-md);
    overflow: hidden;
    min-height: 0;
}
.tc-carousel-slide-img {
    min-height: 220px;
    max-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: var(--tc-surface-2);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tc-carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(8px);
}
.tc-carousel-thumbs {
    display: flex;
    gap: 0.75rem;
}
.tc-carousel-thumb {
    flex: 1;
    height: 56px;
    border-radius: var(--tc-radius-sm);
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    transition: all 150ms;
    opacity: 0.6;
    min-width: 0;
}
.tc-carousel-thumb:hover { opacity: 0.9; }
.tc-carousel-thumb.active {
    border-color: var(--tc-primary);
    opacity: 1;
}

/* Vertical carousel */
.tc-carousel-vertical {
    min-height: 320px;
    overflow: hidden;
}
.tc-carousel-vertical .tc-carousel-track {
    flex-direction: column;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    overflow-y: auto;
    height: 320px;
}
.tc-carousel-vertical .tc-carousel-slide,
.tc-carousel-vertical .tc-carousel-slide-vertical {
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-height: 320px;
    padding: 2.5rem 5rem 2.5rem 2.5rem;
    min-width: 0;
    overflow: hidden;
    justify-content: flex-start; /* contenido arriba, no centrado con hueco */
}
.tc-carousel-vertical-nav {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}
.tc-vertical-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 200ms;
    padding: 0;
    flex-shrink: 0;
}
.tc-vertical-dot:hover { background: rgba(255,255,255,0.25); }
.tc-vertical-dot.active {
    background: #fff;
    color: var(--tc-text);
    border-color: #fff;
    /* overrides para que .tc-carousel-dot.active no deforme el círculo */
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    flex-grow: 0;
    align-self: center;
}
.tc-vertical-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 32px;
    padding: 0 0.65rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    white-space: nowrap;
}
.tc-vertical-content {
    max-width: 100%;
    width: 100%;
    color: #fff;
    text-align: left;
    overflow-wrap: break-word;
}
.tc-vertical-step {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    backdrop-filter: blur(4px);
}
.tc-vertical-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: #fff;
    overflow-wrap: break-word;
}
.tc-vertical-content p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
    overflow-wrap: break-word;
}

/* Autoplay with progress */
.tc-carousel-autoplay {
    overflow: hidden;
}
.tc-carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.9);
    width: 0%;
    z-index: 3;
    transition: width 50ms linear;
}
.tc-carousel-play {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: var(--tc-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    font-size: 0.85rem;
    transition: all 150ms;
}
.tc-carousel-play:hover {
    background: #fff;
    transform: scale(1.05);
}

/* ===========================
   OFFCANVAS - PREMIUM VARIANTS
   =========================== */
.tc-offcanvas-left {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    border-right: 1px solid var(--tc-border);
}
.tc-offcanvas-left.show { transform: translateX(0); }

.tc-offcanvas-top {
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    max-width: 100vw;
    height: auto;
    max-height: 50vh;
    transform: translateY(-100%);
    border-bottom: 1px solid var(--tc-border);
    border-radius: 0 0 var(--tc-radius-lg) var(--tc-radius-lg);
    overflow-x: hidden;
}
.tc-offcanvas-top.show { transform: translateY(0); }

.tc-offcanvas-bottom {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 50vh;
    transform: translateY(100%);
    border-top: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg) var(--tc-radius-lg) 0 0;
}
.tc-offcanvas-bottom.show { transform: translateY(0); }

.tc-offcanvas-sm {
    width: 320px;
    max-width: 85vw;
}
.tc-offcanvas-lg {
    width: 640px;
    max-width: 90vw;
}
.tc-offcanvas-xl {
    width: 880px;
    max-width: 95vw;
}
.tc-offcanvas-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--tc-divider);
    background: var(--tc-surface-2);
}

/* Offcanvas User with cover */
.tc-offcanvas-user {
    padding: 0;
}
.tc-offcanvas-user .tc-offcanvas-cover {
    height: 140px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    position: relative;
}
.tc-offcanvas-user .tc-offcanvas-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2), transparent 60%);
}

/* Quick actions (offcanvas bottom) */
.tc-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.5rem;
    background: var(--tc-surface-2);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    color: var(--tc-text);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 150ms;
}
.tc-quick-action i {
    font-size: 1.4rem;
    color: var(--tc-primary);
}
.tc-quick-action:hover {
    background: var(--tc-primary-soft);
    border-color: var(--tc-primary);
    transform: translateY(-1px);
}

/* Notifications offcanvas */
.tc-notif-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid var(--tc-divider);
    cursor: pointer;
    transition: background 150ms;
}
.tc-notif-item:hover { background: var(--tc-surface-2); }
.tc-notif-item.unread { background: var(--tc-primary-lighter); }
.tc-notif-item.unread:hover { background: var(--tc-primary-soft); }

/* Cart offcanvas */
.tc-cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--tc-divider);
}
.tc-cart-img {
    width: 56px;
    height: 56px;
    border-radius: var(--tc-radius-sm);
    flex-shrink: 0;
}

/* ===========================
   MODAL - PREMIUM VARIANTS
   =========================== */
.tc-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}
.tc-modal-icon-primary {
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
}
.tc-modal-icon-success {
    background: var(--tc-success-soft);
    color: var(--tc-success-dark);
}
.tc-modal-icon-danger {
    background: var(--tc-danger-soft);
    color: var(--tc-danger);
}
.tc-modal-icon-warning {
    background: var(--tc-warning-soft);
    color: var(--tc-warning-dark);
}

.tc-modal-sm { max-width: 380px; flex: 0 1 380px; }
.tc-modal-lg { max-width: 720px; flex: 0 1 720px; }
.tc-modal-xl {
    max-width: 1140px;
    width: 100%;
    flex: 0 1 1140px;
}
.tc-modal-full {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    flex: 0 1 100%;
    border-radius: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.tc-modal-full .tc-modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.tc-modal-scrollable {
    max-height: 50vh;
    overflow-y: auto;
}

/* Side panel modal */
.tc-modal-backdrop-aside {
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
}
.tc-modal-side {
    max-width: 380px;
    width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
    border-left: 1px solid var(--tc-border);
    transform: translateX(100%);
}
.tc-modal-backdrop-aside.show .tc-modal-side {
    transform: translateX(0);
}

/* Stepper indicator inside modal */
.tc-stepper-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
.tc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}
.tc-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--tc-surface-2);
    color: var(--tc-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--tc-border);
    transition: all 200ms;
}
.tc-step-item.active .tc-step-circle {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
    box-shadow: 0 0 0 4px var(--tc-primary-soft);
}
.tc-step-label {
    font-size: 0.75rem;
    color: var(--tc-text-muted);
    font-weight: 500;
}
.tc-step-item.active .tc-step-label {
    color: var(--tc-primary);
    font-weight: 600;
}
.tc-step-line {
    flex: 1;
    height: 2px;
    background: var(--tc-border);
    margin: 0 0.5rem;
    margin-bottom: 24px;
}

/* Pricing mini (inside modal) */
.tc-pricing-mini {
    padding: 1.25rem;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    background: var(--tc-surface);
    transition: all 200ms;
}
.tc-pricing-mini:hover {
    border-color: var(--tc-primary);
    transform: translateY(-2px);
}
.tc-pricing-mini-featured {
    border-color: var(--tc-primary);
    background: var(--tc-primary-lighter);
    position: relative;
}
.tc-pricing-mini-featured::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--tc-radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(139,92,246,0.05));
    pointer-events: none;
}
.tc-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin: 0.5rem 0;
}
.tc-pricing-price small { font-size: 0.85rem; }

/* ===========================
   COMMAND PALETTE - USABILITY
   =========================== */
.tc-command {
    background: var(--tc-surface);
    border-radius: var(--tc-radius-lg);
    /* box-shadow: var(--tc-shadow-xl); */
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--tc-border);
    transform: translateY(-20px) scale(0.97);
    opacity: 0;
    transition: transform 240ms var(--tc-ease), opacity 200ms;
}
.tc-modal-backdrop.show .tc-command {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.tc-command-esc {
    background: var(--tc-surface-2);
    color: var(--tc-text-muted);
    font-size: 0.65rem;
    padding: 2px 6px;
}
.tc-command-results {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 480px;
}
.tc-command-group {
    margin-bottom: 0.25rem;
}
.tc-command-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tc-text-muted);
}
.tc-command-group-header i {
    color: var(--tc-primary);
    font-size: 0.85rem;
}
.tc-command-item {
    padding: 0.6rem 0.75rem;
    border-radius: var(--tc-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background 100ms, transform 100ms;
    user-select: none;
    position: relative;
}
.tc-command-item:hover {
    background: var(--tc-surface-2);
}
.tc-command-item.active {
    background: var(--tc-primary-soft);
    color: var(--tc-primary);
}
.tc-command-item.active i {
    color: var(--tc-primary);
}
.tc-command-item i:first-child {
    color: var(--tc-text-muted);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: color 100ms;
}
.tc-command-item:hover i:first-child {
    color: var(--tc-primary);
}
.tc-command-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--tc-text);
}
.tc-command-item.active .tc-command-label {
    color: var(--tc-primary);
    font-weight: 500;
}
.tc-command-mark {
    background: var(--tc-warning-soft);
    color: var(--tc-warning-dark);
    padding: 1px 2px;
    border-radius: 3px;
    font-weight: 700;
}
.tc-command-shortcut {
    display: flex;
    gap: 4px;
    align-items: center;
}
.tc-command-shortcut kbd {
    font-size: 0.65rem;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
}
.tc-command-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--tc-text-muted);
}
.tc-command-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--tc-text-faint);
    display: block;
}
.tc-command-empty p {
    margin: 0 0 0.25rem;
    color: var(--tc-text);
    font-weight: 500;
}
.tc-command-empty small {
    color: var(--tc-text-muted);
    font-size: 0.8rem;
}
.tc-command-footer {
    padding: 0.6rem 1rem;
    border-top: 1px solid var(--tc-divider);
    background: var(--tc-surface-2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--tc-text-muted);
    flex-shrink: 0;
}
.tc-command-footer span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.tc-command-footer kbd {
    font-size: 0.65rem;
    padding: 1px 5px;
    background: var(--tc-surface);
    border-color: var(--tc-border);
}
.tc-command-context {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: var(--tc-text-muted);
    max-width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-command-context i { color: var(--tc-primary); }
.tc-command-context strong {
    color: var(--tc-text);
    font-weight: 600;
}

/* ===========================
   TAG VARIANTS
   =========================== */
.tc-tag-primary {
    background: var(--tc-primary-soft);
    color: var(--tc-primary-dark);
}
.tc-tag-outline {
    background: transparent;
    border: 1px solid var(--tc-border);
    color: var(--tc-text-soft);
}

/* ===========================
   CHECK LIST (for modals/sections)
   =========================== */
ul.tc-check-list li {
    list-style: none;
}
ul.tc-check-list li::before {
    content: "✓";
    color: var(--tc-success);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Body scroll lock utility */
body.tc-no-scroll {
    overflow: hidden;
}


/* ============================================================
   Prism-style theme for raw <pre><code> blocks
   Applies when <pre> is inside .tc-code-wrapper but doesn't
   have the .tc-code-block class
   ============================================================ */
.tc-code-wrapper pre:not(.tc-code-block) {
    background: #1e1e1e !important;
    color: #d4d4d4 !important;
    padding: 0.75rem 1rem;
    border-radius: var(--tc-radius-md);
    font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    tab-size: 2;
    -moz-tab-size: 2;
    border: none;
    box-shadow: none;
}
.tc-code-wrapper pre:not(.tc-code-block) code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: pre;
    display: block;
}
/* Prism token colors - applied to spans inside the script's textContent
   (Prism will add these classes after rendering) */
.tc-code-wrapper pre:not(.tc-code-block) .token.comment,
.tc-code-wrapper pre:not(.tc-code-block) .token.prolog,
.tc-code-wrapper pre:not(.tc-code-block) .token.doctype,
.tc-code-wrapper pre:not(.tc-code-block) .token.cdata { color: #6a9955; font-style: italic; }
.tc-code-wrapper pre:not(.tc-code-block) .token.punctuation { color: #808080; }
.tc-code-wrapper pre:not(.tc-code-block) .token.namespace { opacity: 0.7; }
.tc-code-wrapper pre:not(.tc-code-block) .token.property,
.tc-code-wrapper pre:not(.tc-code-block) .token.tag,
.tc-code-wrapper pre:not(.tc-code-block) .token.boolean,
.tc-code-wrapper pre:not(.tc-code-block) .token.number,
.tc-code-wrapper pre:not(.tc-code-block) .token.constant,
.tc-code-wrapper pre:not(.tc-code-block) .token.symbol,
.tc-code-wrapper pre:not(.tc-code-block) .token.deleted { color: #569cd6; }
.tc-code-wrapper pre:not(.tc-code-block) .token.selector,
.tc-code-wrapper pre:not(.tc-code-block) .token.attr-name,
.tc-code-wrapper pre:not(.tc-code-block) .token.string,
.tc-code-wrapper pre:not(.tc-code-block) .token.char,
.tc-code-wrapper pre:not(.tc-code-block) .token.builtin,
.tc-code-wrapper pre:not(.tc-code-block) .token.inserted { color: #ce9178; }
.tc-code-wrapper pre:not(.tc-code-block) .token.operator,
.tc-code-wrapper pre:not(.tc-code-block) .token.entity,
.tc-code-wrapper pre:not(.tc-code-block) .token.url,
.tc-code-wrapper pre:not(.tc-code-block) .language-css .token.string,
.tc-code-wrapper pre:not(.tc-code-block) .style .token.string { color: #d4d4d4; }
.tc-code-wrapper pre:not(.tc-code-block) .token.atrule,
.tc-code-wrapper pre:not(.tc-code-block) .token.attr-value,
.tc-code-wrapper pre:not(.tc-code-block) .token.keyword { color: #c586c0; }
.tc-code-wrapper pre:not(.tc-code-block) .token.function,
.tc-code-wrapper pre:not(.tc-code-block) .token.class-name { color: #dcdcaa; }
.tc-code-wrapper pre:not(.tc-code-block) .token.regex,
.tc-code-wrapper pre:not(.tc-code-block) .token.important,
.tc-code-wrapper pre:not(.tc-code-block) .token.variable { color: #9cdcfe; }

/* ===========================
   NOTIFICATIONS / TOAST
   Sistema premium con stack, variantes y acciones
   =========================== */
.tc-notify-container {
    position: fixed;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    pointer-events: none;
    padding: 1rem;
    max-width: 420px;
    width: calc(100vw - 2rem);
}
.tc-notify-container[data-position^="top"] { top: 0; }
.tc-notify-container[data-position^="bottom"] { bottom: 0; flex-direction: column-reverse; }
.tc-notify-container[data-position$="right"] { right: 0; align-items: flex-end; }
.tc-notify-container[data-position$="left"] { left: 0; align-items: flex-start; }
.tc-notify-container[data-position$="center"] { left: 50%; transform: translateX(-50%); align-items: center; }

.tc-notify {
    pointer-events: auto;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-lg);
    box-shadow: var(--tc-shadow-lg);
    padding: 0.95rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 320ms var(--tc-ease), opacity 320ms var(--tc-ease);
}
.tc-notify.tc-notify-left { transform: translateX(-120%); }
.tc-notify.tc-notify-center { transform: translateY(-20px) scale(0.96); }
.tc-notify.tc-notify-bottom.tc-notify-center { transform: translateY(20px) scale(0.96); }
.tc-notify.tc-notify-show { transform: translateX(0) translateY(0) scale(1); opacity: 1; }
.tc-notify.tc-notify-leaving { transform: translateX(120%) scale(0.96); opacity: 0; }
.tc-notify.tc-notify-left.tc-notify-leaving { transform: translateX(-120%) scale(0.96); }
.tc-notify.tc-notify-center.tc-notify-leaving { transform: translateY(-10px) scale(0.96); opacity: 0; }

/* Icono */
.tc-notify-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--tc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: var(--tc-bg-faint);
    color: var(--tc-text);
}
.tc-notify-icon i { line-height: 1; }

/* Body */
.tc-notify-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.tc-notify-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--tc-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tc-notify-message {
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--tc-text-soft);
    word-wrap: break-word;
}
.tc-notify-message a { color: var(--tc-primary); text-decoration: underline; }

/* Acciones */
.tc-notify-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.tc-notify-action {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: var(--tc-radius);
    background: transparent;
    border: 1px solid var(--tc-border);
    color: var(--tc-text);
    cursor: pointer;
    transition: background 150ms var(--tc-ease), border-color 150ms var(--tc-ease);
}
.tc-notify-action:hover { background: var(--tc-bg-faint); }
.tc-notify-action-primary { background: var(--tc-primary); color: white; border-color: var(--tc-primary); }
.tc-notify-action-primary:hover { background: var(--tc-primary-dark); border-color: var(--tc-primary-dark); }

/* Botón cerrar */
.tc-notify-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: var(--tc-text-soft);
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: var(--tc-radius-sm);
    font-size: 0.85rem;
    line-height: 1;
    transition: background 150ms var(--tc-ease), color 150ms var(--tc-ease);
}
.tc-notify-close:hover { background: var(--tc-bg-faint); color: var(--tc-text); }

/* Avatar */
.tc-notify-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tc-bg-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--tc-text);
}
.tc-notify-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Progress bar */
.tc-notify-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background: var(--tc-primary);
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

/* === Variantes de tipo === */
.tc-notify-success .tc-notify-icon { background: var(--tc-success-soft, #d1fae5); color: var(--tc-success-dark, #047857); }
.tc-notify-success .tc-notify-progress { background: var(--tc-success, #10b981); }
.tc-notify-danger .tc-notify-icon { background: var(--tc-danger-soft, #fee2e2); color: var(--tc-danger-dark, #b91c1c); }
.tc-notify-danger .tc-notify-progress { background: var(--tc-danger, #ef4444); }
.tc-notify-warning .tc-notify-icon { background: var(--tc-warning-soft, #fef3c7); color: var(--tc-warning-dark, #b45309); }
.tc-notify-warning .tc-notify-progress { background: var(--tc-warning, #f59e0b); }
.tc-notify-info .tc-notify-icon { background: var(--tc-info-soft, #dbeafe); color: var(--tc-info-dark, #1d4ed8); }
.tc-notify-info .tc-notify-progress { background: var(--tc-info, #3b82f6); }
.tc-notify-primary .tc-notify-icon { background: var(--tc-primary-soft, #ede9fe); color: var(--tc-primary, #6366f1); }
.tc-notify-primary .tc-notify-progress { background: var(--tc-primary, #6366f1); }
.tc-notify-dark .tc-notify-icon { background: #1f2937; color: #f9fafb; }
.tc-notify-dark .tc-notify-progress { background: #1f2937; }

/* === Variante solid === */
.tc-notify-solid.tc-notify-success { background: var(--tc-success, #10b981); border-color: transparent; }
.tc-notify-solid.tc-notify-success .tc-notify-icon { background: rgba(255,255,255,0.2); color: white; }
.tc-notify-solid.tc-notify-success .tc-notify-title,
.tc-notify-solid.tc-notify-success .tc-notify-message,
.tc-notify-solid.tc-notify-success .tc-notify-close { color: white; }
.tc-notify-solid.tc-notify-danger { background: var(--tc-danger, #ef4444); border-color: transparent; }
.tc-notify-solid.tc-notify-danger .tc-notify-icon { background: rgba(255,255,255,0.2); color: white; }
.tc-notify-solid.tc-notify-danger .tc-notify-title,
.tc-notify-solid.tc-notify-danger .tc-notify-message,
.tc-notify-solid.tc-notify-danger .tc-notify-close { color: white; }
.tc-notify-solid.tc-notify-warning { background: var(--tc-warning, #f59e0b); border-color: transparent; }
.tc-notify-solid.tc-notify-warning .tc-notify-icon { background: rgba(255,255,255,0.2); color: white; }
.tc-notify-solid.tc-notify-warning .tc-notify-title,
.tc-notify-solid.tc-notify-warning .tc-notify-message,
.tc-notify-solid.tc-notify-warning .tc-notify-close { color: white; }
.tc-notify-solid.tc-notify-info { background: var(--tc-info, #3b82f6); border-color: transparent; }
.tc-notify-solid.tc-notify-info .tc-notify-icon { background: rgba(255,255,255,0.2); color: white; }
.tc-notify-solid.tc-notify-info .tc-notify-title,
.tc-notify-solid.tc-notify-info .tc-notify-message,
.tc-notify-solid.tc-notify-info .tc-notify-close { color: white; }
.tc-notify-solid.tc-notify-primary { background: var(--tc-primary, #6366f1); border-color: transparent; }
.tc-notify-solid.tc-notify-primary .tc-notify-icon { background: rgba(255,255,255,0.2); color: white; }
.tc-notify-solid.tc-notify-primary .tc-notify-title,
.tc-notify-solid.tc-notify-primary .tc-notify-message,
.tc-notify-solid.tc-notify-primary .tc-notify-close { color: white; }
.tc-notify-solid.tc-notify-dark { background: #0f172a; border-color: transparent; }
.tc-notify-solid.tc-notify-dark .tc-notify-icon { background: rgba(255,255,255,0.1); color: white; }
.tc-notify-solid.tc-notify-dark .tc-notify-title,
.tc-notify-solid.tc-notify-dark .tc-notify-message,
.tc-notify-solid.tc-notify-dark .tc-notify-close { color: white; }

/* === Variante outline === */
.tc-notify-outline { border-width: 1.5px; }
.tc-notify-outline.tc-notify-success { border-color: var(--tc-success, #10b981); }
.tc-notify-outline.tc-notify-danger { border-color: var(--tc-danger, #ef4444); }
.tc-notify-outline.tc-notify-warning { border-color: var(--tc-warning, #f59e0b); }
.tc-notify-outline.tc-notify-info { border-color: var(--tc-info, #3b82f6); }
.tc-notify-outline.tc-notify-primary { border-color: var(--tc-primary, #6366f1); }
.tc-notify-outline.tc-notify-dark { border-color: #0f172a; }

/* === Variante glass === */
.tc-notify-glass {
    background: color-mix(in srgb, var(--tc-surface) 70%, transparent);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* Tamaños */
.tc-notify-sm { padding: 0.65rem 0.85rem; }
.tc-notify-sm .tc-notify-icon,
.tc-notify-sm .tc-notify-avatar { width: 28px; height: 28px; font-size: 0.9rem; }
.tc-notify-sm .tc-notify-title { font-size: 0.85rem; }
.tc-notify-sm .tc-notify-message { font-size: 0.8rem; }
.tc-notify-lg { padding: 1.15rem 1.2rem; }
.tc-notify-lg .tc-notify-icon,
.tc-notify-lg .tc-notify-avatar { width: 44px; height: 44px; font-size: 1.2rem; }
.tc-notify-lg .tc-notify-title { font-size: 1rem; }
.tc-notify-lg .tc-notify-message { font-size: 0.9rem; }

/* Stacked notifications visual rhythm */
.tc-notify + .tc-notify { margin-top: 0; }

/* Responsive */
@media (max-width: 575.98px) {
    .tc-notify-container { padding: 0.65rem; max-width: 100%; }
    .tc-notify { max-width: 100%; }
    .tc-notify-container[data-position$="center"] { left: 0; transform: none; align-items: stretch; }
}

/* Animación de spin para loading */
@keyframes tc-notify-spin {
    to { transform: rotate(360deg); }
}
.tc-notify-icon-spin {
    display: inline-block;
    animation: tc-notify-spin 1s linear infinite;
}
