:root {
    --bg-main: #020617; /* Deeper navy */
    --bg-card: rgba(15, 23, 42, 0.4);
    --bg-card-hover: rgba(15, 23, 42, 0.7);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #7c3aed; /* More vibrant purple */
    --accent-hover: #8b5cf6;
    --accent-glow: #06b6d4;
    --border: rgba(255, 255, 255, 0.06);
    --glow: 0 0 25px rgba(6, 182, 212, 0.4);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --glass: rgba(255, 255, 255, 0.03);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-glow);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 0% 0%, rgba(107, 33, 168, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.1) 0%, transparent 40%);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Layout --- */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 1;
}


.sidebar {
    width: 260px;
    background: rgba(8, 12, 23, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    z-index: 50;
    position: relative;
    overflow-y: auto;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.brand-logo {
    font-size: 1.6rem;
    text-align: center;
    background: linear-gradient(135deg, #c084fc, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    margin-bottom: 0.2rem;
}
.brand-tagline {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* DesignInk CSS Wordmark */
.sidebar-logo-wrap {
    text-align: center;
    margin-bottom: 0.3rem;
}

.di-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}

.di-design,
.di-ink {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.di-i {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.55rem;
    color: #ef4444;
    letter-spacing: -0.5px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* Glass Panels */
.panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.panel:hover {
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.04), 0 8px 30px rgba(6, 182, 212, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.8rem;
}

.panel-title {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
button {
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(107, 33, 168, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    font-size: 1.1rem;
    border: 1px solid rgba(192, 132, 252, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--glow);
    border-color: rgba(6, 182, 212, 0.5);
}

.btn-primary:disabled {
    background: #334155;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: transparent;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.icon-btn {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem;
}
.icon-btn:hover {
    color: var(--accent-glow);
}

/* Premium Ad Containers */
.premium-ad-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.premium-ad-container:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.05), 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.premium-ad-container::before {
    content: 'Sponsored';
    position: absolute;
    top: 0;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0 0 6px 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    border: 1px solid var(--border);
    border-top: none;
    z-index: 10;
}

.premium-ad-sidebar {
    min-height: 250px;
    padding: 0.5rem;
}

.premium-ad-banner {
    width: 100%;
    min-height: 90px;
}

/* Global Glowing Hero */
.hero-banner {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(13, 17, 33, 0.8) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: inset 0 0 40px rgba(6, 182, 212, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-banner h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #06b6d4, #c084fc, #06b6d4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

@keyframes gradientMove {
    to { background-position: 200% center; }
}

.hero-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.beta-tag {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #67e8f9;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Inputs */
input[type="text"], input[type="password"], input[type="url"], select, textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--accent-glow);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(6, 182, 212, 0.4);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--accent-glow);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--accent-glow);
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* Files List */
.metadata-gen-file-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.metadata-gen-file-item img {
    border-radius: 4px;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Grid Settings */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-item label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

input[type="range"] {
    accent-color: var(--accent-glow);
}

/* Progress */
.metadata-gen-progress-bar-container {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
    box-shadow: inset 0 0 5px #000;
}

.metadata-gen-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #c084fc);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Errors */
.metadata-gen-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-top: 1rem;
}

/* Custom Tabs System in Sidebar */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(107, 33, 168, 0.2);
    color: white;
    border: 1px solid rgba(192, 132, 252, 0.3);
    box-shadow: inset 0 0 15px rgba(6, 182, 212, 0.1), 0 0 10px rgba(107, 33, 168, 0.2);
}

.tab-btn.active i {
    color: var(--accent-glow);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Extensions Market Cards */
.extension-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s;
    position: relative;
}
.extension-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    transform: translateY(-2px);
}

/* Base Util */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0,0,0,0.5);
  transition: .4s;
  border-radius: 24px;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent); border-color: transparent; }
input:checked + .slider:before { transform: translateX(26px); box-shadow: 0 0 10px #fff; }

/* Restored Platform Grid Styles */
.metadata-gen-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.platform-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.platform-card:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.platform-card.selected {
    border-color: var(--accent-glow);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: inset 0 0 15px rgba(6, 182, 212, 0.1), 0 0 10px rgba(6, 182, 212, 0.2);
}

.platform-card img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.platform-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.platform-settings-icon {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: color 0.2s ease;
}
.platform-settings-icon:hover {
    color: var(--accent-glow);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
    transform: translateY(-3px);
}

/* --- Sidebar Tabs CSS (Restored) --- */
.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.8rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--accent);
    background: rgba(6, 182, 212, 0.1);
    box-shadow: inset 2px 0 0 0 var(--accent-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tabSmoothScaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabSmoothScaleIn {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- Home Dashboard & Carousel --- */
.dashboard-home {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.carousel-track {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slideCarousel 28s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.carousel-slide {
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
}

.slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, rgba(5, 8, 17, 0.9) 0%, rgba(5, 8, 17, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.slide-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@keyframes slideCarousel {
    0%, 20% { transform: translateX(0%); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0%); }
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-glow);
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Quick Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Outfit';
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-glow);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Testimonials & Roadmap */
.roadmap-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.testimonial-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-glow);
    background: rgba(6, 182, 212, 0.03);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}

.testimonial-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--accent-glow);
}

.platform-support-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.5s ease;
    padding: 2rem 0;
}

.platform-support-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.platform-support-grid img {
    height: 30px;
    object-fit: contain;
}

.marketplace-link {
    background: linear-gradient(90deg, rgba(6,182,212,0.1) 0%, rgba(107,33,168,0.1) 100%);
    border: 1px solid var(--accent-glow);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.marketplace-link:hover {
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

@media (max-width: 768px) {
    .marketplace-link {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ===== WhatsApp Floating Button ===== */
#waFloat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: all 0.3s ease;
    animation: waPulse 2.5s infinite;
}
#waFloat:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
    50% { box-shadow: 0 4px 35px rgba(37,211,102,0.8); }
}

/* ===== Usage Analytics Mini Cards ===== */
.stat-card-mini {
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}
.stat-card-mini:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 15px rgba(6,182,212,0.1);
}
.stat-icon {
    font-size: 2rem;
    color: var(--accent-glow);
    width: 50px;
    text-align: center;
    flex-shrink: 0;
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-big {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ===== Library Tool Card ===== */
.library-card {
    background: rgba(6,182,212,0.05);
    border: 1px solid rgba(6,182,212,0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s;
}
.library-card:hover {
    border-color: var(--accent-glow);
    box-shadow: 0 0 20px rgba(6,182,212,0.15);
    transform: translateY(-2px);
}
.library-card-icon {
    font-size: 2.5rem;
    color: var(--accent-glow);
}
.library-card h3 { font-size: 1.2rem; }
.library-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== History Item ===== */
.history-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.history-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item button {
    background: transparent;
    border: none;
    color: var(--accent-glow);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
}

/* ===== FAQ Item ===== */
.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(6,182,212,0.3); }

/* ===== Smooth tab fade transition ===== */
.tab-content.active {
    display: block;
    animation: tabFadeIn 0.35s ease forwards;
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Sidebar Toggle Button ===== */
#sidebarToggleBtn {
    position: absolute;
    top: 1rem;
    right: -14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--accent-glow);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    padding: 0;
}
#sidebarToggleBtn:hover {
    background: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.5);
    transform: scale(1.15);
}

/* ===== Sidebar Collapsed State ===== */
.sidebar {
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-collapsed {
    width: 72px !important;
}

.sidebar-collapsed .sidebar-logo-wrap {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.sidebar-collapsed .di-wordmark,
.sidebar-collapsed .brand-tagline {
    display: none;
}

.sidebar-collapsed .nav-label {
    display: none;
}

.sidebar-collapsed .tab-btn {
    justify-content: center;
    padding: 0.9rem 0;
    font-size: 1.1rem;
}

.sidebar-collapsed .tab-btn i {
    margin: 0;
}

.sidebar-collapsed #sidebarUserProfile {
    padding: 0.5rem;
}

.sidebar-collapsed .sidebar-profile-text {
    display: none;
}

.sidebar-collapsed #sidebarAvatar {
    width: 36px;
    height: 36px;
}

/* Smooth label transitions */
.nav-label {
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

/* ===== Profile Dropdown Menu Items ===== */
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: inherit;
}

.profile-menu-item:hover {
    background: rgba(6, 182, 212, 0.1);
    color: white;
    transform: translateX(3px);
}

.profile-menu-item i {
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Dropdown open animation */
@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
#profileDropdownMenu.open {
    display: block !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Profile trigger hover */
#profileDropdownTrigger:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
}

/* --- HiveDown Premium Downloader Styles --- */
.h-platform-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.h-platform-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-glow);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.1);
}

.h-platform-card i {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.5));
}

.h-platform-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hive-steps {
    margin-top: 1rem;
}

.h-step {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.h-step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-glow);
    margin-bottom: 0.5rem;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.h-step h4 {
    font-size: 1.1rem;
    color: #fff;
}

.h-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .hive-steps {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

.downloader-input-wrap:focus-within .input-group {
    border-color: var(--accent-glow) !important;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

#videoDlStatus i {
    margin-right: 0.5rem;
}

/* Scrollbar adjustment for the new grids */
.hive-platforms-grid::-webkit-scrollbar {
    height: 4px;
}

/* Ad Wait Modal */
.ad-wait-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.ad-wait-content {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    padding: 2rem;
    max-width: 500px;
    width: 95%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.ad-wait-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.ad-wait-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.ad-container-modal {
    margin: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.countdown-wrapper {
    margin: 1rem 0;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-glow);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.ad-download-btn {
    display: none;
    margin-top: 1rem;
}

.close-ad-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.close-ad-modal:hover {
    color: #fff;
}

/* ===== Mobile Responsive Styles ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 40;
}
.mobile-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: 280px !important;
        transition: left 0.3s ease;
        z-index: 50;
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .sidebar.mobile-open {
        left: 0;
    }

    #sidebarToggleBtn {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hero-banner h1 {
        font-size: 3rem;
    }
    
    .hero-carousel {
        height: auto;
        min-height: 450px;
    }

    .carousel-slide {
        padding: 2rem 1.5rem;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .slide-content h2 {
        font-size: 2.2rem;
    }
    
    .platform-support-grid {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-home > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .metadata-gen-platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hive-steps {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 1rem !important;
    }

    .content-scroll-area {
        padding: 1rem;
    }

    .panel {
        padding: 1rem;
    }

    .dashboard-home {
        gap: 1.5rem;
    }
}
