/* assets/css/style.css */
:root {
    --bg-main: #0f1014;
    --bg-card: #17181d;
    --bg-card-hover: #1e1f26;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --border-color: #2a2b33;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --radius-lg: 16px;
    --radius-sm: 8px;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-primary);
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
}
.brand span {
    color: var(--accent-purple);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-badge {
    background: #2d2e36;
    color: #fcd34d;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* --- Search --- */
.search-container {
    padding: 0 20px 16px;
    display: flex;
    gap: 12px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
}
.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}
.search-box svg {
    color: var(--text-secondary);
}
.filter-btn {
    background: var(--accent-purple);
    padding: 12px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Hero Banner (Exact 3.12 Aspect Ratio, Dono sides perfectly balanced) --- */
.hero-banner {
    /* Left aur Right dono side se 20px barabar margin */
    margin: 0 20px 24px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Bilkul 1536x492 ka exact aspect ratio */
    aspect-ratio: 3.12 / 1;
    display: flex;
    align-items: center;
    padding: 0;
    /* File ka naam banner2.png kar diya */
    background: #0f1014 url('https://creatortoolkit.sarviso.online/assets/images/banner2.png') calc(100% - 20px) center/cover no-repeat;
    z-index: 1;
}

/* Text ko left side fix karne ke liye width limit */
.hero-banner .banner-text {
    width: 50%;
    max-width: 55%;
    padding-left: 24px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.hero-banner .badge {
    font-size: 11px;
    font-weight: 500;
    color: #a78bfa;
    margin-bottom: 4px;
}
.hero-banner h1 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}
.hero-banner h1 span {
    color: #a78bfa;
}
.hero-banner p {
    font-size: 12px;
    color: #c4b5fd;
    margin-bottom: 12px;
    line-height: 1.4;
}
.explore-btn {
    background: var(--accent-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* --- Quick Navigation --- */
.quick-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 24px;
    gap: 8px;
    flex-wrap: wrap;
}
.nav-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px 0;
    flex: 1;
    min-width: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border: 1px solid transparent;
    transition: 0.2s;
}
.nav-card:hover {
    border-color: var(--accent-purple);
}
.nav-card .icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.nav-card span {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}
.icon-purple { background: rgba(139,92,246,0.2); color: #8b5cf6; }
.icon-blue { background: rgba(59,130,246,0.2); color: #3b82f6; }
.icon-pink { background: rgba(236,72,153,0.2); color: #ec4899; }
.icon-orange { background: rgba(251,146,60,0.2); color: #fb923c; }
.icon-green { background: rgba(52,211,153,0.2); color: #34d399; }

/* --- Section Headers --- */
.section-header {
    display: flex;
    justify-content: space-between;
    padding: 0 20px 12px;
}
.section-header h2 {
    font-size: 18px;
    font-weight: 600;
}
.section-header a {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
}

/* --- Horizontal Scrollers --- */
.scroller {
    display: flex;
    gap: 12px;
    padding: 0 20px 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

/* --- Tool Cards --- */
.tool-card {
    min-width: 140px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 16px;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
    transition: 0.2s;
    cursor: pointer;
}
.tool-card:hover {
    background: var(--bg-card-hover);
}
.tool-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}
.tool-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.tool-card p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}
.tool-card .arrow {
    margin-top: 12px;
    color: var(--text-secondary);
    text-align: right;
}

/* --- Product Cards --- */
.product-card {
    min-width: 160px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex: 0 0 auto;
    border: 1px solid var(--border-color);
}
.product-card .img-wrap {
    height: 100px;
    background: #1f2028;
    position: relative;
}
.product-card .img-wrap .badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #fcd34d;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.product-card .info {
    padding: 12px;
}
.product-card .info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-card .info .stars {
    font-size: 11px;
    color: #fcd34d;
}
.product-card .info .price {
    margin-top: 8px;
    font-weight: 700;
    font-size: 14px;
}
.product-card .info .price del {
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 6px;
}

/* --- Upgrade Banner --- */
.upgrade-banner {
    margin: 0 20px 24px;
    background: linear-gradient(135deg, #2d1b4e 0%, #1a102b 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #3b2a5a;
}
.upgrade-banner .left h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.upgrade-banner .left p {
    font-size: 12px;
    color: var(--text-secondary);
}
.upgrade-btn {
    background: var(--accent-purple);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* --- Bottom Nav --- */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0 16px;
    z-index: 200;
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}
.nav-item svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text-secondary);
    stroke-width: 1.5;
}
.nav-item.active {
    color: var(--accent-purple);
}
.nav-item.active svg {
    stroke: var(--accent-purple);
    fill: rgba(139,92,246,0.1);
}