/* ===== SmmGuru - Global Styles ===== */
:root {
    --bg: #eef2f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --green: #22c55e;
    --green-bg: #166534;
    --red: #ef4444;
    --accent: #e8436f;
    --accent-light: #f9e0e8;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-full: 50px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-h);
}

/* ===== Header ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: black;
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    backdrop-filter: blur(12px);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; height: 100%;
}
.logo { display: flex; align-items: center; text-decoration: none; gap: 0; }
.logo-text {
    font-size: 22px; font-weight: 800; color: var(--text);
    background: var(--green-bg); color: #fff; padding: 6px 14px;
    border-radius: var(--radius-sm); letter-spacing: -0.5px;
}
.logo-dot { font-size: 22px; font-weight: 800; color: var(--green); margin-left: 1px; }
.header-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
    font-size: 13px; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; user-select: none;
}

/* Theme Toggle */
.theme-switch { position: relative; width: 44px; height: 24px; }
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-switch .slider {
    position: absolute; inset: 0; background: #cbd5e1;
    border-radius: 24px; cursor: pointer; transition: 0.3s;
}
.theme-switch .slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    left: 3px; top: 3px; background: #fff; border-radius: 50%;
    transition: 0.3s;
}
.theme-switch input:checked + .slider { background: var(--green); }
.theme-switch input:checked + .slider::before { transform: translateX(20px); }

/* Menu Button */
.menu-btn {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.menu-btn span {
    display: block; width: 24px; height: 2.5px;
    background: var(--text); border-radius: 2px; transition: 0.3s;
}
.menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
.mobile-menu.open { pointer-events: auto; opacity: 1; }
.mobile-menu-overlay {
    position: absolute; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}
.mobile-menu-content {
    position: absolute; top: 0; right: 0; width: 300px; height: 100%;
    background: var(--bg-card); transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.mobile-menu.open .mobile-menu-content { transform: translateX(0); }
.mobile-menu-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.menu-close {
    background: none; border: none; font-size: 28px;
    cursor: pointer; color: var(--text); padding: 4px 8px;
}
.mobile-nav { list-style: none; padding: 12px 0; }
.mobile-nav li a {
    display: block; padding: 14px 24px; text-decoration: none;
    color: var(--text); font-size: 15px; font-weight: 500;
    transition: background 0.2s;
}
.mobile-nav li a:hover { background: var(--bg); }
.nav-divider { height: 1px; background: var(--border); margin: 8px 20px; }

/* ===== WhatsApp Bar ===== */
.whatsapp-bar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #25D366; color: #fff; padding: 14px 20px;
    text-decoration: none; font-size: 15px; font-weight: 600;
    transition: background 0.2s;
}
.whatsapp-bar:hover { background: #1fb855; }
.whatsapp-bar svg { flex-shrink: 0; }

/* ===== Banner Slider ===== */
.banner-slider {
    position: relative; overflow: hidden;
    margin: 0 16px; border-radius: var(--radius);
}
.banner-track {
    display: flex; transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%; position: relative;
    display: flex; overflow: hidden; border-radius: var(--radius);
    min-height: 320px;
}
.banner-left {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px; position: relative;
}
.banner-right {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px; position: relative;
}
.banner-left h2 {
    font-size: clamp(28px, 5vw, 48px); font-weight: 900;
    color: #fff; padding: 12px 24px; letter-spacing: 4px;
    border: 3px solid rgba(255,255,255,0.3);
}
.banner-right h2 {
    font-size: clamp(32px, 6vw, 72px); font-weight: 900;
    color: #fff; line-height: 1; text-align: right;
}
/* Wave divider between banner halves */
.banner-slide::after {
    content: ''; position: absolute; top: 0; left: 45%;
    width: 20%; height: 100%;
    background: inherit;
}
.banner-dots {
    display: flex; gap: 8px; justify-content: center;
    padding: 16px 0;
}
.banner-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1; cursor: pointer; transition: 0.3s;
    border: none;
}
.banner-dot.active { background: var(--accent); width: 28px; border-radius: 5px; }

/* ===== Services Grid ===== */
.section { padding: 32px 16px; }
.section-title {
    font-size: 24px; font-weight: 800; margin-bottom: 20px;
    color: var(--text);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.service-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 28px 16px; border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; border-radius: var(--radius) var(--radius) 0 0;
    transition: height 0.3s;
}
.service-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
}
.service-card:hover::before { height: 100%; opacity: 0.06; }
.service-icon {
    font-size: 40px; margin-bottom: 12px; position: relative; z-index: 1;
}
.service-name {
    font-size: 14px; font-weight: 700; text-align: center;
    position: relative; z-index: 1;
}

/* ===== Service Detail Page ===== */
.service-hero {
    margin: 0 16px; border-radius: var(--radius);
    padding: 28px 24px; display: flex; align-items: center; gap: 16px;
    position: relative; overflow: hidden;
}
.service-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%);
}
.service-hero-icon { font-size: 48px; position: relative; z-index: 1; }
.service-hero-text { position: relative; z-index: 1; }
.service-hero-label {
    font-size: 11px; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: rgba(0,0,0,0.5); margin-bottom: 4px;
}
.service-hero-title { font-size: 22px; font-weight: 800; color: #1a1a2e; }
.service-hero-desc { font-size: 13px; color: rgba(0,0,0,0.6); }

/* Sparkles animation */
.sparkle {
    position: absolute; width: 4px; height: 4px;
    background: rgba(255,255,255,0.6); border-radius: 50%;
    animation: sparkle 3s infinite;
}
@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Category Tabs */
.category-tabs {
    display: flex; gap: 8px; padding: 20px 16px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    padding: 10px 20px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border); background: var(--bg-card);
    font-size: 14px; font-weight: 600; color: var(--text-secondary);
    cursor: pointer; white-space: nowrap; transition: all 0.2s;
}
.category-tab.active,
.category-tab:hover {
    background: var(--text); color: #fff; border-color: var(--text);
}

/* Plan Cards */
.plans-list { padding: 0 16px; display: flex; flex-direction: column; gap: 2px; }
.plan-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; background: var(--bg-card);
    border-bottom: 1px solid var(--border); text-decoration: none;
    color: var(--text); transition: all 0.2s;
}
.plan-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.plan-card:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.plan-card:hover { background: var(--bg-card-hover); }
.plan-info { flex: 1; }
.plan-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.plan-desc { font-size: 13px; color: var(--text-secondary); }
.plan-badge {
    display: inline-block; padding: 3px 10px; border-radius: 4px;
    background: var(--green-bg); color: #fff; font-size: 10px;
    font-weight: 700; letter-spacing: 0.5px; margin-bottom: 6px;
}
.plan-price-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: var(--radius-full);
    font-size: 15px; font-weight: 700; color: #fff;
    border: none; cursor: pointer; white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-price-btn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.plan-price-btn svg { width: 16px; height: 16px; }

/* ===== Purchase Page ===== */
.purchase-section { padding: 24px 16px; }
.purchase-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border);
}
.purchase-header {
    display: flex; align-items: center; gap: 14px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.purchase-icon { font-size: 44px; }
.purchase-plan-name { font-size: 18px; font-weight: 700; }
.purchase-plan-desc { font-size: 13px; color: var(--text-secondary); }
.purchase-price-badge {
    margin-left: auto; padding: 8px 16px; border-radius: var(--radius-full);
    font-size: 16px; font-weight: 800; color: #fff;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 16px; font-weight: 700; margin-bottom: 10px;
}
.form-input {
    width: 100%; padding: 16px 20px; border: 2px solid var(--border);
    border-radius: var(--radius); font-size: 15px; font-family: var(--font);
    background: var(--bg); transition: border-color 0.2s;
    color: var(--text);
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-input::placeholder { color: #94a3b8; }
.submit-btn {
    width: 100%; padding: 18px; border: none; border-radius: var(--radius);
    font-size: 17px; font-weight: 700; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    background: linear-gradient(135deg, var(--accent), #c2185b);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,67,111,0.3); }

/* Features List */
.features-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 24px 0;
}
.feature-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 500; color: var(--text);
}
.feature-check { color: var(--green); font-size: 16px; }

/* ===== About Page ===== */
.page-hero {
    margin: 16px; padding: 48px 32px; border-radius: var(--radius);
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff; text-align: center;
}
.page-hero h1 { font-size: 32px; font-weight: 900; margin-bottom: 8px; }
.page-hero p { font-size: 15px; opacity: 0.8; }
.content-section {
    padding: 32px 16px;
}
.content-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 32px 24px; border: 1px solid var(--border);
    margin-bottom: 16px;
}
.content-card h2 {
    font-size: 20px; font-weight: 800; margin-bottom: 12px;
    color: var(--text);
}
.content-card p {
    font-size: 14px; color: var(--text-secondary); line-height: 1.8;
    margin-bottom: 12px;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px; margin-top: 24px;
}
.stat-card {
    text-align: center; padding: 24px 16px;
    background: var(--bg); border-radius: var(--radius);
}
.stat-number { font-size: 32px; font-weight: 900; color: var(--green); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; }

/* ===== Contact Page ===== */
.contact-grid {
    display: grid; grid-template-columns: 1fr;
    gap: 16px; padding: 0 16px 32px;
}
.contact-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border-radius: var(--radius);
    padding: 24px; border: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.contact-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.contact-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; }
.contact-value { font-size: 15px; font-weight: 700; }

/* ===== Refer Page ===== */
.refer-hero {
    margin: 16px; padding: 48px 32px; border-radius: var(--radius);
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff; text-align: center;
}
.refer-hero h1 { font-size: 32px; font-weight: 900; }
.refer-hero p { font-size: 15px; opacity: 0.9; margin-top: 8px; }
.refer-steps {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    padding: 0 16px 32px;
}
.refer-step {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 28px 24px; border: 1px solid var(--border);
    display: flex; align-items: flex-start; gap: 16px;
}
.step-number {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #c2185b);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800; flex-shrink: 0;
}
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-secondary); }

/* ===== Orders Page ===== */
.orders-list { padding: 0 16px 32px; }
.order-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 20px 24px; border: 1px solid var(--border);
    margin-bottom: 12px;
}
.order-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.order-id { font-size: 14px; font-weight: 700; color: var(--accent); }
.order-status {
    padding: 4px 12px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-processing { background: #dbeafe; color: #1e40af; }
.order-detail { font-size: 13px; color: var(--text-secondary); }
.empty-state {
    text-align: center; padding: 60px 24px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.empty-desc { font-size: 14px; color: var(--text-secondary); }

/* ===== Flash Messages ===== */
.flash-message {
    position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
    padding: 14px 24px; border-radius: var(--radius);
    display: flex; align-items: center; gap: 12px;
    z-index: 1100; font-size: 14px; font-weight: 600;
    box-shadow: var(--shadow-lg); animation: slideDown 0.4s ease;
}
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-message button {
    background: none; border: none; font-size: 20px;
    cursor: pointer; color: inherit; padding: 0 4px;
}
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== Footer ===== */
.footer {
    background: #1a1a2e; color: #fff; padding: 48px 16px 0;
    margin-top: 32px;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.footer-brand p { font-size: 13px; color: #94a3b8; margin-top: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-links a {
    display: block; font-size: 13px; color: #94a3b8;
    text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    text-align: center; padding: 24px 0; margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p { font-size: 12px; color: #64748b; }

/* ===== How To Use Section ===== */
.how-to-use { padding: 32px 16px; text-align: center; }
.how-to-use h2 { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 24px; }
.steps-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.step-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 28px 20px; border: 1px solid var(--border);
    text-align: center;
}
.step-card-icon { font-size: 40px; margin-bottom: 12px; }
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 12px; color: var(--text-secondary); }

/* ===== Responsive Improvements ===== */
@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .banner-slide { min-height: 220px; flex-direction: column; }
    .banner-left, .banner-right { padding: 20px; }
    .banner-right h2 { font-size: clamp(24px, 8vw, 42px); text-align: center; }
    .features-grid { grid-template-columns: 1fr; }
    .payment-container { padding: 12px; }
}

@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .service-card { padding: 20px 10px; }
    .service-icon { font-size: 32px; }
    .service-name { font-size: 12px; }
    .plan-card { padding: 16px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .plan-price-btn { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }
    .purchase-header { flex-direction: column; text-align: center; }
    .purchase-price-badge { margin: 10px 0 0; }
    .qr-wrap img { width: 180px; height: 180px; }
    .pay-header-amount { font-size: 28px; }
    .utr-input { font-size: 14px; padding: 14px; letter-spacing: 1px; }
}

@media (max-width: 360px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Video Bar ===== */
.video-bar {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    background: #FF0000; color: #fff; padding: 16px 20px;
    text-decoration: none; font-size: 16px; font-weight: 700;
    margin: 0; transition: background 0.2s;
    letter-spacing: 0.5px;
}
.video-bar:hover { background: #cc0000; }
.video-bar-icon { flex-shrink: 0; }

/* ===== Explore Services Section ===== */
.explore-section {
    padding: 32px 16px 16px;
}
.explore-title {
    font-size: 22px; font-weight: 800; margin-bottom: 20px;
    color: var(--text); text-align: center;
}
.explore-services-list {
    display: flex; flex-direction: column; gap: 12px;
}
.explore-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    background: var(--card-bg, var(--bg-card));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none; color: var(--text);
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}
.explore-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 5px; background: var(--card-accent, var(--green));
    border-radius: var(--radius) 0 0 var(--radius);
}
.explore-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.explore-card-logo {
    width: 52px; height: 52px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: var(--card-bg, #f8f9fa);
}
.explore-card-logo svg { border-radius: 10px; }
.explore-card-info { flex: 1; min-width: 0; }
.explore-card-name {
    font-size: 17px; font-weight: 700; margin-bottom: 2px;
    color: var(--text);
}
.explore-card-desc {
    font-size: 13px; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.explore-card-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 22px; border-radius: var(--radius-full);
    font-size: 14px; font-weight: 700; color: #fff;
    white-space: nowrap; flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.explore-card-btn svg { width: 14px; height: 14px; }
.explore-card:hover .explore-card-btn {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* Responsive Explore Cards */
@media (max-width: 480px) {
    .explore-card { padding: 16px; gap: 12px; }
    .explore-card-logo { width: 44px; height: 44px; }
    .explore-card-logo svg { width: 36px; height: 36px; }
    .explore-card-name { font-size: 15px; }
    .explore-card-btn { padding: 8px 16px; font-size: 13px; }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease forwards; }
