/*
Theme Name: IDJA Theme
Theme URI:  https://idja.ir
Description: قالب رسمی سامانه ایدجا - طراحی Glassmorphism تیره با پشتیبانی کامل RTL
Version:     2.1.0
Author:      IDJA Team
Author URI:  https://idja.ir
Text Domain: idja-theme
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ================================================================
   GOOGLE FONTS + RESET
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
    --idja-primary:      #6366f1;
    --idja-secondary:    #8b5cf6;
    --idja-accent:       #06b6d4;
    --idja-bg:           #0a0f1e;
    --idja-bg2:          #0f1629;
    --idja-bg3:          #1a1f35;
    --idja-text:         #f0f4ff;
    --idja-text-muted:   #94a3b8;
    --idja-text-dim:     #64748b;
    --idja-success:      #10b981;
    --idja-warning:      #f59e0b;
    --idja-danger:       #ef4444;
    --idja-glass:        rgba(255,255,255,0.04);
    --idja-glass-border: rgba(255,255,255,0.08);
    --idja-glass-hover:  rgba(255,255,255,0.06);
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  20px;
    --radius-2xl: 24px;
    --shadow-glow: 0 0 30px rgba(99,102,241,0.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--idja-bg);
    color: var(--idja-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--idja-bg); }
::-webkit-scrollbar-thumb { background: #3b4fd8; border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ================================================================
   ANIMATIONS
================================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-20px); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(99,102,241,0.3); }
    50%       { box-shadow: 0 0 40px rgba(99,102,241,0.7); }
}
@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.3); opacity: 0.7; }
}
@keyframes blink {
    0%, 50%    { opacity: 1; }
    51%, 100%  { opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.float-animation  { animation: float 6s ease-in-out infinite; }
.pulse-glow       { animation: pulse-glow 3s ease-in-out infinite; }
.gradient-shift   { background-size: 200% 200%; animation: gradient-shift 4s ease infinite; }
.slide-up         { animation: slide-up 0.6s ease forwards; }
.fade-in          { animation: fade-in 0.4s ease forwards; }
.shimmer-anim     { background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.08) 50%, transparent 75%); background-size: 200% 100%; animation: shimmer 2s infinite; }

/* ================================================================
   GLASS MORPHISM
================================================================ */
.glass {
    background: var(--idja-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--idja-glass-border);
}
.glass-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.glass-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.mesh-gradient {
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.08) 0%, transparent 70%);
}

/* ================================================================
   TYPOGRAPHY
================================================================ */
.gradient-text {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gradient-text-gold {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--idja-primary), var(--idja-secondary));
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }

.btn-ghost {
    background: var(--idja-glass);
    border: 1px solid var(--idja-glass-border);
    color: var(--idja-text-muted);
    border-radius: var(--radius-lg);
    padding: 0.65rem 1.5rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: var(--idja-text);
    transform: translateY(-1px);
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: var(--radius-md); }

/* ================================================================
   FORM ELEMENTS
================================================================ */
.idja-input, .idja-select, .idja-textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--idja-text);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
    direction: rtl;
}
.idja-input:focus, .idja-select:focus, .idja-textarea:focus {
    border-color: rgba(99,102,241,0.6);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    background: rgba(99,102,241,0.05);
}
.idja-input::placeholder, .idja-textarea::placeholder { color: rgba(160,174,192,0.5); }
.idja-select option { background: var(--idja-bg3); color: var(--idja-text); }
.idja-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--idja-text-muted); margin-bottom: 0.4rem; }
.idja-field { margin-bottom: 1.25rem; }

/* ================================================================
   BADGES & TAGS
================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
}
.badge-published    { background: rgba(99,102,241,0.2);  color: #a5b4fc; border-color: rgba(99,102,241,0.3); }
.badge-under_review { background: rgba(245,158,11,0.2);  color: #fbbf24; border-color: rgba(245,158,11,0.3); }
.badge-draft        { background: rgba(100,116,139,0.2); color: #94a3b8; border-color: rgba(100,116,139,0.3); }
.badge-sold         { background: rgba(16,185,129,0.2);  color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
.badge-score        { background: rgba(245,158,11,0.15); color: #fbbf24; border-color: rgba(245,158,11,0.25); }
.badge-category     { background: rgba(99,102,241,0.15); color: #a5b4fc; border-color: rgba(99,102,241,0.25); }
.tag {
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.3);
    color: #a5b4fc;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
}
.medal-gold   { color: #ffd700; }
.medal-silver { color: #c0c0c0; }
.medal-bronze { color: #cd7f32; }

/* ================================================================
   NAVBAR
================================================================ */
#idja-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(10,15,30,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
#idja-navbar.scrolled {
    background: rgba(10,15,30,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.idja-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.idja-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.idja-logo-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.idja-logo-text { font-size: 1.25rem; font-weight: 900; }
.idja-logo-sub  { font-size: 0.65rem; color: var(--idja-text-dim); display: block; line-height: 1; }

.idja-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.idja-nav-item a {
    display: block;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--idja-text-muted);
    transition: all 0.2s ease;
    position: relative;
}
.idja-nav-item a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--idja-primary), var(--idja-secondary));
    transform: translateX(-50%);
    transition: width 0.3s ease;
}
.idja-nav-item a:hover,
.idja-nav-item.current-menu-item a {
    color: #a5b4fc;
    background: rgba(99,102,241,0.1);
}
.idja-nav-item.current-menu-item a::after { width: 80%; }
.idja-nav-item a:hover::after { width: 80%; }

.idja-nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.idja-nav-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    background: var(--idja-glass);
    border: 1px solid var(--idja-glass-border);
    color: var(--idja-text-muted);
    transition: all 0.2s ease;
    font-size: 16px;
}
.idja-nav-icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--idja-text); }
.idja-notif-badge {
    position: absolute;
    top: -4px; right: -4px;
    min-width: 18px; height: 18px;
    background: var(--idja-primary);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    animation: pulse-dot 2s infinite;
}

.idja-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    background: var(--idja-bg3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    backdrop-filter: blur(20px);
    overflow: hidden;
    z-index: 200;
}
.idja-dropdown-header {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--idja-text);
}
.idja-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease;
    cursor: pointer;
}
.idja-dropdown-item:hover { background: rgba(255,255,255,0.05); }
.idja-dropdown-item.unread { background: rgba(99,102,241,0.06); }
.idja-dropdown-item p { font-size: 0.8rem; color: var(--idja-text-muted); margin: 0; }
.idja-dropdown-item small { font-size: 0.7rem; color: var(--idja-text-dim); }

.idja-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.5rem;
    border-radius: var(--radius-md);
    background: var(--idja-glass);
    border: 1px solid var(--idja-glass-border);
    color: var(--idja-text-muted);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.idja-profile-btn:hover { background: rgba(255,255,255,0.1); color: var(--idja-text); }
.idja-avatar {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--idja-primary), var(--idja-secondary));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.idja-mobile-toggle { display: none; }

/* ================================================================
   STARS BACKGROUND
================================================================ */
#idja-stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
}

/* ================================================================
   LAYOUT
================================================================ */
.idja-page-wrap { position: relative; z-index: 1; padding-top: 64px; }
.idja-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.idja-section   { padding: 5rem 0; }
.idja-section-sm { padding: 3rem 0; }

/* ================================================================
   IDEA CARD
================================================================ */
.idea-card { border-radius: var(--radius-xl); overflow: hidden; }
.idea-card:hover { transform: translateY(-8px) scale(1.01); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.idea-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.85rem; }
.idea-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.idea-card-title { font-size: 0.95rem; font-weight: 700; color: var(--idja-text); margin-bottom: 0.5rem; line-height: 1.5; }
.idea-card-title a:hover { color: #a5b4fc; }
.idea-card-summary { font-size: 0.8rem; color: var(--idja-text-muted); line-height: 1.7; margin-bottom: 0.75rem; }
.idea-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.85rem; }
.idea-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.06); }
.idea-card-stats { display: flex; align-items: center; gap: 0.85rem; }
.idea-stat { display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--idja-text-dim); }
.idea-like-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 4px; font-size: 0.78rem; color: var(--idja-text-dim); padding: 0; font-family: inherit; transition: color 0.2s ease; }
.idea-like-btn.liked, .idea-like-btn:hover { color: #ef4444; }
.idea-like-btn.liked svg { fill: currentColor; }

/* ================================================================
   SCORE RING
================================================================ */
.score-ring { transform: rotate(-90deg); transform-origin: 50% 50%; }
.score-ring-wrap { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.score-ring-val { position: absolute; font-size: 0.7rem; font-weight: 900; color: var(--idja-text); }

/* ================================================================
   STEP INDICATOR
================================================================ */
.step-indicator {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.step-indicator.active {
    background: linear-gradient(135deg, var(--idja-primary), var(--idja-secondary));
    border-color: var(--idja-primary);
    box-shadow: 0 0 20px rgba(99,102,241,0.5);
}
.step-indicator.completed {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-color: #10b981;
}

/* ================================================================
   PROGRESS BAR
================================================================ */
.progress-bar-wrap { background: rgba(255,255,255,0.07); border-radius: 20px; overflow: hidden; height: 6px; }
.progress-bar-fill {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--idja-primary), var(--idja-secondary), var(--idja-accent));
    background-size: 200% 100%;
    animation: gradient-shift 2s ease infinite;
}

/* ================================================================
   SIDEBAR (Dashboard)
================================================================ */
.sidebar-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--idja-text-muted);
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
    cursor: pointer;
    width: 100%;
    text-align: right;
}
.sidebar-item:hover { background: rgba(99,102,241,0.1); border-right-color: rgba(99,102,241,0.4); color: var(--idja-text); }
.sidebar-item.active { background: rgba(99,102,241,0.15); border-right-color: var(--idja-primary); color: #a5b4fc; }

/* ================================================================
   FOOTER
================================================================ */
#idja-footer {
    background: rgba(255,255,255,0.01);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 3.5rem 0 1.5rem;
    position: relative; z-index: 1;
}
.idja-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.idja-footer-brand p { font-size: 0.85rem; color: var(--idja-text-muted); line-height: 1.8; margin-top: 0.75rem; max-width: 280px; }
.idja-footer-title { font-size: 0.85rem; font-weight: 700; color: var(--idja-text); margin-bottom: 1rem; }
.idja-footer-links { list-style: none; }
.idja-footer-links li { margin-bottom: 0.6rem; }
.idja-footer-links a { font-size: 0.82rem; color: var(--idja-text-muted); transition: color 0.2s ease; }
.idja-footer-links a:hover { color: #a5b4fc; }
.idja-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.5rem;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: var(--idja-text-dim);
}

/* ================================================================
   HERO
================================================================ */
.idja-hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}
.idja-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.idja-hero-content { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.idja-hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--idja-glass);
    border: 1px solid rgba(99,102,241,0.3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #a5b4fc;
    margin-bottom: 2rem;
}
.idja-hero-h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.2; color: var(--idja-text); }
.idja-hero-rotating { display: block; min-height: 1.3em; }
.idja-hero-desc { font-size: 1.05rem; color: var(--idja-text-muted); line-height: 1.9; margin: 1.5rem auto; max-width: 700px; }
.idja-hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.idja-hero-stats {
    display: flex; justify-content: center; gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.idja-hero-stat-num { font-size: 2.2rem; font-weight: 900; color: var(--idja-text); }
.idja-hero-stat-lbl { font-size: 0.8rem; color: var(--idja-text-muted); margin-top: 4px; }

/* ================================================================
   FEATURES GRID
================================================================ */
.idja-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.idja-feature-card {
    padding: 1.75rem;
    border-radius: var(--radius-xl);
}
.idja-feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.idja-feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--idja-text); margin-bottom: 0.5rem; }
.idja-feature-card p  { font-size: 0.83rem; color: var(--idja-text-muted); line-height: 1.7; }

/* ================================================================
   CATEGORY FILTER
================================================================ */
.idja-cat-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.idja-cat-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--idja-glass);
    color: var(--idja-text-muted);
    transition: all 0.2s ease;
    cursor: pointer;
}
.idja-cat-btn:hover, .idja-cat-btn.active {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.4);
    color: #a5b4fc;
}

/* ================================================================
   SECTION HEADERS
================================================================ */
.idja-section-header { text-align: center; margin-bottom: 3rem; }
.idja-section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: var(--idja-text); }
.idja-section-header p  { font-size: 0.9rem; color: var(--idja-text-muted); margin-top: 0.6rem; }

/* ================================================================
   NOTIFICATION DOT
================================================================ */
.notification-dot { animation: pulse-dot 2s infinite; }

/* ================================================================
   MODAL / OVERLAY
================================================================ */
.idja-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}
.idja-modal-wrap {
    background: var(--idja-bg2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-2xl);
    width: 100%; max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
}

/* ================================================================
   TOAST
================================================================ */
#idja-toast {
    position: fixed;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--idja-bg3);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--idja-text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#idja-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   STATS COUNTER
================================================================ */
.idja-stat-counter { font-variant-numeric: tabular-nums; }

/* ================================================================
   AI ASSISTANT
================================================================ */
.ai-typing::after { content: '|'; animation: blink 1s infinite; }
.idja-ai-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.08));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
}

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 768px) {
    .idja-nav-links { display: none; }
    .idja-mobile-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 38px; height: 38px;
        border-radius: var(--radius-md);
        background: var(--idja-glass);
        border: 1px solid var(--idja-glass-border);
        color: var(--idja-text-muted);
        font-size: 1.1rem;
    }
    .idja-mobile-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10,15,30,0.98);
        border-top: 1px solid rgba(255,255,255,0.07);
        padding: 0.75rem;
    }
    .idja-mobile-menu.open { display: block; }
    .idja-mobile-menu .idja-nav-links {
        display: flex; flex-direction: column;
        gap: 2px;
    }
    .idja-mobile-menu .idja-nav-item a { border-radius: var(--radius-md); }

    .idja-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .idja-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .idja-hero-stats { gap: 1.5rem; }
    .idja-hero-stats { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .idja-footer-grid { grid-template-columns: 1fr; }
    .idja-nav-actions .btn-primary span { display: none; }
}
