:root {
    --primary-color: #c5f949;
    --primary-hover: #b4e83a;
    --bg-color: #f4f7fc;
    --sidebar-bg: #1a1d2e;
    --sidebar-text: #a0a0c0;
    --sidebar-active: #c5f949;
    --sidebar-active-bg: rgba(197, 249, 73, 0.1);
    --text-main: #1a1d2e;
    --text-muted: #718096;
    --card-bg: #ffffff;
    --sidebar-width: 280px;
    --header-height: 80px;
    --radius: 24px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Image Reference Colors */
    --color-blue: #a0c4ff;
    --color-green: #c5f949;
    --color-yellow: #fff275;
    --color-salmon: #f8ad9d;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Layout Containers */
.wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    border-right: none;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 900;
    color: white !important;
    margin-bottom: 48px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.sidebar-logo span {
    color: white;
}

.sidebar-logo i {
    color: var(--primary-color) !important;
    font-size: 28px;
}

.sidebar-logo img {
    height: 32px;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--sidebar-text);
    font-weight: 600;
    font-size: 15px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active);
}

.nav-link i {
    font-size: 18px;
    opacity: 0.8;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-snippet {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
}

.user-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
    color: white;
}

.user-info p {
    font-size: 11px;
    color: var(--sidebar-text);
    opacity: 0.7;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 32px 48px;
    background: var(--bg-color);
}

header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-title h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -1px;
}

.header-title span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 24px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: white;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-main);
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.btn-logout {
    background: var(--sidebar-bg);
    color: white;
    padding: 12px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 14px;
}

.btn-logout:hover {
    background: #000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Cards & Components */
.promo-banner {
    background: linear-gradient(90deg, #ff4d4d, #ff7676);
    border-radius: var(--radius);
    padding: 30px 40px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.promo-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.btn-white {
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.01);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.stat-card.subscription {
    background-color: var(--color-blue);
    border: none;
}

.stat-card.expiry {
    background-color: var(--color-green);
    border: none;
}

.stat-card.download {
    background-color: var(--color-salmon);
    border: none;
}

.stat-card.subscription *,
.stat-card.expiry *,
.stat-card.download * {
    color: #1a1d2e !important;
}

.stat-card.blue {
    background-color: var(--color-blue);
    border: none;
}

.stat-card.green {
    background-color: var(--color-green);
    border: none;
}

.stat-card.yellow {
    background-color: var(--color-yellow);
    border: none;
}

.stat-card.salmon {
    background-color: var(--color-salmon);
    border: none;
}

.stat-card.blue *,
.stat-card.green *,
.stat-card.yellow *,
.stat-card.salmon * {
    color: #1a1d2e !important;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    opacity: 0.8;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -1px;
}

.stat-subtext {
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    opacity: 0.7;
}

.resource-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 2px;
}

.search-bar {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    max-width: 500px;
}

.search-bar input {
    width: 100%;
    padding: 18px 28px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    font-size: 15px;
    box-shadow: var(--shadow);
    outline: none;
    transition: 0.3s;
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(197, 249, 73, 0.2);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.resource-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.resource-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.resource-card:hover img {
    transform: scale(1.05);
}

.resource-card-content {
    padding: 24px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

.btn-access {
    display: block;
    width: 100%;
    padding: 14px;
    background: #f1f3f5;
    color: var(--text-main);
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
    margin-top: auto;
    font-size: 14px;
}

.btn-access:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Authentication Pages */
.auth-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d2e;
    padding: 24px;
}

.auth-card {
    background: white;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 480px;
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header img {
    height: 50px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid #ddd;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--text-main);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 249, 73, 0.3);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Category Tabs */
.cat-tab {
    padding: 12px 28px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-muted);
    transition: 0.3s;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.cat-tab:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
}

.cat-tab.active {
    background: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
}

/* Pricing Tabs & Toggles */
.pricing-tabs {
    display: flex;
    background: white;
    padding: 8px;
    border-radius: 12px;
    gap: 8px;
    box-shadow: var(--shadow);
    width: fit-content;
    margin: 30px auto;
}

.price-tab {
    padding: 10px 24px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s;
    position: relative;
}

.price-tab.active {
    background: #ff7676;
    color: white;
}

.badge-save {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #00d084;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 800;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: 32px;
    padding: 48px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 3px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-12px);
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 18px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 900;
    margin-bottom: 40px;
    transition: 0.3s;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.pricing-card:not(.featured) .btn-plan {
    background: #f8f9fa;
    color: var(--text-main);
}

.pricing-card.featured .btn-plan {
    background: var(--primary-color);
    color: var(--text-main);
}

.btn-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #444;
}

.feature-item i {
    color: #00d084;
}

/* Sidebar Submenu Styling */
.nav-submenu {
    list-style: none;
    padding-left: 30px;
    margin-top: 5px;
    display: none;
}

.nav-submenu.open {
    display: block;
}

.nav-sublink {
    display: block;
    padding: 8px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    border-radius: 8px;
    transition: 0.3s;
}

.nav-sublink:hover,
.nav-sublink.active {
    color: var(--primary-color);
    background: rgba(255, 77, 77, 0.05);
}
/* Header Cart Icon Styles */
.cart-trigger {
    position: relative;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid #f1f5f9;
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.cart-trigger:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--text-main);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 8px;
    border: 2px solid white;
}
