: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;
    --border-color: rgba(0, 0, 0, 0.05);

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

[data-theme="dark"] {
    /* Premium Midnight Slate Palette */
    --bg-color: #06080c;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: #11141d;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --border-color: rgba(255, 255, 255, 0.05);

    /* Overrides for specific elements in dark mode */
    --sidebar-active-bg: rgba(197, 249, 73, 0.15);
    --input-bg: #1a1f2b;
}

[data-theme="dark"] .main-content header {
    background: rgba(6, 8, 12, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .stat-card,
[data-theme="dark"] .resource-card,
[data-theme="dark"] .promo-banner,
[data-theme="dark"] .access-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .cat-tab {
    background: #1a1f2b;
    color: var(--text-muted);
}

[data-theme="dark"] .cat-tab.active {
    background: var(--primary-color);
    color: #121421;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: #1a1f2b !important;
    border-color: var(--border-color) !important;
    color: white !important;
}

[data-theme="dark"] table tr:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] .nav-link {
    color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color);
}

* {
    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 Redesign */
.sidebar {
    width: var(--sidebar-width);
    background: #121421;
    /* Ultra Deep Premium Dark */
    height: 100vh;
    position: fixed;
    border-right: none;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
}

/* Creative Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-track {
    background: #0f111a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), #8b5cf6);
    border-radius: 10px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: white !important;
    margin-bottom: 35px;
    text-decoration: none;
    letter-spacing: -1px;
}

.sidebar-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #121421;
    font-size: 18px;
    box-shadow: 0 8px 15px rgba(197, 249, 73, 0.3);
}

.sidebar-logo span {
    font-family: 'Outfit', sans-serif;
}

.nav-menu {
    list-style: none;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #8a8ca0;
    font-weight: 500;
    font-size: 13.5px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link .nav-icon-wrapper {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-link i {
    font-size: 14px;
    color: #8a8ca0;
    transition: 0.3s;
}

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

.nav-link:hover .nav-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover i {
    color: white;
}

.nav-link.active {
    background: #1e2030;
    color: white;
}

.nav-link.active .nav-icon-wrapper {
    background: var(--primary-color);
    box-shadow: 0 8px 15px rgba(197, 249, 73, 0.2);
}

.nav-link.active i {
    color: #121421;
}

/* Badge System */
.nav-badge {
    position: absolute;
    right: 12px;
    background: #ef4444;
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar CTA Box */
.sidebar-cta {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 15px;
    margin: 15px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #8a8ca0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
}

.btn-cta i {
    font-size: 14px;
}

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

.sidebar-footer {
    padding-top: 20px;
    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: 700;
    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: 700;
    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: 800;
    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(4, 1fr);
    gap: 32px;
}

@media (max-width: 1400px) {
    .resource-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.resource-card {
    background: var(--card-bg);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05));
    pointer-events: none;
    z-index: 1;
}

.resource-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.resource-card .tool-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.resource-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.resource-card-content {
    padding: 24px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.resource-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
    line-height: 1.2;
}

.btn-access {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--bg-color);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 800;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
    font-size: 13px;
    border: 1px solid var(--border-color);
}

.btn-access:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 8px 15px rgba(197, 249, 73, 0.3);
}

/* 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: 700;
    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: 700;
}

/* 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;
}

/* Modern Modal System */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content>form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
    min-height: 0;
}

.modal-overlay.open {
    display: flex;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 25px 40px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-body {
    padding: 40px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
}

.modal-footer {
    padding: 25px 40px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* Custom Scrollbar for Modal Body */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .modal-content {
        max-height: 95vh;
        border-radius: 24px;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-header,
    .modal-footer {
        padding: 20px 25px;
    }
}

/* Advanced Modal Content Styling */
.modal-section-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin: 30px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section-title:first-child {
    margin-top: 0;
}

.modal-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #f1f5f9;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.modal-field {
    margin-bottom: 20px;
}

.modal-label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.modal-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.modal-input-group i {
    position: absolute;
    left: 18px;
    color: #94a3b8;
    font-size: 14px;
    transition: 0.3s;
}

.modal-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(197, 249, 73, 0.15);
}

.modal-input:focus+i {
    color: var(--primary-color);
}

.modal-textarea {
    min-height: 120px;
    padding-left: 18px !important;
    padding-right: 18px !important;
    resize: none;
}

/* Custom Checkbox Cards */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.check-card {
    position: relative;
    cursor: pointer;
}

.check-card input {
    position: absolute;
    opacity: 0;
}

.check-card-ui {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    border-radius: 14px;
    transition: 0.3s;
}

.check-card-ui i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 10px;
    color: transparent;
    transition: 0.2s;
}

.check-card input:checked+.check-card-ui {
    background: var(--sidebar-active-bg);
    border-color: var(--primary-color);
}

.check-card input:checked+.check-card-ui i {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #1a1d2e;
}

.check-card-text {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.check-card input:checked+.check-card-ui .check-card-text {
    color: #1a1d2e;
}

/* Attribute Toggles */
.toggle-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.attribute-toggle {
    cursor: pointer;
}

.attribute-toggle input {
    display: none;
}

.attribute-toggle-ui {
    padding: 10px 15px;
    background: #f1f5f9;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
}

.attribute-toggle input:checked+.attribute-toggle-ui.popular {
    background: #fff2d8;
    color: #b45309;
}

.attribute-toggle input:checked+.attribute-toggle-ui.active {
    background: #ecfdf5;
    color: #059669;
}

/* Sidebar Submenu Styles */
.nav-submenu {
    list-style: none;
    padding-left: 48px;
    height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
}

.nav-submenu.open {
    height: auto;
    opacity: 1;
    margin-bottom: 10px;
    padding-top: 5px;
}

.nav-sublink {
    display: block;
    padding: 8px 0;
    color: #8a8ca0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-sublink:hover {
    color: var(--primary-color);
}

/* Sidebar Collapse Feature */
:root {
    --sidebar-collapsed-width: 85px;
}

.sidebar {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width) !important;
    padding: 30px 15px !important;
}

.sidebar.collapsed .sidebar-logo span,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-submenu,
.sidebar.collapsed .nav-link i.fa-chevron-down,
.sidebar.collapsed .sidebar-cta,
.sidebar.collapsed .user-info,
.sidebar.collapsed .sidebar-footer span:not(.theme-toggle-icon),
.sidebar.collapsed .nav-badge:not(.cart-badge) {
    display: none !important;
}

.sidebar.collapsed .sidebar-header {
    flex-direction: column;
    gap: 20px;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 10px 0;
    gap: 0;
}

.sidebar.collapsed .nav-icon-wrapper {
    margin: 0 !important;
}

.sidebar-collapsed .main-content {
    margin-left: var(--sidebar-collapsed-width) !important;
}

.sidebar-toggle-btn {
    transition: transform 0.3s ease;
}

.sidebar.collapsed .sidebar-toggle-btn {
    transform: rotate(180deg);
}

.tool-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #f1f5f9;
}

[data-theme="dark"] .tool-thumb {
    background: #1e293b;
}

.tool-card-v2:hover .tool-thumb {
    transform: scale(1.05);
}

.img-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 14px;
}

[data-theme="dark"] .img-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #475569;
}