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

body {
    font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 20% 30%, #0a1f24, #000000 90%);
    color: #e5e7eb;
    min-height: 100vh;
    animation: bgPulse 28s infinite alternate ease-in-out;
}

@keyframes bgPulse {
    0% {
        background: radial-gradient(circle at 10% 20%, #0a1f24, #000000 90%);
    }
    100% {
        background: radial-gradient(circle at 90% 80%, #0b4a52, #030a12 95%);
    }
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: #0B5E66;
    border-radius: 10px;
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #1caff0;
}

/* ===== Code Block ===== */
.code-block {
    background: #0d0d0f;
    border: 1px solid #1f2a36;
    border-radius: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0B5E66, transparent, #0B5E66, transparent);
    background-size: 400% 400%;
    border-radius: 0.85rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: borderGlow 3s ease-in-out infinite;
}

.code-block:hover::before {
    opacity: 1;
}

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

.code-block:hover {
    border-color: #0B5E66;
    transform: translateY(-2px) scale(1.002);
    box-shadow: 0 8px 40px rgba(11, 94, 102, 0.25);
}

.code-block pre {
    padding: 1rem;
    font-size: 0.7rem;
    line-height: 1.8;
    overflow-x: auto;
    background: transparent !important;
    margin: 0;
    text-align: left;
    direction: ltr;
}

.code-block code {
    background: transparent !important;
    font-family: 'JetBrains Mono', monospace;
    text-align: left;
    direction: ltr;
}

/* ===== Highlight.js Overrides ===== */
.hljs {
    background: transparent !important;
    color: #d6deeb;
}
.hljs-keyword { color: #c792ea; }
.hljs-string { color: #c3e88d; }
.hljs-comment { color: #676e95; font-style: italic; }
.hljs-function { color: #82aaff; }
.hljs-built_in { color: #addb67; }
.hljs-params { color: #f78c6c; }
.hljs-number { color: #f78c6c; }
.hljs-name { color: #82aaff; }
.hljs-attr { color: #f78c6c; }

/* ===== Method Cards ===== */
.method-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    border: 1px solid #1f2a36;
    border-radius: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.method-card:nth-child(1)  { animation-delay: 0.05s; }
.method-card:nth-child(2)  { animation-delay: 0.10s; }
.method-card:nth-child(3)  { animation-delay: 0.15s; }
.method-card:nth-child(4)  { animation-delay: 0.20s; }
.method-card:nth-child(5)  { animation-delay: 0.25s; }
.method-card:nth-child(6)  { animation-delay: 0.30s; }
.method-card:nth-child(7)  { animation-delay: 0.35s; }
.method-card:nth-child(8)  { animation-delay: 0.40s; }
.method-card:nth-child(9)  { animation-delay: 0.45s; }
.method-card:nth-child(10) { animation-delay: 0.50s; }
.method-card:nth-child(11) { animation-delay: 0.55s; }
.method-card:nth-child(12) { animation-delay: 0.60s; }
.method-card:nth-child(13) { animation-delay: 0.65s; }
.method-card:nth-child(14) { animation-delay: 0.70s; }
.method-card:nth-child(15) { animation-delay: 0.75s; }
.method-card:nth-child(16) { animation-delay: 0.80s; }
.method-card:nth-child(17) { animation-delay: 0.85s; }
.method-card:nth-child(18) { animation-delay: 0.90s; }
.method-card:nth-child(19) { animation-delay: 0.95s; }
.method-card:nth-child(20) { animation-delay: 1.00s; }
.method-card:nth-child(21) { animation-delay: 1.05s; }
.method-card:nth-child(22) { animation-delay: 1.10s; }
.method-card:nth-child(23) { animation-delay: 1.15s; }
.method-card:nth-child(24) { animation-delay: 1.20s; }
.method-card:nth-child(25) { animation-delay: 1.25s; }

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(11, 94, 102, 0.05), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.method-card:hover::before {
    opacity: 1;
}

.method-card:hover {
    border-color: #0B5E66;
    box-shadow: 0 8px 40px rgba(11, 94, 102, 0.2), inset 0 1px 0 rgba(11, 94, 102, 0.2);
    transform: translateY(-4px) scale(1.005);
    background: rgba(0, 0, 0, 0.75);
}

.method-card .badge-type {
    background: #1c2a3a;
    color: #8fcbff;
    font-size: 0.55rem;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.method-card:hover .badge-type {
    background: #0B5E66;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(11, 94, 102, 0.4);
}

.badge-type::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.method-card:hover .badge-type::after {
    opacity: 1;
}

/* ===== Header / Nav ===== */
.glass-nav {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f2a36;
    position: relative;
    z-index: 10;
}

.glass-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #0B5E66, transparent);
    animation: navGlow 4s ease-in-out infinite;
}

@keyframes navGlow {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

/* ===== Colors ===== */
.text-virasty       { color: #0B5E66; }
.border-virasty     { border-color: #0B5E66; }
.bg-virasty         { background: #0B5E66; }
.hover\:bg-virasty:hover  { background: #0B5E66; }
.hover\:text-virasty:hover { color: #0B5E66; }

/* ===== Animations ===== */
.rotating-icon {
    animation: spin 12s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Emoji Images ===== */
.emoji-gif {
    display: inline-block;
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.emoji-gif-sm {
    width: 20px;
    height: 20px;
}
.emoji-gif-lg {
    width: 32px;
    height: 32px;
}
.emoji-gif:hover,
.emoji-gif-sm:hover,
.emoji-gif-lg:hover {
    transform: scale(1.3) rotate(5deg);
}

/* ===== Article Content ===== */
.article-content p {
    margin-bottom: 0.75rem;
    line-height: 2;
    animation: textFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-10px);
}
.article-content p:nth-child(1) { animation-delay: 0.1s; }
.article-content p:nth-child(2) { animation-delay: 0.2s; }
.article-content p:nth-child(3) { animation-delay: 0.3s; }
.article-content p:nth-child(4) { animation-delay: 0.4s; }

@keyframes textFadeIn {
    0%   { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

.article-content ul {
    list-style: none;
    padding-right: 1rem;
    margin-bottom: 0.75rem;
}
.article-content ul li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.4rem;
    line-height: 1.8;
    animation: listFadeIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-5px);
}
.article-content ul li:nth-child(1) { animation-delay: 0.15s; }
.article-content ul li:nth-child(2) { animation-delay: 0.25s; }
.article-content ul li:nth-child(3) { animation-delay: 0.35s; }
.article-content ul li:nth-child(4) { animation-delay: 0.45s; }

@keyframes listFadeIn {
    0%   { opacity: 0; transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

.article-content ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: #0B5E66;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.5); opacity: 0.5; }
}

.article-content ul li:hover::before {
    background: #1caff0;
    transform: scale(2);
    box-shadow: 0 0 20px rgba(11, 94, 102, 0.5);
}

/* ===== Sidebar Menu Emoji ===== */
.menu-emoji {
    width: 22px;
    height: 22px;
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.menu-emoji:hover {
    transform: scale(1.3) rotate(10deg);
}

/* ===== Feature Grid ===== */
.feature-grid-item {
    animation: featureFloat 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.feature-grid-item:nth-child(1) { animation-delay: 0s; }
.feature-grid-item:nth-child(2) { animation-delay: 0.5s; }
.feature-grid-item:nth-child(3) { animation-delay: 1s; }
.feature-grid-item:nth-child(4) { animation-delay: 1.5s; }
.feature-grid-item:nth-child(5) { animation-delay: 2s; }
.feature-grid-item:nth-child(6) { animation-delay: 2.5s; }

@keyframes featureFloat {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-6px); }
}

.feature-grid-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #0B5E66;
    box-shadow: 0 8px 40px rgba(11, 94, 102, 0.25);
    background: rgba(11, 94, 102, 0.1);
}

/* ===== Copy Button ===== */
.copy-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    z-index: 10;
    border: none;
    cursor: pointer;
}
.copy-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(11, 94, 102, 0.3);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}
.copy-btn:hover::before {
    width: 200px;
    height: 200px;
}
.copy-btn:hover {
    transform: scale(1.1);
    color: #0B5E66;
}
.copy-btn i {
    transition: all 0.3s ease;
}
.copy-btn:hover i {
    transform: scale(1.2);
}

/* ===== Sidebar Nav Button ===== */
.sidebar-nav-btn {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-align: right;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    border: none;
    background: transparent;
    color: #a1a1aa;
    cursor: pointer;
}
.sidebar-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: #0B5E66;
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom;
}
.sidebar-nav-btn:hover::before {
    transform: scaleY(1);
}
.sidebar-nav-btn .menu-emoji {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sidebar-nav-btn:hover .menu-emoji {
    transform: scale(1.3) rotate(10deg);
}
.sidebar-nav-btn[class*="bg-virasty/20"]::before {
    transform: scaleY(1);
}
.sidebar-nav-btn:hover {
    background: rgba(39, 39, 42, 0.3);
    color: white;
}

/* ===== Main Content ===== */
.main-content {
    animation: mainFadeIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}
@keyframes mainFadeIn {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-section {
    animation: heroSlide 1s ease-out forwards;
    opacity: 0;
    transform: translateY(-20px);
}
@keyframes heroSlide {
    0%   { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== Section Title ===== */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0B5E66, #1caff0);
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.section-title:hover::after {
    width: 100%;
}
.emoji-gif-lg {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.emoji-gif-lg:hover {
    transform: scale(1.2) rotate(5deg);
}

.footer-scroll {
    display: inline-block;
    animation: scrollFooter 18s linear infinite;
    white-space: nowrap;
}

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

footer {
    overflow: hidden;
    position: relative;
}

/* ===== Footer Link ===== */
.footer-link {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
}
.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0B5E66;
    transition: width 0.3s ease;
}
.footer-link:hover::after {
    width: 100%;
}
.footer-link:hover {
    color: #0B5E66;
    transform: translateY(-2px);
}

/* ===== Search Input ===== */
.input-search {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    color: white;
    outline: none;
    width: 10rem;
}
.input-search:focus {
    transform: scale(1.02);
    border-color: #0B5E66;
    box-shadow: 0 0 30px rgba(11, 94, 102, 0.15);
}
.input-search::placeholder {
    color: #71717a;
    transition: opacity 0.3s ease;
}
.input-search:focus::placeholder {
    opacity: 0.3;
}

.badge-count {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-count:hover {
    transform: scale(1.1);
    color: #0B5E66;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.glass-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(11, 94, 102, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Floating Particles ===== */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #0B5E66;
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}
@keyframes particleFloat {
    0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.3; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ===== Logo & Version ===== */
.logo-pulse {
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(11, 94, 102, 0.3)); }
    50%      { filter: drop-shadow(0 0 30px rgba(11, 94, 102, 0.6)); }
}

.version-badge {
    animation: versionBadgePulse 2s ease-in-out infinite;
}
@keyframes versionBadgePulse {
    0%, 100% { border-color: #1f2a36; }
    50%      { border-color: #0B5E66; box-shadow: 0 0 20px rgba(11, 94, 102, 0.2); }
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-lift:hover {
    transform: translateY(-3px) scale(1.01);
}

.sidebar-divider {
    animation: dividerPulse 3s ease-in-out infinite;
}
@keyframes dividerPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.7; }
}

/* ===== Utility classes ===== */
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.h-screen { height: 100vh; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-60 { width: 15rem; }
.w-full { width: 100%; }
.w-auto { width: auto; }
.w-4 { width: 1rem; }
.w-40 { width: 10rem; }
.w-56 { width: 14rem; }
.w-1\\.5 { width: 0.375rem; }
.h-7 { height: 1.75rem; }
.h-12 { height: 3rem; }
.h-4 { height: 1rem; }
.h-1\\.5 { height: 0.375rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-auto { margin-top: auto; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-2 { padding: 0.5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-0\\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-1\\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.pr-1 { padding-right: 0.25rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.border { border: 1px solid #27272a; }
.border-b { border-bottom: 1px solid #27272a; }
.border-l { border-left: 1px solid #27272a; }
.border-t { border-top: 1px solid #27272a; }
.border-r-2 { border-right: 2px solid #0B5E66; }
.border-zinc-800 { border-color: #27272a; }
.border-zinc-800\\/70 { border-color: rgba(39, 39, 42, 0.7); }
.border-zinc-800\\/60 { border-color: rgba(39, 39, 42, 0.6); }
.border-zinc-700 { border-color: #3f3f46; }
.border-dashed { border-style: dashed; }
.border-virasty { border-color: #0B5E66; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.bg-black\\/40 { background: rgba(0, 0, 0, 0.4); }
.bg-black\\/30 { background: rgba(0, 0, 0, 0.3); }
.bg-black\\/60 { background: rgba(0, 0, 0, 0.6); }
.bg-black\\/70 { background: rgba(0, 0, 0, 0.7); }
.bg-zinc-800 { background: #27272a; }
.bg-zinc-900\\/30 { background: rgba(24, 24, 27, 0.3); }
.bg-zinc-900\\/40 { background: rgba(24, 24, 27, 0.4); }
.bg-virasty\\/20 { background: rgba(11, 94, 102, 0.2); }
.bg-virasty { background: #0B5E66; }
.bg-virasty\\/10 { background: rgba(11, 94, 102, 0.1); }
.text-white { color: white; }
.text-zinc-400 { color: #a1a1aa; }
.text-zinc-500 { color: #71717a; }
.text-zinc-300 { color: #d4d4d8; }
.text-zinc-200 { color: #e4e4e7; }
.text-zinc-600 { color: #52525b; }
.text-virasty { color: #0B5E66; }
.text-\\[10px\\] { font-size: 0.625rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-xl { font-size: 1.25rem; }
.text-3xl { font-size: 1.875rem; }
.font-bold { font-weight: 700; }
.font-normal { font-weight: 400; }
.space-y-0\\.5 > * + * { margin-top: 0.125rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-y-0\\.5 { row-gap: 0.125rem; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-1 { top: 0.25rem; }
.left-1 { left: 0.25rem; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.transition { transition: all 0.3s ease; }
.object-contain { object-fit: contain; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur { backdrop-filter: blur(8px); }
.cursor-pointer { cursor: pointer; }
.outline-none { outline: none; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* ===== Responsive ===== */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:w-56 { width: 14rem; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:relative { position: relative; }
    .md\:translate-x-0 { transform: translateX(0); }
    .md\:bg-black\/40 { background: rgba(0, 0, 0, 0.4); }
    .md\:backdrop-blur-sm { backdrop-filter: blur(4px); }
    .md\:border-l { border-left: 1px solid #27272a; }
    .md\:border-zinc-800\/70 { border-color: rgba(39, 39, 42, 0.7); }
    .md\:flex-col { flex-direction: column; }
    .md\:shrink-0 { flex-shrink: 0; }
}
@media (max-width: 767px) {
    .mobile-sidebar {
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .mobile-sidebar.open {
        transform: translateX(0);
    }
}