/* ===========================
   AKSHAY AI TOOLS - STYLESHEET
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Instrument+Sans:wght@300;400;500;600&display=swap');

/* ── Sapphire Theme Variables ── */
:root {
  /* ── Sapphire Core Palette ── */
  --bg-base:        #EEF0FF;
  --bg-surface:     #FFFFFF;
  --bg-card:        #DFE3FF;
  --accent-primary: #3B23D8;
  --accent-second:  #6C55FF;
  --accent-soft:    #C8C0FF;
  --text-head:      #050510;
  --text-body:      #1A1540;
  --text-muted:     #4A4570;
  --border:         #C0B8F5;
  --gradient:       linear-gradient(135deg, #3B23D8, #6C55FF, #ABAEFF);
  --shadow:         0 4px 32px rgba(59, 35, 216, 0.14);
  --shadow-hover:   0 12px 40px rgba(59, 35, 216, 0.28);
  --glow:           0 0 20px rgba(59, 35, 216, 0.35);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Instrument Sans', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Compatibility Aliases (map old variables → Sapphire) ── */
  --glass:           rgba(255, 255, 255, 0.75);
  --glass-border:    var(--border);
  --glass-hover:     rgba(223, 227, 255, 0.9);
  --gradient-main:   var(--gradient);
  --gradient-card:   linear-gradient(135deg, rgba(59,35,216,0.06), rgba(108,85,255,0.1));
  --text-primary:    var(--text-head);
  --text-secondary:  var(--text-body);
  --bg-primary:      var(--bg-base);
  --bg-secondary:    var(--bg-card);
  --accent-cyan:     var(--accent-second);
  --accent-violet:   var(--accent-primary);
  --accent-purple:   var(--accent-primary);
  --accent-magenta:  var(--accent-primary);
  --accent-gold:     var(--accent-second);
  --accent-pink:     #C850C0;
  --shadow-glow:     var(--glow);
  --shadow-card:     var(--shadow);
  --radius-lg:       16px;
  --radius-md:       12px;
  --radius-sm:       8px;
}

[data-theme="dark"] {
  --bg-base:        #040310;
  --bg-surface:     #090820;
  --bg-card:        #100E32;
  --accent-primary: #7060FF;
  --accent-second:  #9888FF;
  --accent-soft:    #180D48;
  --text-head:      #FFFFFF;
  --text-body:      #B0A8FF;
  --text-muted:     #7A72B8;
  --border:         #1C1855;
  --gradient:       linear-gradient(135deg, #100E32, #3B23D8, #7060FF);
  --shadow:         0 4px 40px rgba(112, 96, 255, 0.22);
  --shadow-hover:   0 14px 48px rgba(112, 96, 255, 0.40);
  --glow:           0 0 24px rgba(112, 96, 255, 0.45);

  /* ── Dark Mode Compatibility Aliases ── */
  --glass:           rgba(16, 14, 50, 0.85);
  --glass-border:    var(--border);
  --glass-hover:     rgba(16, 14, 50, 0.95);
  --gradient-main:   var(--gradient);
  --gradient-card:   linear-gradient(135deg, rgba(112,96,255,0.08), rgba(152,136,255,0.12));
  --text-primary:    var(--text-head);
  --text-secondary:  var(--text-body);
  --bg-primary:      var(--bg-base);
  --bg-secondary:    var(--bg-card);
  --accent-cyan:     var(--accent-second);
  --accent-violet:   var(--accent-primary);
  --accent-purple:   var(--accent-primary);
  --accent-magenta:  var(--accent-primary);
  --accent-gold:     var(--accent-second);
  --accent-pink:     #C850C0;
  --shadow-glow:     var(--glow);
  --shadow-card:     var(--shadow);
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--text-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
}

h1, h2, h3, .logo, .nav-logo {
  font-family: var(--font-display);
}

h1 { font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; color: var(--text-head); }
h2 { font-weight: 700; letter-spacing: -0.8px; color: var(--text-head); }
h3 { font-weight: 600; color: var(--text-head); }

p { font-family: var(--font-body); color: var(--text-body); }
input, button, select, textarea { font-family: var(--font-body); }

a { color: var(--accent-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-second); }

/* ── Background Grid ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ── Orbs ── */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 47, 255, 0.22) 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation: orbFloat 10s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.18) 0%, transparent 70%);
    bottom: -80px;
    right: -60px;
    animation: orbFloat 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 45, 120, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation: orbFloat 8s ease-in-out infinite 3s;
}

/* ── Global Theme Transition ── */
*, *::before, *::after {
  transition:
    background-color 0.45s ease,
    color            0.45s ease,
    border-color     0.45s ease,
    box-shadow       0.45s ease,
    fill             0.45s ease,
    stroke           0.45s ease;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes fadeRiseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-primary); transform: scale(1); opacity: 1; }
  50% { box-shadow: 0 0 18px var(--accent-primary); transform: scale(1.4); opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fillBar {
  from { width: 0%; opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes microBounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  70% { transform: translateY(-2px); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.65s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px }
::-webkit-scrollbar-track { background: var(--bg-base) }
::-webkit-scrollbar-thumb {
  background: var(--accent-soft); border-radius: 99px
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary) }

.floating {
    animation: float 6s ease-in-out infinite;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: white;
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: var(--accent-magenta);
    z-index: -1;
    animation: glitch 1.5s cubic-bezier(.25, .46, .45, .94) both infinite;
}

.glass-card, .tool-card, .card, [class*="card"] {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.glass-card:hover, .tool-card:hover, .card:hover, [class*="card"]:hover {
    transform: translateY(-7px) scale(1.012);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-soft);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-neon, .btn-primary, button[class*="primary"], input[type="submit"] {
    padding: 12px 32px;
    border-radius: 10px;
    border: none;
    background: var(--accent-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, background 0.3s ease;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.btn-neon:hover, .btn-primary:hover, button[class*="primary"]:hover, input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--glow);
    background: var(--accent-second);
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

button:active::after {
  transform: scale(2.5);
  opacity: 0;
  transition: 0s;
}

.hero-obj-wrap {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-obj {
    width: 100%;
    max-width: 320px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px var(--accent-purple));
    animation: float 8s ease-in-out infinite;
}

/* ── Layout ── */
.section, section, .hero-content, .container, .auth-card {
    animation: fadeRiseIn 0.7s ease both;
}

section:nth-of-type(1) { animation-delay: 0.1s; }
section:nth-of-type(2) { animation-delay: 0.25s; }
section:nth-of-type(3) { animation-delay: 0.4s; }

.gradient-bar, [class*="divider"], hr[class*="gradient"], .auth-divider::before, .auth-divider::after {
    background: linear-gradient(
        90deg,
        var(--accent-primary) 0%,
        var(--accent-second)  40%,
        var(--accent-soft)    60%,
        var(--accent-primary) 100%
    );
    background-size: 200% auto;
    animation: shimmer 3.5s linear infinite;
    height: 2px;
    border: none;
}

/* ═══════════════════════════
   NAVIGATION
═══════════════════════════ */
nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 2px 24px var(--shadow);
}

nav a {
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-primary);
  border-radius: 99px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover::after { width: 100%; }

nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.4));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: var(--glass-hover);
}

.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links .nav-btn {
    background: var(--gradient-main) !important;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

.nav-links .nav-btn:hover {
    box-shadow: 0 4px 20px rgba(123, 47, 255, 0.45) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Nav Profile Avatar */
.nav-avatar-link {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 245, 255, 0.35);
    box-shadow: 0 0 12px rgba(123, 47, 255, 0.25);
    transition: var(--transition);
}

.nav-avatar:hover {
    border-color: rgba(0, 245, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.35), 0 0 40px rgba(123, 47, 255, 0.2);
    transform: scale(1.08);
}

/* ═══════════════════════════
   HERO
═══════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(123, 47, 255, 0.12);
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 26px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot, .logo-dot, [class*="status-dot"], [class*="badge-live"] {
  animation: glowPulse 2.2s ease-in-out infinite;
}

[class*="tag"], [class*="badge"], [class*="chip"], [class*="pill"] {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background 0.2s ease;
  cursor: pointer;
}

[class*="tag"]:hover, [class*="badge"]:hover, [class*="chip"]:hover, [class*="pill"]:hover {
  transform:  scale(1.07) translateY(-1px);
  box-shadow: var(--shadow);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 22px;
    animation: fadeRiseIn 0.7s 0.1s ease both;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s 0.2s ease both;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s 0.3s ease both;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    padding: 13px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(123, 47, 255, 0.5);
}

.btn-secondary {
    border: 1.5px solid var(--accent-primary);
    color: var(--accent-primary);
    background: transparent;
    padding: 13px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-secondary:hover {
    box-shadow: 0 0 0 3px var(--accent-soft), var(--glow);
    transform: translateY(-2px);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 440px;
    height: 440px;
    pointer-events: none;
    animation: fadeIn 1s 0.5s ease both;
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
}

.fc-1 {
    top: 30px;
    right: 20px;
    width: 195px;
    animation: floatCard 7s ease-in-out infinite;
}

.fc-2 {
    top: 48%;
    right: 0;
    width: 175px;
    animation: floatCard 9s ease-in-out infinite -3s;
}

.fc-3 {
    bottom: 50px;
    right: 40px;
    width: 210px;
    animation: floatCard 8s ease-in-out infinite -5s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

.fc-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    display: block;
}

.fc-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.fc-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.fc-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.fc-bar-fill, [class*="progress-fill"], [class*="bar-fill"], [role="progressbar"] > * {
    height: 100%;
    border-radius: 2px;
    background: var(--gradient);
    animation: fillBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@keyframes barGrow {
    from {
        width: 35%
    }

    to {
        width: 88%
    }
}

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    margin-top: 60px;
    overflow: hidden;
    animation: fadeInUp 0.6s 0.4s ease both;
}

.stat-item {
    background: var(--bg-primary);
    padding: 26px;
    text-align: center;
}

.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}

/* ═══════════════════════════
   SECTIONS
═══════════════════════════ */
.section {
    padding: 90px 0;
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--text-head);
}

.section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    font-weight: 300;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 24px;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 32px;
}

.tool-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: block;
}

.tool-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(123, 47, 255, 0.35);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card:hover::after {
    transform: scaleX(1);
}

.card-icon:hover, [class*="icon"]:hover, [class*="feature-icon"]:hover {
    animation: microBounce 0.5s ease;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.card-icon.cyan {
    background: rgba(0, 245, 255, 0.1);
    box-shadow: 0 4px 18px rgba(0, 245, 255, 0.18);
}

.card-icon.violet {
    background: rgba(123, 47, 255, 0.1);
    box-shadow: 0 4px 18px rgba(123, 47, 255, 0.18);
}

.card-icon.pink {
    background: rgba(255, 45, 120, 0.1);
    box-shadow: 0 4px 18px rgba(255, 45, 120, 0.18);
}

.card-icon.gold {
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 4px 18px rgba(255, 215, 0, 0.18);
}

.card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.card-arrow {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-cyan);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.tool-card:hover .card-arrow {
    gap: 12px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 28px;
}

.feature-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feature-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(123, 47, 255, 0.12);
    border: 1px solid rgba(123, 47, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.feature-text p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.feature-visual {
    position: relative;
    height: 400px;
}

.code-mockup {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #8b949e;
    line-height: 1.85;
    height: 100%;
    overflow: hidden;
}

.mockup-topbar {
    display: flex;
    gap: 7px;
    margin-bottom: 18px;
}

.mockup-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f57
}

.dot-yellow {
    background: #febc2e
}

.dot-green {
    background: #28c840
}

.code-line {
    white-space: nowrap;
}

/* Referral Box */
.referral-box {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 320px;
}

/* Ad Placeholders */
.ad-placeholder {
    margin: 20px 0;
    min-height: 120px;
    width: 100%;
}

.ck {
    color: #ff7b72;
}

.cf {
    color: #d2a8ff;
}

.cs {
    color: #a5d6ff;
}

.cm {
    color: #8b949e;
}

.cv {
    color: #ffa657;
}

.cn {
    color: #79c0ff;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 26px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(0, 245, 255, 0.18);
    transform: translateY(-4px);
}

.stars {
    color: var(--accent-gold);
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
    font-weight: 300;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.author-name {
    font-weight: 600;
    font-size: 0.88rem;
}

.author-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* CTA */
.cta-section {
    padding: 70px 0;
    position: relative;
    z-index: 1;
}

.cta-box {
    background: var(--glass);
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-radius: 28px;
    padding: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 80px rgba(123, 47, 255, 0.12);
}

.cta-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    font-weight: 300;
}

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════
   FOOTER
═══════════════════════════ */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 56px 0 28px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
    margin-bottom: 44px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    margin-top: 10px;
    font-weight: 300;
    max-width: 220px;
}

.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.87rem;
    padding: 3px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-cyan);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-secondary);
}

.social-link:hover, img:hover, [class*="thumbnail"]:hover, [class*="avatar"]:hover, [class*="feature-img"]:hover {
    background: var(--glass-hover);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: scale(1.05) translateY(-2px);
}

img, [class*="thumbnail"], [class*="avatar"], [class*="feature-img"] {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

/* ═══════════════════════════
   AUTH PAGES
═══════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
    position: relative;
    z-index: 1;
}

.auth-card, [class*="modal"], [class*="dropdown"], [class*="popup"], [class*="tooltip"], [class*="menu"][class*="open"] {
    background: rgba(10, 12, 35, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 44px;
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    transform-origin: top center;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-main);
}

.auth-logo {
    text-align: center;
    margin-bottom: 6px;
}

.auth-logo a {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 28px;
    font-weight: 300;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 7px;
}

.form-group input, input, select, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.93rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    outline: none;
}

.form-group input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--accent-primary);
    background: rgba(123, 47, 255, 0.07);
    box-shadow: 0 0 0 3.5px var(--accent-soft);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: var(--accent-pink);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.btn-full {
    width: 100%;
    padding: 13px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 6px;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(123, 47, 255, 0.5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-switch {
    text-align: center;
    font-size: 0.87rem;
    color: var(--text-secondary);
    margin-top: 18px;
}

.auth-switch a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.social-auth-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.social-auth-btn:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.18);
}

/* ═══════════════════════════
   DASHBOARD
═══════════════════════════ */
.dashboard {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.dashboard-header {
    padding: 36px 0 0;
}

.greeting-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.user-greeting h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 4px;
}

.user-greeting h2 .user-name-span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0;
}

.dash-stat {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.dash-stat:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 47, 255, 0.25);
}

.dash-stat-icon {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.dash-stat-value, .stat-num, [class*="stat"] > :first-child, [class*="counter"], .stat-number {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.stat-item:nth-child(1) .stat-number, .dash-stat:nth-child(1) .dash-stat-value { animation-delay: 0.10s; }
.stat-item:nth-child(2) .stat-number, .dash-stat:nth-child(2) .dash-stat-value { animation-delay: 0.22s; }
.stat-item:nth-child(3) .stat-number, .dash-stat:nth-child(3) .dash-stat-value { animation-delay: 0.34s; }
.stat-item:nth-child(4) .stat-number, .dash-stat:nth-child(4) .dash-stat-value { animation-delay: 0.46s; }

.dash-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.dashboard-section-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.dash-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.dash-tool-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.dash-tool-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-main);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
}

.dash-tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(123, 47, 255, 0.28);
    box-shadow: var(--shadow-glow);
}

.dash-tool-card:hover::after, .toggle::after, [class*="toggle-thumb"], [class*="theme-knob"] {
    transform: scaleY(1);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), background 0.38s ease;
}

[data-theme="dark"] .toggle::after, [data-theme="dark"] [class*="theme-knob"] {
  transform: translateX(24px) rotate(180deg);
}

.dash-tool-icon {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.dash-tool-info {
    flex: 1;
}

.dash-tool-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.97rem;
    margin-bottom: 3px;
}

.dash-tool-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.dash-tool-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 50px;
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.18);
    color: var(--accent-cyan);
}

.recent-activity {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot.cyan {
    background: var(--accent-cyan);
    box-shadow: 0 0 7px var(--accent-cyan);
}

.activity-dot.violet {
    background: var(--accent-violet);
    box-shadow: 0 0 7px var(--accent-violet);
}

.activity-dot.pink {
    background: var(--accent-pink);
    box-shadow: 0 0 7px var(--accent-pink);
}

.activity-dot.gold {
    background: var(--accent-gold);
    box-shadow: 0 0 7px var(--accent-gold);
}

.activity-text {
    flex: 1;
    font-size: 0.87rem;
}

.activity-time, [class*="alert"], [class*="toast"], [class*="notification"], [class*="banner"] {
    animation: slideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.2s;
}

/* ═══════════════════════════
   TOOL WORKSPACE
═══════════════════════════ */
.tool-page {
    padding-top: 80px;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.tool-page-header {
    padding: 36px 0 28px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.back-btn {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.87rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    margin-right: 6px;
}

.back-btn:hover {
    color: var(--text-primary);
    background: var(--glass-hover);
}

.tool-page-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.tool-page-info h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
}

.tool-page-info p {
    color: var(--text-secondary);
    font-size: 0.87rem;
    font-weight: 300;
}

.tool-workspace {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 36px;
    backdrop-filter: blur(10px);
}

.workspace-topbar {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.workspace-topbar-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.workspace-body {
    padding: 24px;
}

.prompt-area {
    width: 100%;
    min-height: 110px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.93rem;
    resize: vertical;
    outline: none;
    transition: var(--transition);
    line-height: 1.6;
}

.prompt-area:focus {
    border-color: var(--accent-violet);
    box-shadow: 0 0 0 3px rgba(123, 47, 255, 0.12);
}

.prompt-area::placeholder {
    color: var(--text-muted);
}

.tool-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.control-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px 13px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    cursor: pointer;
    outline: none;
}

.output-area {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 18px;
    min-height: 150px;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-secondary);
    white-space: pre-wrap;
    font-weight: 300;
}

.output-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    gap: 10px;
    color: var(--text-muted);
}

.output-placeholder .op-icon {
    font-size: 2rem;
}

.output-placeholder p {
    font-size: 0.87rem;
}

.generating {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-cyan);
    font-size: 0.87rem;
    font-weight: 500;
}

.gen-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan);
    animation: genPulse 1.2s ease-in-out infinite;
}

.gen-dot:nth-child(2) {
    animation-delay: .2s
}

.gen-dot:nth-child(3) {
    animation-delay: .4s
}

@keyframes genPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(0.5);
        opacity: 0.3
    }
}

/* Image grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.image-placeholder {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.83rem;
    transition: var(--transition);
}

.image-placeholder.generated {
    border-style: solid;
    border-color: var(--glass-border);
    background: var(--gradient-card);
    font-size: 2.5rem;
}

/* Chat */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    max-height: 500px;
    height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet) transparent;
}

.chat-msg {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: fadeInUp 0.4s ease forwards;
}

.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-msg.user .chat-avatar {
    background: var(--gradient-main);
    color: white;
}

.chat-bubble {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    border-top-left-radius: 4px;
    padding: 12px 18px;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.chat-msg.user .chat-bubble {
    background: linear-gradient(135deg, rgba(123, 47, 255, 0.25) 0%, rgba(0, 245, 255, 0.15) 100%);
    border-color: rgba(123, 47, 255, 0.3);
    border-radius: 18px;
    border-top-right-radius: 4px;
    color: white;
}

.chat-input-row {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: rgba(10, 15, 46, 0.4);
    border-top: 1px solid var(--glass-border);
    align-items: center;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 12px 20px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-send:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(123, 47, 255, 0.4);
}

/* Code */
.code-output {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    padding: 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.85;
    color: #cdd9e5;
    margin-top: 18px;
    min-height: 200px;
    overflow-x: auto;
    white-space: pre;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.code-lang-badge {
    background: rgba(123, 47, 255, 0.2);
    border: 1px solid rgba(123, 47, 255, 0.3);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d2a8ff;
}

.copy-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 5px 12px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'DM Sans', sans-serif;
}

.copy-btn:hover {
    background: var(--glass-hover);
    color: var(--text-primary);
}

/* ═══════════════════════════
   TOAST
═══════════════════════════ */
.toast {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: rgba(10, 12, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.87rem;
    font-weight: 500;
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: var(--transition);
    max-width: 300px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(0, 245, 255, 0.28);
}

.toast.error {
    border-color: rgba(255, 45, 120, 0.28);
}

.toast-icon {
    font-size: 1rem;
}

/* ═══════════════════════════
   ANIMATIONS & REVEALS
═══════════════════════════ */
/* ═══════════════════════════
   ANIMATIONS & REVEALS
   (Rules 1-18 from Sapphire Theme)
═══════════════════════════ */

/* 1. Global Theme Transition */
*, *::before, *::after {
  transition:
    background-color 0.45s ease,
    color            0.45s ease,
    border-color     0.45s ease,
    box-shadow       0.45s ease,
    fill             0.45s ease,
    stroke           0.45s ease;
}

/* 2. Page Load - Fade + Rise */
@keyframes fadeRiseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content { animation: fadeRiseIn 0.7s ease both; animation-delay: 0.1s; }
.section, section { animation: fadeRiseIn 0.7s ease both; animation-delay: 0.2s; }
.tool-card, .glass-card, .dash-stat { animation: fadeRiseIn 0.7s ease both; }
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }

/* 3. Card Hover - Float + Glow */
.card, .tool-card, .glass-card, .dash-stat, .activity-item, .history-item {
  transition:
    transform    0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow   0.28s ease,
    border-color 0.28s ease;
  will-change: transform;
}
.card:hover, .tool-card:hover, .glass-card:hover, .dash-stat:hover {
  transform:    translateY(-7px) scale(1.012);
  box-shadow:   var(--shadow-hover);
  border-color: var(--accent-soft);
}

/* 4. Button Animations */
.btn-primary, .btn-neon, .btn-full, button[class*="primary"], input[type="submit"] {
  transition:
    transform  0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease,
    background 0.3s ease !important;
  position: relative;
  overflow: hidden;
  will-change: transform;
}
.btn-primary:hover, .btn-neon:hover, .btn-full:hover, button[class*="primary"]:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--glow);
}

button::after, .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.18);
  border-radius: inherit;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
button:active::after, .btn:active::after {
  transform: scale(2.5);
  opacity: 0;
  transition: 0s;
}

.btn-ghost:hover, .btn-secondary:hover, .back-btn:hover {
  box-shadow: 0 0 0 3px var(--accent-soft), var(--glow);
}

/* 5. Nav Link Underline Slide */
nav a { position: relative; }
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-primary);
  border-radius: 99px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
nav a:hover::after { width: 100%; }

/* 6. Input Field Focus */
input, select, textarea {
  transition:
    border-color 0.25s ease,
    box-shadow   0.25s ease,
    transform    0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3.5px var(--accent-soft);
  transform: translateY(-1px);
  outline: none;
}

/* 7. Logo / Dot Pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent-primary); transform: scale(1); opacity: 1; }
  50% { box-shadow: 0 0 18px var(--accent-primary); transform: scale(1.4); opacity: 0.5; }
}
.nav-logo-dot, .hero-badge-dot, .status-dot, [class*="badge-live"] {
  animation: glowPulse 2.2s ease-in-out infinite;
}

/* 8. Gradient Bar Shimmer */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.gradient-bar, [class*="divider"], hr, .auth-card::before, .dash-tool-card::after {
  background: linear-gradient(
    90deg,
    var(--accent-primary) 0%,
    var(--accent-second)  40%,
    var(--accent-soft)    60%,
    var(--accent-primary) 100%
  );
  background-size: 200% auto;
  animation: shimmer 3.5s linear infinite;
}

/* 9. Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity   0.65s ease,
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 10. Stat Pop-In */
@keyframes popIn {
  0%   { transform: scale(0.7); opacity: 0; }
  70%  { transform: scale(1.08); }
  100% { transform: scale(1);   opacity: 1; }
}
.stat-item, .dash-stat, .stat-number {
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.stat-item:nth-child(1) { animation-delay: 0.10s; }
.stat-item:nth-child(2) { animation-delay: 0.22s; }
.stat-item:nth-child(3) { animation-delay: 0.34s; }

/* 11. Progress Bar Fill */
@keyframes fillBar {
  from { width: 0%; opacity: 0.4; }
  to   { opacity: 1; }
}
.fc-bar-fill, [class*="progress-fill"], [class*="bar-fill"] {
  animation: fillBar 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.3s;
}

/* 12. Icon Micro-Bounce */
@keyframes microBounce {
  0%,100% { transform: translateY(0); }
  40%     { transform: translateY(-5px); }
  70%     { transform: translateY(-2px); }
}
.card-icon:hover, .dash-tool-icon:hover, .feature-dot:hover {
  animation: microBounce 0.5s ease;
}

/* 13. Theme Toggle Spin */
.theme-btn {
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), background 0.38s ease;
}
[data-theme="dark"] .theme-btn {
  transform: rotate(180deg);
}

/* 14. Tag Hover Pop */
.tag, .badge, .chip, .pill, .dash-tool-badge {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease, background 0.2s ease;
  cursor: pointer;
}
.tag:hover, .badge:hover, .dash-tool-badge:hover {
  transform:  scale(1.07) translateY(-1px);
  box-shadow: var(--shadow);
}

/* 15. Alert Slide-In */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert-box, .toast, .banner {
  animation: slideDown 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.2s;
}

/* 16. Image Hover Zoom */
img, .photo-preview-circle img, .hero-obj {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
img:hover {
  transform: scale(1.05);
}

/* 17. Modal/Dropdown Scale-In */
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal, .dropdown, .popup, .open .nav-links {
  animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: top center;
}

/* 18. Performance & Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
  }
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ═══════════════════════════
   RESPONSIVE
═══════════════════════════ */
@media(max-width:1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-visual {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-visual {
        display: none;
    }
}

@media(max-width:768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 7, 20, 0.97);
        backdrop-filter: blur(20px);
        padding: 18px 22px;
        border-bottom: 1px solid var(--glass-border);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dash-tools-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 28px 22px;
    }

    .cta-box {
        padding: 44px 22px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Chatbot Optimizations */
    .chat-messages {
        padding: 12px 15px;
        height: 450px;
    }
    .chat-msg {
        max-width: 92%;
        gap: 8px;
    }
    .chat-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    .chat-bubble {
        padding: 10px 14px;
        font-size: 0.86rem;
        line-height: 1.5;
    }
    .chat-input-row {
        padding: 14px 16px;
        gap: 8px;
    }
    .chat-input {
        padding: 10px 15px;
        font-size: 0.88rem;
    }
    .chat-bubble ul, .chat-bubble ol {
        padding-left: 20px;
        margin: 8px 0;
    }
    .chat-bubble li {
        margin-bottom: 4px;
    }
    .chat-bubble p {
        margin-bottom: 8px;
    }
    .chat-bubble p:last-child {
        margin-bottom: 0;
    }
}

@media(max-width:480px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════
   LIGHT THEME
═══════════════════════════ */
[data-theme="light"] {
    --bg-primary: #f0f4ff;
    --bg-secondary: #e8eeff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.9);
    --text-primary: #0a0f2e;
    --text-secondary: rgba(10, 15, 46, 0.65);
    --text-muted: rgba(10, 15, 46, 0.4);
    --shadow-glow: 0 0 40px rgba(123, 47, 255, 0.15);
}

[data-theme="light"] body::before {
    background-image: linear-gradient(rgba(123, 47, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 47, 255, 0.04) 1px, transparent 1px);
}

[data-theme="light"] nav {
    background: rgba(240, 244, 255, 0.85);
}

[data-theme="light"] .code-mockup {
    background: #1e1e2e;
}

[data-theme="light"] .code-output {
    background: #1e1e2e;
}

[data-theme="light"] .orb-1 {
    background: radial-gradient(circle, rgba(123, 47, 255, 0.15) 0%, transparent 70%);
}

[data-theme="light"] .orb-2 {
    background: radial-gradient(circle, rgba(0, 245, 255, 0.12) 0%, transparent 70%);
}

/* ═══════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════ */
.theme-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-btn:hover {
    background: var(--glass-hover);
    transform: rotate(20deg);
}

/* ═══════════════════════════
   LANGUAGE SELECT
═══════════════════════════ */
.lang-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.lang-select-wrap label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

#lang-select {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.83rem;
    cursor: pointer;
    outline: none;
}

/* ═══════════════════════════
   VOICE BUTTON
═══════════════════════════ */
#voice-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#voice-btn:hover {
    background: rgba(0, 245, 255, 0.12);
    border-color: var(--accent-cyan);
}

/* ═══════════════════════════
   PROFILE PHOTO
═══════════════════════════ */
.photo-upload-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.photo-preview-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border: 3px solid var(--glass-border);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.photo-preview-circle:hover {
    border-color: var(--accent-cyan);
}

.photo-preview-circle img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-label {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
}

#profile-photo {
    display: none;
}

/* User avatar in nav/dashboard */
.user-avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    flex-shrink: 0;
}

/* ═══════════════════════════
   HISTORY PAGE
═══════════════════════════ */
.history-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.history-item:hover {
    border-color: rgba(123, 47, 255, 0.3);
}

.history-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 700;
    white-space: nowrap;
}