/*
Theme Name: CGS AFF
Theme URI: 
Author: Antigravity
Author URI: 
Description: A custom theme for CGS Affiliate system.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgs-aff
*/

/* ========================================
   CSS VARIABLES
   ======================================== */

:root {
    --primary-color: #007bff;
    --text-color: #333;
    --bg-color: #fff;
    --font-tiktok-sans: 'TikTok Sans', system-ui, arial, sans-serif;
}

/* Dashboard Styles */
:root {
    --primary-purple: #9333ea;
    --primary-green: #22c55e;
    --primary-blue: #3b82f6;
    --primary-pink: #ec4899;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

/* ========================================
   FONT FACES
   ======================================== */

@font-face {
    font-family: 'TikTok Sans';
    src: url('./assets/fonts/tiktoksans/TikTokSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TikTok Sans';
    src: url('./assets/fonts/tiktoksans/TikTokSans-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TikTok Sans';
    src: url('./assets/fonts/tiktoksans/TikTokSans-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TikTok Sans';
    src: url('./assets/fonts/tiktoksans/TikTokSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   BASE STYLES
   ======================================== */

html {}

body {
    font-family: var(--font-tiktok-sans), 'TikTok Sans', system-ui, arial, sans-serif;
    background-color: #f9fafb;
    margin: 0;
    line-height: 1.6;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
}

input,
textarea,
button,
label {
    font-family: var(--font-tiktok-sans), 'TikTok Sans', system-ui, arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

/* Form Elements */
input:focus,
textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

body {
    background-color: var(--gray-50);
    font-family: 'TikTok Sans', sans-serif;
    margin: 0;
    /* Reset body margin */
}

/* File Input Styling */
input[type='file'] {
    cursor: pointer;
}

input[type='file']::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #faf5ff;
    color: #7e22ce;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type='file']::file-selector-button:hover {
    background-color: #f3e8ff;
}

/* Firefox */
input[type='file']::-webkit-file-upload-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #faf5ff;
    color: #7e22ce;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type='file']::-webkit-file-upload-button:hover {
    background-color: #f3e8ff;
}

/* Zoom Slider Styling */
input[type='range'] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

input[type='range']::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #9333ea;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

input[type='range']::-webkit-slider-thumb:hover {
    background: #7e22ce;
}

input[type='range']::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #9333ea;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

input[type='range']::-moz-range-thumb:hover {
    background: #7e22ce;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Custom Utilities if Tailwind isn't fully covering */
.text-purple-600 {
    color: #9333ea;
}

.bg-purple-600 {
    background-color: #9333ea;
}

.border-purple-600 {
    border-color: #9333ea;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-500 {
    color: #22c55e;
}

.bg-green-100 {
    background-color: #dcfce7;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.text-green-800 {
    color: #166534;
}

.text-red-800 {
    color: #991b1b;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.border-red-200 {
    border-color: #fecaca;
}

.text-red-500 {
    color: #ef4444;
}

.text-yellow-800 {
    color: #854d0e;
}

.bg-yellow-100 {
    background-color: #fef9c3;
}

.text-gray-900 {
    color: #111827;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-400 {
    color: #9ca3af;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-bottom {
    border-bottom: 1px solid #e5e7eb;
}

.border-gray-300 {
    border-color: #d1d5db;
}

/* --- GENERATED TAILWIND UTILITIES FOR SINGLE VOUCHER PAGE --- */

/* Layout */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Spacing */
.m-0 {
    margin: 0;
}

.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-10 {
    padding: 2.5rem;
}

/* Sizing */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.w-5 {
    width: 1.25rem;
}

.h-5 {
    height: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

/* Typography */
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

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

.text-left {
    text-align: left;
}

/* Colors - Text */
.text-white {
    color: white;
}

.text-purple-600 {
    color: #9333ea;
}

/* Colors - Background */
.bg-white {
    background-color: white;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.border-4 {
    border-width: 4px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-t {
    border-top-width: 1px;
}

.flex {
    display: flex;
}

.w-full {
    width: 100%;
}

/* Text Utilities */
.text-xs {
    font-size: 12px;
}

.text-sm {
    font-size: 14px;
}

.text-base {
    font-size: 16px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-2xl {
    font-size: 24px;
}

.text-white {
    color: white;
}

.text-yellow-900 {
    color: #713f12;
}

/* ========================================
   COMPONENTS
   ======================================== */

/* Base resets from globals.css */
.hover\:bg-purple-700:hover {
    background-color: #7e22ce;
}

.focus\:border-purple-600:focus {
    border-color: #9333ea;
}

.focus\:ring-purple-100:focus {
    --tw-ring-color: #f3e8ff;
}

.mt-2 {
    margin-top: .5rem;
}

.no-underline {
    text-decoration: none;
}

/* Interactive Elements */
.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Icons */
.lucide {
    vertical-align: middle;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-self-start {
    align-self: self-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.inline-flex {
    display: inline-flex;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.ml-1\.5 {
    margin-left: 0.375rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.pt-4 {
    padding-top: 1rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.min-h-screen {
    min-height: 100vh;
}

.min-h-\[60px\] {
    min-height: 60px;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.uppercase {
    text-transform: uppercase;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.break-all {
    word-break: break-all;
}

/* Borders & Radius */
.border {
    border-width: 1px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Effects */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Table */
.divide-y> :not([hidden])~ :not([hidden]) {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #e5e7eb;
}

.divide-gray-200> :not([hidden])~ :not([hidden]) {
    border-color: #e5e7eb;
}

/* Interactive States */
.hover\:bg-gray-50:hover {}

.hover\:bg-purple-50:hover {
    background-color: #faf5ff;
}

.hover\:text-purple-600:hover {
    color: #9333ea;
}

.focus\:ring-2:focus {
    box-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    --tw-ring-inset: ;
    --tw-ring-offset-width: 0px;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

/* Misc */
.resize-none {
    resize: none;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-x-auto {
    overflow-x: auto;
}

/* Hiphops Sign Up Page Styles - Ported from globals.css */
.hiphops-container {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
}

.hiphops-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hiphops-blob-1 {
    top: -10%;
    left: -10%;
    width: 800px;
    height: 800px;
    background-color: rgba(147, 51, 234, 0.2);
    opacity: 0.7;
}

.hiphops-content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hiphops-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    align-items: stretch;
}

/* Left Column */
.hiphops-left-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 42rem;
    width: 100%;
    flex: 1;
}

.hiphops-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background-color: #22c55e;
    background-image: linear-gradient(315deg, #22c55e 0%, #06b6d4 74%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 3rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hiphops-title-sub {
    color: #0000;
    background-color: #22c55e;
    background-image: linear-gradient(135deg, #22c55e 0%, #06b6d4 74%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hiphops-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hiphops-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hiphops-feature-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiphops-icon {
    width: 30px;
    height: 30px;
    color: #1e1b4b;
}

.hiphops-feature-content {
    flex: 1;
}

.hiphops-feature-title {
    color: #1e1b4b;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.hiphops-feature-description {
    color: #1e1b4b;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 300;
    margin: 0;
}

.hiphops-feature-link-text {
    color: #22c55e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.hiphops-feature-link-text:hover {
    color: #16a34a;
    text-decoration: underline;
}

.hiphops-logo-section {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #1e1b4b;
}

.hiphops-logo-icon {
    object-fit: contain;
    width: auto;
    height: 2rem;
}

.hiphops-logo-text {
    color: #111827;
    font-size: 14px;
}

/* Right Column - Form */
.hiphops-right-column {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1;
}

.hiphops-form-box {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    z-index: 20;
    position: relative;
}

.hiphops-form-header {
    margin-bottom: 2rem;
}

.hiphops-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem 0;
}

.hiphops-form-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
}

.referral-code-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.referral-code-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.hiphops-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hiphops-form-group {
    display: flex;
    flex-direction: column;
}

.hiphops-input {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    outline: none;
    transition: all 0.2s;
    color: #1f2937;
    font-weight: 300;
    font-size: 1rem;
}

.hiphops-input::placeholder {
    color: #d1d5db;
}

.hiphops-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1);
}

.hiphops-password-group {
    position: relative;
}

.hiphops-password-input {
    padding-right: 2.5rem;
}

.hiphops-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #d1d5db;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.hiphops-password-toggle:hover {
    color: #FF8C42;
}

.hiphops-eye-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.hiphops-terms {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.5rem 0;
}

.hiphops-terms-link {
    text-decoration: underline;
    color: #9ca3af;
}

.hiphops-submit-button {
    width: 100%;
    background-color: #22c55e;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 1px 2px 0 rgba(34, 197, 94, 0.2);
    font-size: 15px;
}

.hiphops-submit-button:hover {
    background-color: #16a34a;
}

.hiphops-divider {
    position: relative;
    margin: 2rem 0;
}

.hiphops-divider-line {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hiphops-divider-line::before {
    content: '';
    width: 100%;
    border-top: 1px solid #f3f4f6;
}

.hiphops-divider-text {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 0.875rem;
    background-color: white;
    padding: 0 1rem;
    color: #9ca3af;
}

.hiphops-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hiphops-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1rem;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hiphops-social-button:hover {
    background-color: #f9fafb;
}

.hiphops-social-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.hiphops-social-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.2s;
}

.hiphops-social-button:hover .hiphops-social-text {
    color: #6b7280;
}

/* Sidebar Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
}

.dashboard-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.dashboard-sidebar {
    width: 256px;
    background: #1e1e2d;
    /* Dark Sidebar Background */
    border-right: none;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 50;
    left: 0;
    top: 0;
    flex-shrink: 0;
    color: #9ca3af;
}

.dashboard-sidebar.collapsed {
    width: 80px;
}

.dashboard-main {
    flex: 1;
    margin-left: 256px;
    background-color: #f3f6f9;
    /* Light content background */
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    width: calc(100% - 256px);
}

.dashboard-main.collapsed-margin {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Sidebar Components */
.dashboard-sidebar-profile {
    padding: 25px 10px 25px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-sidebar-profile-avatar {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    /* Center avatar */
}

.dashboard-sidebar-profile-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.dashboard-sidebar-profile-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.sidebar-collapsed-content .dashboard-sidebar-profile-avatar-placeholder {
    width: 44px;
    height: 44px;
    font-size: 16px;
    margin: 0 auto;
}

.dashboard-sidebar-profile-name {
    font-weight: 600;
    color: #ffffff;
    /* White text */
    font-size: 16px;
    margin-bottom: 4px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar-profile-email {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 16px;
}

.dashboard-sidebar-profile-buttons {
    display: flex;
    gap: 8px;
    margin-top: 0;
}

.dashboard-sidebar-profile-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
    border: none;
    flex: 1;
    justify-content: center;
    color: white;
}

/* Specific Button Colors from image */
.dashboard-sidebar-profile-button:first-child {
    /* Setting */
    /* background-color: #a855f7; */
    /* Purple */
}

.dashboard-sidebar-profile-button-logout {
    /* background-color: #ef4444; */
    /* Red */
}

.dashboard-sidebar-profile-button:hover {
    opacity: 0.9;
}

.sidebar-collapsed-content .dashboard-sidebar-profile-buttons {
    flex-direction: column;
    gap: 8px;
}

.sidebar-collapsed-content .dashboard-sidebar-profile-avatar {
    display: flex;
    justify-content: center;
}

/* Navigation */
.dashboard-sidebar-nav {
    padding: 16px 0 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-nav-item {
    display: block;
    text-decoration: none;
    color: #9ca3af;
    /* Gray text inactive */
    border-radius: 12px;
    transition: all 0.2s;
}

.dashboard-nav-item-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s;
}

.dashboard-nav-item:hover .dashboard-nav-item-wrapper {
    color: #ffde00;
}

/* Active State matching image: White BG, Purple Text/Icon */
.dashboard-nav-item.active .dashboard-nav-item-wrapper {
    background-color: #f4f6f9;
    color: #a855f7;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.dashboard-nav-item:has(+ .dashboard-nav-item.active) {
    background-color: #f4f6f9;
    border-radius: 0px;
}

.dashboard-nav-item:has(+ .dashboard-nav-item.active) .dashboard-nav-item-wrapper {
    background-color: #1e1e2d;
    border-radius: 0px;
    border-bottom-right-radius: 15px;
}


.dashboard-nav-item.active+.dashboard-nav-item .dashboard-nav-item-wrapper {
    background-color: #1e1e2d;
    border-radius: 0px;
    border-top-right-radius: 15px;
}

.dashboard-nav-item.active+.dashboard-nav-item {
    background-color: #f4f6f9;
    border-radius: 0px;
}


.dashboard-nav-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-nav-item-text {
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.2s;
}

/* Sidebar Toggle */
.dashboard-sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.dashboard-sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 30px;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
}

.dashboard-sidebar-toggle:hover {
    color: #ffde00;
}

/* Collapsed State Overrides */
.dashboard-sidebar.collapsed .dashboard-nav-item-text,
.dashboard-sidebar.collapsed .dashboard-sidebar-profile-info,
.dashboard-sidebar.collapsed .dashboard-sidebar-toggle-text {
    display: none;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-profile-button span {
    display: none;
}

.dashboard-sidebar.collapsed .dashboard-nav-item-wrapper {
    justify-content: center;
    padding: 12px;
    padding-left: 0px;
}

.dashboard-sidebar.collapsed .dashboard-sidebar-toggle {
    justify-content: center;
    border: none;
}

/* Toggle Icons Visibility */
.dashboard-sidebar.expanded .toggle-icon-right {
    display: none;
}

.dashboard-sidebar.collapsed .toggle-icon-left {
    display: none;
}

/* Original Breadcrumbs */
.dashboard-breadcrumbs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.dashboard-breadcrumbs-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-500);
}

.dashboard-breadcrumbs-link {
    cursor: pointer;
}

.dashboard-breadcrumbs-link:hover {
    color: var(--gray-900);
}

.dashboard-breadcrumbs-current {
    color: var(--gray-900);
    font-weight: 500;
}

.dashboard-page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.dashboard-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Metrics Grid */
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Metric Card */
.dashboard-metric-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dashboard-metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dashboard-metric-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-metric-icon-wrapper.green {
    background-color: #dcfce7;
    color: #16a34a;
}

.dashboard-metric-icon-wrapper.blue {
    background-color: #dbeafe;
    color: #2563eb;
}

.dashboard-metric-icon-wrapper.purple {
    background-color: #f3e8ff;
    color: #9333ea;
}

.dashboard-metric-icon-wrapper.pink {
    background-color: #fce7f3;
    color: #db2777;
}

.dashboard-metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.dashboard-metric-change.increase {
    color: #16a34a;
}

.dashboard-metric-change.decrease {
    color: #dc2626;
}

.dashboard-metric-title {
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.dashboard-metric-value {
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dashboard-metric-subtitle {
    color: var(--gray-500);
    font-size: 12px;
}

/* Charts Layout */
.dashboard-chart-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.dashboard-chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.mb-6 {
    margin-bottom: 24px;
}

.dashboard-charts-grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Best Sellers */
.dashboard-best-sellers {
    display: flex;
    flex-direction: column;
}

.dashboard-best-sellers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-best-sellers-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
}

.icon-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--gray-500);
}

.dashboard-best-sellers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
    /* Optional limit */
}

.dashboard-seller-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-seller-avatar-large {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.dashboard-seller-info {
    flex: 1;
}

.dashboard-seller-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0;
}

.dashboard-seller-company {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.dashboard-seller-stats {
    text-align: right;
}

.dashboard-seller-amount {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    margin: 0;
}

.dashboard-seller-sales {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.dashboard-report-button {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: bg 0.2s;
}

.dashboard-report-button:hover {
    background-color: var(--gray-50);
}

/* Chart Legend Custom */
.chart-legend-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-700);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* Referral Page Styles */
.referral-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.referral-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 14px;
    transition: background-color 0.2s;
    text-decoration: none;
}

.referral-btn-primary {
    background-color: var(--primary-purple);
    color: white;
}

.referral-btn-primary:hover {
    background-color: #7e22ce;
    /* Darker purple */
    color: white;
}

.referral-btn-secondary {
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.referral-btn-secondary:hover {
    background-color: var(--gray-50);
    color: var(--gray-900);
}

.referral-notification {
    background-color: #fefce8;
    /* yellow-50 */
    border: 1px solid #fef08a;
    /* yellow-200 */
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.referral-notification p {
    color: #713f12;
    /* yellow-900 */
    font-size: 14px;
    margin: 0;
}

.referral-message {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.referral-message.success {
    background-color: #f0fdf4;
    /* green-50 */
    border: 1px solid #bbf7d0;
    /* green-200 */
    color: #166534;
    /* green-800 */
}

.referral-message.error {
    background-color: #fef2f2;
    /* red-50 */
    border: 1px solid #fecaca;
    /* red-200 */
    color: #991b1b;
    /* red-800 */
}

/* Create Form */
.referral-form-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}

.referral-form-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.referral-form-desc {
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 10px;
    margin-top: 0px;
}

.referral-input-group {
    width: 100%;
}

.referral-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
}

.referral-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.referral-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 4px #f3e8ff;
}

.referral-input-error {
    color: #ef4444;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.referral-preview-box {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    background-color: var(--gray-50);
    font-size: 14px;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    word-break: break-all;
    box-sizing: border-box;
}

.referral-textarea {
    min-height: 80px;
    resize: none;
}

/* Referral Item Card */
.referral-item-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}

.referral-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.referral-code-link {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-green);
    text-decoration: none;
}

.referral-code-link:hover {
    text-decoration: underline;
    color: var(--primary-green);
}

.referral-date {
    font-size: 14px;
    color: #9ca3af;
}

.referral-desc-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}

.referral-link-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-link-box {
    flex: 1;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 12px;
    color: var(--gray-900);
    word-break: break-all;
    user-select: all;
}

.referral-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.referral-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.referral-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.referral-stat-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
}

.referral-stat-value.green {
    color: var(--primary-green);
}

.referral-stat-value.purple {
    color: var(--primary-purple);
}

/* FAQ */
.referral-faq-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}

/* User Guide */
.referral-guide-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    padding: 24px;
    margin-bottom: 24px;
}

/* Utilities */
.list-decimal {
    list-style-type: decimal;
}

.pl-5 {
    padding-left: 20px;
}

.space-y-3>*+* {
    margin-top: 12px;
}

.leading-relaxed {
    line-height: 1.625;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
}

.faq-icon {
    transition: transform 0.2s;
    color: var(--gray-500);
}

.faq-answer {
    margin-top: 8px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.hidden {
    display: none !important;
}

.gap-2 {
    gap: 8px;
}

.gap-6 {
    gap: 24px;
}

.justify-end {
    justify-content: flex-end;
}

.font-normal {
    font-weight: 400;
}

.hover\:underline:hover {
    text-decoration: underline;
}

/* Single Voucher Page Styles */
.single-voucher-container {
    max-width: 1200px;
    margin: 0 auto;
}

.items-baseline {
    align-items: baseline;
}

/* --- PORTED HEADER & DATE PICKER STYLES --- */

/* Header */
.dashboard-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    height: 64px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

/* Date Range Picker */
.date-range-picker-wrapper {
    position: relative;
    display: block;
    /* Force block if not using hidden logic from parent */
}

.date-range-picker-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.date-range-picker-button:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.date-range-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 720px;
    overflow: hidden;
    display: flex;
}

.date-range-picker-dropdown.hidden {
    display: none;
}

.date-range-picker-content {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: 600px;
    width: 100%;
}

.date-range-picker-presets {
    width: 200px;
    max-width: 200px;
    min-width: 200px;
    flex-shrink: 0;
    /* Reduced from 240px */
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    overflow-x: hidden;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.date-preset-btn,
.date-range-preset-option {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s;
    box-sizing: border-box;
    flex-shrink: 0;
}

.date-preset-btn:hover,
.date-range-preset-option:hover {
    background-color: #f3f4f6;
}

.date-preset-btn.selected,
.date-range-preset-option.selected {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.date-range-picker-calendar {
    flex: 1 1 auto;
    flex-basis: 0;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.date-range-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    background: white;
}

.date-range-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.dashboard-header-icon-button {
    position: relative;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.dashboard-header-icon-button:hover {
    background-color: #f3f4f6;
}

.dashboard-notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background-color: #9333ea;
    border-radius: 50%;
}

.dashboard-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* --- Full Calendar Styles --- */
.date-range-calendars {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.date-range-calendar {
    flex: 1;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-nav-button {
    padding: 4px 8px;
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.calendar-nav-button:hover {
    background-color: #f3f4f6;
}

.calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
}

.calendar-day:hover {
    background-color: #f3f4f6;
}

.calendar-day.today {
    font-weight: 600;
    /* border: 1px solid #e5e7eb; */
}

.calendar-day.selected {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
}

.calendar-day.in-range {
    background-color: #eff6ff;
    color: #2563eb;
}

.calendar-day.in-range.selected {
    background-color: #2563eb;
    color: white;
}

.calendar-day.hovered {
    background-color: #dbeafe;
}

.calendar-day.empty {
    cursor: default;
    pointer-events: none;
}

.date-range-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.date-range-cancel-button {
    padding: 8px 16px;
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.date-range-cancel-button:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.date-range-apply-button {
    padding: 8px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.date-range-apply-button:hover {
    background-color: #1d4ed8;
}

/* Profile Settings */
.dashboard-profile-settings {
    width: 100%;
}

.dashboard-profile-header {
    margin-bottom: 24px;
}

.dashboard-profile-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    margin-bottom: 0;
}

.dashboard-profile-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.dashboard-profile-tab {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    margin-bottom: -1px;
}

.dashboard-profile-tab:hover {
    color: #111827;
}

.dashboard-profile-tab.active {
    color: #9333ea;
    border-bottom-color: #9333ea;
}

.dashboard-profile-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-profile-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.12);
    border: 1px solid #e5e7eb;
    padding: 24px;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.dashboard-profile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.dashboard-profile-card-title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.dashboard-profile-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.dashboard-profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
}

.dashboard-profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #9333ea;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    color: white;
}

.dashboard-profile-avatar-edit:hover {
    background-color: #7e22ce;
}

.dashboard-profile-user-details {
    flex: 1;
}

.dashboard-profile-user-name {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.dashboard-profile-user-email {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 0px 0;
}

.dashboard-profile-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 500;
}

.dashboard-profile-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.dashboard-profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-profile-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.dashboard-profile-input {
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

.dashboard-profile-input:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dashboard-profile-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

.dashboard-profile-input:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.dashboard-profile-input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.dashboard-profile-textarea {
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: all 0.2s;
    background-color: #ffffff;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.dashboard-profile-textarea:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 2px rgba(147, 51, 234, 0.1);
}

.dashboard-profile-textarea::placeholder {
    color: #9ca3af;
}

.dashboard-profile-char-count {
    font-size: 12px;
    color: #9ca3af;
    text-align: right;
    margin-top: 4px;
}

.dashboard-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}

.dashboard-profile-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.dashboard-profile-button-cancel {
    background-color: #ffffff;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.dashboard-profile-button-cancel:hover {
    background-color: #f9fafb;
}

.dashboard-profile-button-save {
    background-color: #9333ea;
    color: white;
}

.dashboard-profile-button-save:hover {
    background-color: #7e22ce;
}

.dashboard-profile-placeholder {
    color: #6b7280;
    font-size: 14px;
    padding: 24px 0;
}

/* Avatar Upload Modal */
.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-modal.hidden {
    display: none;
}

.avatar-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.avatar-modal-content {
    position: relative;
    background-color: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.avatar-modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.avatar-modal-body {
    margin-bottom: 20px;
}

.avatar-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Policy Pages Responsive */

/* ========================================
   POLICY PAGES STYLES
   ======================================== */

/* ========================================
   POLICY PAGES STYLES
   ======================================== */

/* Policy Pages Layout */
.policy-page .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.policy-page .two-column-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1rem;
    align-items: start;
}

.policy-page .left-column {
    position: sticky;
    top: 2rem;
    background: #fff;
    border-radius: 8px;
    flex: 0 0 400px;
    padding: 20px;
    box-shadow: 0 2px 8px #0000001a;
}

.policy-page .right-column {
    max-width: 100%;
    background: #fff;
    border-radius: 8px;
    flex: 1;
    padding: 20px 30px;
    box-shadow: 0 2px 8px #0000001a;
}

/* Policy Pages Spacing */
.policy-page .space-y-6>*+* {
    margin-top: 1.5rem;
}

.policy-page .space-y-4>*+* {
    margin-top: 1rem;
}

.policy-page .space-y-3>*+* {
    margin-top: 0.75rem;
}

.policy-page .space-y-2>*+* {
    margin-top: 0.5rem;
}

.policy-page .space-y-1>*+* {
    margin-top: 0.25rem;
}

/* Policy Pages Colors */
.policy-page .text-indigo-600 {
    color: #4f46e5;
}

.policy-page .text-indigo-700 {
    color: #4338ca;
}

.policy-page .text-indigo-800 {
    color: #3730a3;
}

.policy-page .bg-indigo-50 {
    background-color: #eef2ff;
}

.policy-page .bg-indigo-200 {
    background-color: #c7d2fe;
}

.policy-page .border-indigo-200 {
    border-color: #c7d2fe;
}

.policy-page .border-indigo-300 {
    border-color: #a5b4fc;
}

.policy-page .hover\:border-indigo-200:hover {
    border-color: #c7d2fe;
}

.policy-page .hover\:border-indigo-300:hover {
    border-color: #a5b4fc;
}

.policy-page .hover\:bg-indigo-50:hover {
    background-color: #eef2ff;
}

.policy-page .hover\:text-indigo-700:hover {
    color: #4338ca;
}

.policy-page .hover\:text-indigo-800:hover {
    color: #3730a3;
}

.policy-page .hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.policy-page .hover\:underline:hover {
    text-decoration: underline;
}

.policy-page .tracking-wide {
    letter-spacing: 0.025em;
}

/* Policy Pages Navigation */
.policy-page nav ul {
    list-style: none;
    padding: 0;
}

.policy-page nav a {
    text-decoration: none;
    display: block;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 15px;
    font-weight: 500;
    transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-page article ul {
    list-style: none;
}

.policy-page article a {
    text-decoration: none;
}

/* Policy Pages Code Blocks */
.policy-page code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875em;
    color: #dc2626;
}

/* Policy Pages Typography */
.policy-page .prose {
    max-width: 65ch;
}

.policy-page .prose-lg {
    font-size: 16px;
}

.policy-page .max-w-none {
    max-width: none;
}

.policy-page .leading-tight {
    line-height: 1.25;
}

.policy-page .list-disc {
    list-style-type: disc;
}

.policy-page .list-decimal {
    list-style-type: decimal;
}

.policy-page .pl-6 {
    padding-left: 1.5rem;
}

.policy-page .ml-7 {
    margin-left: 1.75rem;
}

.policy-page .mr-2 {
    margin-right: 0.5rem;
}

.policy-page .mt-8 {
    margin-top: 2rem;
}

.policy-page .mt-4 {
    margin-top: 1rem;
}

.policy-page .mt-2 {
    margin-top: 0.5rem;
}

.policy-page .mt-1 {
    margin-top: 0.25rem;
}

.policy-page .mb-8 {
    margin-bottom: 2rem;
}

.policy-page .mb-6 {
    margin-bottom: 1.5rem;
}

.policy-page .mb-4 {
    margin-bottom: 1rem;
}

.policy-page .mb-3 {
    margin-bottom: 0.75rem;
}

.policy-page .mb-2 {
    margin-bottom: 0.5rem;
}

.policy-page .pt-6 {
    padding-top: 1.5rem;
}

.policy-page .p-6 {
    padding: 1.5rem;
}

.policy-page .border-t {
    border-top-width: 1px;
}

.policy-page .border {
    border-width: 1px;
    border-style: solid;
}

.policy-page .rounded-lg {
    border-radius: 0.5rem;
}

.policy-page .inline-flex {
    display: inline-flex;
}

.policy-page .items-center {
    align-items: center;
}

@media (max-width: 768px) {
    .policy-page .container-fluid {
        padding: 10px;
    }

    .policy-page .right-column {
        padding: 20px;
    }

    .policy-page .leading-tight {
        line-height: 1.25;
        font-size: 25px;
    }

    .policy-page .two-column-layout {
        grid-template-columns: 1fr;
    }

    .policy-page .left-column {
        position: static;
    }

    .policy-page article ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Hide sidebar on mobile */
    .dashboard-sidebar {
        display: none !important;
    }

    .dashboard-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Hide back button on mobile, show hamburger */
    .mobile-back-button {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    /* Mobile Navigation Overlay */
    .mobile-nav-overlay {
        display: block;
    }

    /* Date Range Picker Mobile Responsive */
    .date-range-picker-dropdown {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        min-width: auto;
    }

    .date-range-picker-content {
        flex-direction: column !important;
        padding: 16px !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
    }

    .date-range-actions {
        order: -1 !important;
        margin-bottom: 16px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 16px !important;
    }

    .date-range-picker-presets {
        width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb !important;
        padding-bottom: 16px !important;
        margin-bottom: 16px !important;
    }

    .date-range-picker-calendar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .date-range-calendars {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .date-range-calendar {
        width: 100% !important;
    }

    /* Hide calendar icon on mobile to save space */
    .date-range-icon {
        display: none !important;
    }

    /* Orders page - title full width, controls on new line */
    .dashboard-content .flex.justify-between.items-center {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .dashboard-content .flex.justify-between.items-center>div {
        width: 100% !important;
    }

    /* Fix voucher dropdown position on mobile */
    #voucher-dropdown-menu {
        left: 0 !important;
        right: auto !important;
        width: 100% !important;
        max-width: calc(100vw - 32px) !important;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.mobile-menu-toggle:hover {
    color: #9333ea;
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 80vh;
    background-color: #ffffff;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateY(0);
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-nav-header h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.mobile-nav-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.mobile-nav-close:hover {
    color: #111827;
}

.mobile-nav-menu {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.mobile-nav-item:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.mobile-nav-item.active {
    background-color: #f3e8ff;
    color: #9333ea;
    font-weight: 600;
}

.mobile-nav-logout {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #dc2626 !important;
}

.mobile-nav-logout:hover {
    background-color: #fee2e2 !important;
    color: #dc2626 !important;
}

.mobile-nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@layer utilities {
    .animation-delay-2000 {
        animation-delay: 2s;
    }

    .animation-delay-4000 {
        animation-delay: 4s;
    }
}

.hiphops-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

.hiphops-blob-2 {
    top: 30%;
    left: 5%;
    width: 600px;
    height: 600px;
    background-color: rgba(74, 222, 128, 0.2);
    opacity: 0.6;
    animation-delay: 2s;
}

.hiphops-blob-3 {
    bottom: -10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background-color: rgba(59, 130, 246, 0.1);
    opacity: 0.5;
    animation-delay: 4s;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ========================================
   MEDIA QUERIES
   ======================================== */

@media (min-width: 768px) {
    .md\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hiphops-content-wrapper {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .hiphops-grid {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hiphops-left-column {
        flex: 0 1 50%;
    }
}

@media (min-width: 768px) {
    .hiphops-main-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hiphops-main-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hiphops-right-column {
        justify-content: flex-end;
        flex: 0 1 50%;
    }
}

@media (min-width: 768px) {
    .hiphops-form-box {
        padding: 3rem;
    }
}

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

@media (max-width: 640px) {
    .dashboard-metrics-grid {
        grid-template-columns: 1fr;
    }
}

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

@media (min-width: 640px) {
    .referral-link-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .referral-stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 768px) {
    .dashboard-header {
        padding: 0 24px;
    }
}

@media (min-width: 768px) {
    .dashboard-profile-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}