/**
 * Ghost Producer Dashboard - Design System
 * 
 * Dark theme with neon green accents.
 * Sharp geometry, no soft/safe borders.
 * Mandatory animations for premium feel.
 */

@layer dashboard {

    /* ============================================
   DESIGN TOKENS - LEGACY ALIASES
   All core variables are defined in gp-variables.css
   This section only defines NEW aliases for backward compatibility
   ============================================ */
    :root {
        /* Legacy Aliases (no self-references) */
        --gp-bg-surface: #050505;
        --gp-bg-card-hover: rgba(255, 255, 255, 0.05);
        --gp-primary: var(--gp-primary-neon);
        --gp-primary-glow: var(--gp-shadow-neon);
        --gp-text-primary: var(--gp-text-main);
        --gp-text-secondary: var(--gp-text-muted);
        --gp-border-subtle: rgba(255, 255, 255, 0.03);
        --gp-font-display: var(--gp-font-main);
        --gp-font-body: var(--gp-font-main);
        --gp-space-2xl: 48px;
        --gp-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
        --gp-shadow-md: var(--gp-shadow-card);
        --gp-transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* ============================================
   FONTS
   ============================================ */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;1,700&display=swap');

    /* ============================================
   BASE LAYOUT
   ============================================ */
    .gp-dashboard-wrapper {
        display: flex;
        min-height: 100vh;
        display: flex;
        min-height: 100vh;
        background: var(--gp-bg-deep);
        font-family: var(--gp-font-body);
        font-family: var(--gp-font-body);
        color: var(--gp-text-primary);
    }

    /* Helper: Mobile Overlay */
    .gp-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        /* Below sidebar (999) */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }

    .gp-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Header (Hidden on Desktop) */
    .gp-mobile-header {
        display: none;
        align-items: center;
        justify-content: space-between;
        padding: var(--gp-space-md) var(--gp-space-lg);
        background: var(--gp-bg-surface);
        border-bottom: 1px solid var(--gp-border);
    }

    .gp-mobile-title {
        font-family: var(--gp-font-display);
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--gp-primary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* ============================================
   SIDEBAR - Minimal Design
   ============================================ */
    .gp-sidebar {
        width: 220px;
        background: var(--gp-sidebar-bg);
        border-right: 1px solid var(--gp-border);
        padding: 20px 12px;
        display: flex;
        flex-direction: column;
        position: sticky;
        top: 0;
        height: 100vh;
        z-index: 999;
    }

    .gp-sidebar-close-btn {
        display: none !important;
        /* Hidden on desktop */
        position: absolute;
        top: 16px;
        right: -56px;
        /* Placed outside to right side of the panel */
        width: 44px;
        height: 44px;
        background: rgba(15, 15, 15, 0.7);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        /* Make it perfectly circular */
        color: var(--gp-text-secondary);
        cursor: pointer;
        z-index: 1000;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .gp-sidebar-close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--gp-white);
        transform: scale(1.05);
    }

    .gp-sidebar-close-btn .material-symbols-outlined {
        font-size: 20px;
    }

    .gp-sidebar__logo {
        font-family: var(--gp-font-display);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--gp-primary);
        margin-bottom: 28px;
        padding: 0 8px;
        letter-spacing: -0.01em;
        text-decoration: none;
        display: block;
    }

    .gp-sidebar__logo:hover {
        color: var(--gp-primary-hover);
    }

    .gp-sidebar__logo-image {
        display: block;
        max-width: 100%;
        height: auto;
        max-height: 40px;
        object-fit: contain;
    }

    .gp-sidebar__nav {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .gp-sidebar__link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        color: var(--gp-text-muted) !important;
        text-decoration: none;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 500;
        transition: all 0.15s ease;
    }

    .gp-sidebar__link:hover {
        color: var(--gp-text-main) !important;
        background: rgba(255, 255, 255, 0.04);
    }

    .gp-sidebar__link--active {
        color: var(--gp-primary-neon) !important;
        background: var(--gp-sidebar-active-bg);
    }

    .gp-sidebar__link-icon {
        font-size: 18px;
        width: 18px;
        height: 18px;
        opacity: 0.6;
    }

    .gp-sidebar__link:hover .gp-sidebar__link-icon {
        opacity: 0.9;
    }

    .gp-sidebar__link--active .gp-sidebar__link-icon {
        opacity: 1;
    }

    /* Sidebar Footer */
    .gp-sidebar__footer {
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* Sidebar User Info */
    .gp-sidebar__user {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 8px;
        margin-bottom: 8px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.02);
    }

    .gp-sidebar__avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--gp-border);
        flex-shrink: 0;
        background: var(--gp-bg-secondary);
        display: block;
    }

    .gp-sidebar__avatar--placeholder {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .gp-sidebar__user-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        gap: 1px;
    }

    .gp-sidebar__user-name {
        font-weight: 500;
        color: var(--gp-text-main);
        font-size: 0.8rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.3;
    }

    .gp-sidebar__user-role {
        font-size: 0.65rem;
        color: var(--gp-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        opacity: 0.7;
    }

    /* Sidebar Separator */
    .gp-sidebar__separator {
        height: 1px;
        background: rgba(255, 255, 255, 0.06);
        margin: 12px 8px;
    }

    /* Sidebar Link Variants */
    .gp-sidebar__link--logout,
    .gp-sidebar__link--back {
        color: var(--gp-text-muted);
        font-size: 0.8rem;
        padding: 8px 12px;
        opacity: 0.7;
    }

    .gp-sidebar__link--logout:hover {
        color: var(--gp-accent-red);
        background: rgba(255, 23, 68, 0.08);
        opacity: 1;
    }

    .gp-sidebar__link--back:hover {
        color: var(--gp-primary);
        opacity: 1;
    }

    /* Utility: Auto Margin Left */
    .gp-ml-auto {
        margin-left: auto;
    }

    /* Sidebar Badge (small inline indicator) */
    .gp-sidebar__link .gp-badge {
        font-size: 0.6rem;
        padding: 2px 5px;
        margin-left: auto;
    }

    /* ============================================
   MAIN CONTENT
   ============================================ */
    .gp-main {
        flex: 1;
        padding: var(--gp-space-2xl);
        overflow-y: auto;
    }

    .gp-header {
        margin-bottom: var(--gp-space-2xl);
    }

    .gp-header__title {
        font-family: var(--gp-font-display);
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: -0.02em;
        margin: 0 0 var(--gp-space-sm);
    }

    .gp-header__subtitle {
        color: var(--gp-text-secondary);
        margin: 0;
    }

    /* ============================================
   CARDS
   ============================================ */
    .gp-card {
        background: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-lg);
        padding: var(--gp-space-xl);
        transition: all var(--gp-transition-normal);
    }

    .gp-card:hover {
        background: var(--gp-bg-card-hover);
        border-color: var(--gp-border-subtle);
        transform: translateY(-2px);
    }

    .gp-card--stat {
        text-align: center;
    }

    .gp-card__value {
        font-family: var(--gp-font-display);
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--gp-primary);
        margin-bottom: var(--gp-space-sm);
    }

    .gp-card__value--accent {
        color: var(--gp-accent-red);
    }

    .gp-card__label {
        color: var(--gp-text-secondary);
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Stats Grid */
    .gp-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--gp-space-lg);
        margin-bottom: var(--gp-space-2xl);
    }

    .gp-stats-grid--compact {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ============================================
   EARNINGS BREAKDOWN CARD
   ============================================ */
    .gp-card--earnings {
        margin-bottom: var(--gp-space-xl);
        padding: var(--gp-space-lg);
    }

    .gp-earnings-breakdown {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .gp-earnings-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--gp-space-md) 0;
    }

    .gp-earnings-row--gross {
        padding-bottom: var(--gp-space-md);
        border-bottom: 1px dashed var(--gp-border-light);
    }

    .gp-earnings-row--gross .gp-earnings-value {
        font-size: 1.5rem;
        font-weight: 700;
        font-family: var(--gp-font-display);
    }

    .gp-earnings-deductions {
        padding: var(--gp-space-sm) 0;
        padding-left: var(--gp-space-md);
        border-left: 2px solid var(--gp-danger-20);
        margin-left: var(--gp-space-sm);
    }

    .gp-earnings-row--deduction {
        padding: var(--gp-space-xs) 0;
        padding-left: var(--gp-space-sm);
        color: var(--gp-text-muted);
        font-size: 0.9rem;
    }

    .gp-earnings-row--deduction .gp-earnings-value {
        font-weight: 500;
    }

    .gp-earnings-row--net {
        margin-top: var(--gp-space-sm);
        padding-top: var(--gp-space-md);
        border-top: 2px solid var(--gp-primary-30);
        background: var(--gp-primary-10);
        margin: var(--gp-space-sm) calc(-1 * var(--gp-space-lg));
        margin-bottom: calc(-1 * var(--gp-space-lg));
        padding: var(--gp-space-md) var(--gp-space-lg);
        border-radius: 0 0 var(--gp-radius-md) var(--gp-radius-md);
    }

    .gp-earnings-row--net .gp-earnings-label {
        font-weight: 600;
        font-size: 1rem;
        color: var(--gp-text-main);
    }

    .gp-earnings-row--net .gp-earnings-value {
        font-size: 1.75rem;
        font-weight: 700;
        font-family: var(--gp-font-display);
    }

    .gp-earnings-label {
        display: flex;
        align-items: center;
        color: var(--gp-text-muted);
        font-size: 0.875rem;
    }

    .gp-earnings-value {
        font-weight: 600;
    }

    .gp-text-danger {
        color: var(--gp-danger-color) !important;
    }

    /* ============================================
   TABLE
   ============================================ */
    .gp-table-wrapper {
        overflow-x: auto;
        border-radius: var(--gp-radius-md);
        border: 1px solid var(--gp-border);
        overflow: hidden;
        /* Ensure corners clip content */
    }

    .gp-table {
        width: 100%;
        border-collapse: separate;
        /* Required for border-radius on rows if needed, but here wrapper handles it */
        border-spacing: 0;
    }

    .gp-table th {
        text-align: left !important;
        /* Force left alignment */
        padding: 12px 20px;
        /* Slight adjust for balance */
        color: var(--gp-text-muted);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        /* Tighter letter spacing */
        background: var(--gp-bg-surface);
        border-bottom: 1px solid var(--gp-border);
    }

    .gp-table td {
        text-align: left !important;
        /* Force left alignment */
        padding: 12px 20px;
        border-bottom: 1px solid var(--gp-border-subtle);
        color: var(--gp-text-primary) !important;
        vertical-align: middle;
        font-size: 0.9rem;
    }

    /* Ensure first column content (Product) aligns left */
    .gp-table td:first-child .gp-flex {
        justify-content: flex-start !important;
    }

    .gp-table tr:last-child td {
        border-bottom: none;
    }

    .gp-table tr:hover td {
        background: var(--gp-bg-card-hover);
    }

    /* ============================================
   BADGES
   ============================================ */
    .gp-badge {
        display: inline-flex;
        align-items: center;
        padding: var(--gp-space-xs) var(--gp-space-sm);
        border-radius: var(--gp-radius-sm);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .gp-badge--success {
        background: var(--gp-primary-15);
        color: var(--gp-primary-neon);
    }

    .gp-badge--warning {
        background: rgba(255, 255, 255, 0.9);
        color: var(--gp-text-dark);
    }

    .gp-badge--danger {
        background: var(--gp-danger-10);
        color: var(--gp-danger-color);
    }

    .gp-badge--pending {
        background: rgba(255, 214, 0, 0.15);
        color: var(--gp-accent-yellow);
    }


    /* ============================================
   BUTTONS
   ============================================ */
    .gp-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--gp-space-sm);
        padding: var(--gp-space-md) var(--gp-space-xl);
        border: none;
        border-radius: var(--gp-radius-md);
        font-family: var(--gp-font-body);
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--gp-transition-spring);
        text-decoration: none;
    }

    .gp-btn--primary {
        background: var(--gp-primary-neon) !important;
        /* Explicitly Neon */
        color: var(--gp-bg-deep) !important;
    }

    .gp-btn--primary:hover {
        background: var(--gp-primary-hover) !important;
        box-shadow: var(--gp-shadow-glow);
        transform: scale(1.02);
        color: var(--gp-bg-deep) !important;
    }

    .gp-btn--secondary {
        background: transparent !important;
        color: var(--gp-text-main) !important;
        border: 1px solid var(--gp-text-main) !important;
    }

    .gp-btn--secondary:hover {
        background: var(--gp-text-main) !important;
        color: var(--gp-bg-deep) !important;
        border-color: var(--gp-text-main) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }

    .gp-btn--danger {
        background: var(--gp-accent-red);
        color: var(--gp-text-main);
    }

    .gp-btn--outline {
        background: transparent;
        color: var(--gp-text-main) !important;
        border: 1px solid var(--gp-text-main);
    }

    .gp-btn--outline:hover {
        background: var(--gp-text-main) !important;
        color: var(--gp-bg-deep) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .gp-btn--sm {
        padding: var(--gp-space-sm) var(--gp-space-md);
        font-size: 0.75rem;
    }

    /* ============================================
   FORMS
   ============================================ */
    .gp-form-group {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-form-label {
        display: block;
        margin-bottom: var(--gp-space-sm);
        color: var(--gp-text-secondary);
        font-size: 0.875rem;
        font-weight: 500;
    }

    .gp-form-input,
    .gp-form-select,
    .gp-form-textarea {
        width: 100%;
        padding: var(--gp-space-md);
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-md);
        color: var(--gp-text-primary);
        font-family: var(--gp-font-body);
        font-size: 1rem;
        transition: all var(--gp-transition-fast);
    }

    .gp-form-input:focus,
    .gp-form-select:focus,
    .gp-form-textarea:focus {
        outline: none;
        border-color: var(--gp-primary);
        box-shadow: 0 0 0 3px var(--gp-primary-glow);
    }

    .gp-form-textarea {
        min-height: 120px;
        resize: vertical;
    }

    /* ============================================
   PAYMENT SELECTOR
   ============================================ */
    .gp-payment-methods {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--gp-space-md);
        margin-bottom: var(--gp-space-xl);
    }

    .gp-payment-method {
        position: relative;
    }

    .gp-payment-method input[type="radio"] {
        position: absolute;
        opacity: 0;
    }

    .gp-payment-method__card {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--gp-space-sm);
        padding: var(--gp-space-xl);
        background: var(--gp-bg-card);
        border: 2px solid var(--gp-border);
        border-radius: var(--gp-radius-lg);
        cursor: pointer;
        transition: all var(--gp-transition-fast);
    }

    .gp-payment-method input[type="radio"]:checked+.gp-payment-method__card {
        border-color: var(--gp-primary);
        background: rgba(var(--gp-primary-rgb), 0.05);
    }

    .gp-payment-method__card:hover {
        border-color: var(--gp-text-muted);
    }

    .gp-payment-method__icon {
        font-size: 2rem;
    }

    .gp-payment-method__name {
        font-weight: 600;
    }

    /* ============================================
   ANIMATIONS
   ============================================ */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes pulse {

        0%,
        100% {
            opacity: 1;
        }

        50% {
            opacity: 0.5;
        }
    }

    .gp-animate-in {
        animation: fadeInUp 0.4s ease-out forwards;
    }

    .gp-stagger-1 {
        animation-delay: 0.05s;
    }

    .gp-stagger-2 {
        animation-delay: 0.1s;
    }

    .gp-stagger-3 {
        animation-delay: 0.15s;
    }

    .gp-stagger-4 {
        animation-delay: 0.2s;
    }

    .gp-loading {
        animation: pulse 1.5s infinite;
    }

    /* ============================================
   RESPONSIVE
   ============================================ */
    @media (max-width: 1024px) {
        .gp-sidebar {
            width: 200px;
            padding: 16px 10px;
        }
    }

    @media (max-width: 768px) {
        .gp-dashboard-wrapper {
            flex-direction: column;
            padding-top: 56px;
            /* Space for fixed mobile header */
        }

        .gp-mobile-header {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 990;
            height: 56px;
        }

        /* Fixed Sidebar Off-Canvas */
        .gp-sidebar {
            position: fixed;
            top: 0;
            left: -100%;
            width: 240px;
            height: 100vh;
            z-index: 999;
            transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 2px 0 20px rgba(0, 0, 0, 0.4);
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            border-right: 1px solid var(--gp-border);
            padding: 16px 12px;
        }

        .gp-sidebar.active {
            left: 0;
        }

        .gp-sidebar-close-btn {
            display: flex !important;
        }

        .gp-sidebar__nav {
            flex-direction: column;
            gap: 2px;
        }

        .gp-sidebar__logo {
            margin-bottom: 24px;
            margin-top: 16px;
        }

        .gp-sidebar__link {
            white-space: normal;
            padding: 10px 12px;
        }

        .gp-main {
            padding: var(--gp-space-lg);
        }

        .gp-payment-methods {
            grid-template-columns: 1fr;
        }

        /* Responsive: Stats Grid Compact */
        .gp-stats-grid--compact {
            grid-template-columns: 1fr;
        }

        /* Responsive: Earnings Breakdown */
        .gp-earnings-row--gross .gp-earnings-value {
            font-size: 1.25rem;
        }

        .gp-earnings-row--net .gp-earnings-value {
            font-size: 1.5rem;
        }

        .gp-earnings-deductions {
            margin-left: 0;
            padding-left: var(--gp-space-sm);
        }
    }

    /* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
    .woocommerce-account .gp-dashboard-wrapper {
        margin: 0 !important;
        max-width: none !important;
    }

    /* Hide default WC navigation when GP Dashboard is active */
    body.woocommerce-account.gp-dashboard-active .woocommerce-MyAccount-navigation {
        display: none !important;
    }

    body.woocommerce-account.gp-dashboard-active .woocommerce-MyAccount-content {
        width: 100% !important;
        padding: 0 !important;
    }

    /* ============================================
   FULLSCREEN LAYOUT
   ============================================ */
    /* Override theme container width constraints */
    body.gp-dashboard-fullscreen #content.site-main,
    body.gp-dashboard-fullscreen .site-main,
    body.gp-dashboard-fullscreen .page-content,
    body.gp-dashboard-fullscreen .woocommerce,
    body.gp-dashboard-fullscreen .woocommerce-MyAccount-content,
    body.gp-dashboard-fullscreen .elementor-section-wrap,
    body.gp-dashboard-fullscreen .elementor-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide theme header/title on dashboard pages */
    .gp-dashboard-fullscreen .entry-header,
    .gp-dashboard-fullscreen .page-header,
    .gp-dashboard-fullscreen .elementor-page-title,
    .gp-dashboard-fullscreen h1.entry-title,
    .gp-dashboard-fullscreen .site-header,
    .gp-dashboard-fullscreen .page-title {
        display: none !important;
    }

    /* Ensure dashboard wrapper fills viewport */
    .gp-dashboard-fullscreen .gp-dashboard-wrapper {
        min-height: 100vh;
        margin: 0 !important;
        width: 100vw !important;
    }

    /* Hide default WC navigation on dashboard pages */
    .gp-dashboard-fullscreen .woocommerce-MyAccount-navigation {
        display: none !important;
    }



    /* ============================================
   UTILITY CLASSES
   ============================================ */
    .gp-text-primary {
        color: var(--gp-primary);
    }

    .gp-text-muted {
        color: var(--gp-text-muted);
    }

    .gp-text-center {
        text-align: center;
    }

    .gp-mt-lg {
        margin-top: var(--gp-space-lg);
    }

    .gp-mb-lg {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-flex {
        display: flex;
    }

    .gp-flex-between {
        justify-content: space-between;
    }

    .gp-flex-center {
        align-items: center;
    }

    .gp-gap-md {
        gap: var(--gp-space-md);
    }

    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Grid Utilities */
    .gp-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gp-space-md);
    }

    .gp-grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: var(--gp-space-md);
    }

    /* ============================================
   TRACK INSPECTOR LAYOUT (NEW)
   ============================================ */
    @media (max-width: 1200px) {
        .gp-track-inspector-layout {
            grid-template-columns: 1fr;
            gap: var(--gp-space-lg);
        }

        .gp-sticky-wrapper {
            position: static !important;
        }
    }

    .gp-track-inspector-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: var(--gp-space-xl);
        max-width: var(--gp-container-max);
        margin: 0 auto;
    }

    .gp-inspector-inputs {
        display: flex;
        flex-direction: column;
        gap: var(--gp-space-xl);
        min-width: 0;
        /* Prevent grid blowout */
    }

    .gp-inspector-preview {
        position: relative;
        z-index: 10;
    }

    .gp-sticky-wrapper {
        position: sticky;
        top: 100px;
        /* Increased offset */
        display: flex;
        flex-direction: column;
        gap: var(--gp-space-lg);
    }

    #gp-btn-submit {
        transition: transform 0.2s, background 0.2s;
    }

    #gp-btn-submit:hover:not(:disabled) {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }

    /* Form Sections */
    .gp-form-section {
        background: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        padding: var(--gp-space-xl);
    }

    .gp-section-title {
        display: flex;
        align-items: center;
        gap: var(--gp-space-sm);
        margin-top: 0;
        font-size: 1.1rem;
        color: var(--gp-text-secondary);
        border-bottom: 1px solid var(--gp-border);
        padding-bottom: var(--gp-space-md);
        margin-bottom: var(--gp-space-lg);
    }

    .gp-section-danger {
        border-color: var(--gp-danger-30);
        background: var(--gp-danger-10);
    }

    /* Custom Inputs */
    .gp-input-group {
        margin-bottom: 20px;
    }

    .gp-input-group>label {
        display: block;
        margin-bottom: 8px;
        color: var(--gp-text-secondary);
        font-size: 0.85rem;
    }

    .gp-input-group input:not([type="checkbox"]),
    .gp-input-group textarea {
        width: 100%;
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        padding: 12px;
        color: var(--gp-text-main);
        font-family: var(--gp-font-body);
        appearance: none;
        -webkit-appearance: none;
    }

    .gp-input-group select {
        width: 100%;
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        padding: 12px;
        color: var(--gp-text-main);
        font-family: var(--gp-font-body);
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 1em;
        padding-right: 2.5rem;
        /* Space for arrow */
    }

    .gp-input-group select option {
        background: var(--gp-bg-deep);
        color: var(--gp-text-main);
        padding: 10px;
    }

    .gp-input-group input:focus,
    .gp-input-group select:focus,
    .gp-input-group textarea:focus {
        border-color: var(--gp-primary);
        outline: none;
        box-shadow: 0 0 10px var(--gp-primary-glow);
    }

    /* File Dropzones */
    .gp-file-dropzone {
        border: 1px dashed var(--gp-border);
        /* Thinner border */
        padding: 15px;
        /* Reduced padding (was 30px) */
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
        background: rgba(255, 255, 255, 0.01);
        border-radius: var(--gp-radius-md);
    }

    .gp-file-dropzone:hover {
        border-color: var(--gp-primary);
        background: rgba(var(--gp-primary-rgb), 0.03);
    }

    .gp-file-mini-dropzone {
        border: 1px dashed var(--gp-border);
        display: flex;
        flex-direction: row;
        /* Horizontal layout */
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 0.75rem;
        background: rgba(255, 255, 255, 0.01);
        border-radius: var(--gp-radius-sm);
        padding: 10px 15px;
        /* Compact padding */
        min-height: 50px;
        /* Short height */
        transition: all 0.2s ease;
    }

    .gp-file-mini-dropzone:hover {
        border-color: var(--gp-primary);
        background: rgba(var(--gp-primary-rgb), 0.05);
        box-shadow: 0 0 10px var(--gp-primary-10);
    }

    .mini-drop-label {
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.8;
        margin: 0;
        /* Clear margin */
    }

    .mini-drop-area {
        font-size: 1.2rem;
        font-weight: bold;
        color: var(--gp-primary);
        /* Use primary color for focus */
        line-height: 1;
    }

    /* Minimal Dropzone Variation for Public Demo */
    .gp-file-dropzone--minimal {
        padding: 10px 15px;
        min-height: 50px;
    }

    .gp-file-dropzone--minimal .dropzone-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
    }

    .gp-file-dropzone--minimal i {
        font-size: 20px;
        margin: 0;
    }

    .gp-file-dropzone--minimal span {
        font-size: 13px;
    }

    /* Grid Tightness */
    .gp-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        margin-bottom: 15px;
    }

    /* Tag Cloud */
    .gp-tag-cloud-selector {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .gp-tag-checkbox input {
        display: none;
    }

    .gp-tag-checkbox span {
        display: inline-block;
        padding: 6px 12px;
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        font-size: 0.8rem;
        cursor: pointer;
        transition: 0.2s;
        color: var(--gp-text-secondary);
    }

    .gp-tag-checkbox input:checked+span {
        background: var(--gp-primary);
        color: black;
        border-color: var(--gp-primary);
        font-weight: bold;
    }

    /* Vinyl Card */
    .gp-vinyl-card-preview {
        background: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        padding: 20px;
        text-align: center;
    }

    .gp-vinyl-cover-upload {
        width: 100%;
        aspect-ratio: 1;
        background: var(--gp-bg-deep);
        border: 1px dashed var(--gp-border);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 20px;
        cursor: pointer;
        overflow: hidden;
        position: relative;
    }

    .gp-vinyl-cover-upload img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .upload-placeholder {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: var(--gp-text-muted);
    }

    .gp-vinyl-info h4 {
        margin: 0 0 5px;
        font-size: 1.2rem;
        color: var(--gp-text-main);
    }

    .gp-vinyl-meta {
        font-size: 0.8rem;
        color: var(--gp-text-muted);
        margin-bottom: 10px;
    }

    .gp-vinyl-price {
        font-size: 1.5rem;
        color: var(--gp-primary);
        font-weight: bold;
    }

    /* AI Toggle */
    .gp-toggle-group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 15px;
    }

    .gp-toggle-switch {
        display: inline-block;
        position: relative;
        width: 50px;
        height: 26px;
        flex-shrink: 0;
    }

    .gp-toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        transition: .4s;
        border-radius: 34px;
    }

    .gp-toggle-switch input:checked+.slider {
        background-color: var(--gp-primary);
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
        background-color: var(--gp-text-main);
        transition: .4s;
        border-radius: 50%;
    }

    .gp-toggle-switch input:checked+.slider:before {
        transform: translateX(24px);
    }

    /* Media Queries for Form */
    @media (max-width: 1024px) {
        .gp-track-inspector-layout {
            grid-template-columns: 1fr;
        }

        .gp-inspector-preview {
            display: none;
        }
    }

    .gp-form-actions {
        display: flex;
        justify-content: space-between;
        margin-top: 30px;
    }

    .shake-error {
        animation: shake 0.5s;
        border-color: var(--gp-accent-red) !important;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-5px);
        }

        75% {
            transform: translateX(5px);
        }
    }

    /* Dashboard Loader */
    .gp-dashboard-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    .gp-dashboard-loader.is-visible {
        opacity: 1;
        visibility: visible;
    }

    .gp-loader-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid var(--gp-primary);
        border-bottom-color: transparent;
        border-radius: 50%;
        animation: rotation 1s linear infinite;
    }

    @keyframes rotation {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* Toast Notifications */
    .gp-toast {
        position: fixed;
        top: 20px;
        right: 20px;
        background: var(--gp-bg-card);
        color: var(--gp-text-main);
        padding: 12px 24px;
        border-radius: 8px;
        border-left: 4px solid var(--gp-primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        z-index: 10000;
        transform: translateX(120%);
        transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
    }

    .gp-toast.show {
        transform: translateX(0);
    }

    .gp-toast.error {
        border-left-color: var(--gp-accent-red);
    }

    .gp-toast i {
        font-size: 20px;
    }

    /* Status Badges */
    .gp-badge {
        padding: 2px 10px;
        border-radius: 4px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        display: inline-block;
        letter-spacing: 0.5px;
    }

    /* ============================================
   MULTI-STEP FORM
   ============================================ */
    .gp-step-content {
        display: none;
        animation: fadeIn 0.3s ease-in-out;
    }

    .gp-step-content.active {
        display: block;
    }

    /* Step Indicator */
    .gp-step-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 40px;
        position: relative;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .gp-step-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
        background: var(--gp-bg-deep);
        padding: 0 10px;
        width: 100px;
    }

    .gp-step-item .step-num {
        width: 40px;
        height: 40px;
        background: var(--gp-bg-card);
        border: 2px solid var(--gp-border);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: var(--gp-text-muted);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }

    .gp-step-item.active .step-num {
        background: var(--gp-primary);
        color: black;
        border-color: var(--gp-primary);
        box-shadow: 0 0 15px var(--gp-primary-glow);
    }

    .gp-step-item.completed .step-num {
        background: var(--gp-bg-card);
        border-color: var(--gp-primary);
        color: var(--gp-primary);
    }

    .gp-step-item .step-label {
        font-size: 0.8rem;
        color: var(--gp-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        font-weight: 600;
    }

    .gp-step-item.active .step-label {
        color: var(--gp-primary);
    }

    .gp-step-line {
        flex: 1;
        height: 2px;
        background: var(--gp-border);
        position: relative;
        top: -14px;
        z-index: 1;
    }

    /* Step Navigation */
    .gp-step-nav {
        margin-top: 30px;
        display: flex;
        justify-content: flex-end;
    }

    .gp-step-nav.top-nav {
        justify-content: flex-start;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .gp-step-nav button {
        display: flex;
        justify-content: center;
        border-top: 1px solid var(--gp-border);
    }

    /* ============================================
/* ============================================
   PAGE LOADER (Unified Style)
   ============================================ */
    .gp-page-loader {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        /* Semi-transparent for glass effect */
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: blur(10px);
        /* Stronger blur for premium feel */
        -webkit-backdrop-filter: blur(10px);
    }

    .gp-page-loader.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .gp-spinner {
        width: 48px;
        height: 48px;
        border: 3px solid var(--gp-primary);
        border-bottom-color: transparent;
        border-radius: 50%;
        animation: gp-spin 1s linear infinite;
    }

    /* Inline spinner for buttons */
    .gp-btn .gp-spinner,
    button .gp-spinner {
        width: 16px;
        height: 16px;
        border: 2px solid currentColor;
        border-bottom-color: transparent;
        display: inline-block;
        vertical-align: middle;
        margin-right: 6px;
    }

    @keyframes gp-spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* ============================================
   LEGAL / COMPLIANCE SECTION
   ============================================ */
    .gp-legal-section {
        background: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-md);
        padding: var(--gp-space-lg);
        margin-top: var(--gp-space-lg);
    }

    .gp-section-header {
        border-bottom: 1px solid var(--gp-border-subtle);
        margin-bottom: var(--gp-space-lg);
        padding-bottom: var(--gp-space-sm);
    }

    .gp-section-header h3 {
        margin: 0;
        font-family: var(--gp-font-display);
        font-size: 1.1rem;
        color: var(--gp-text-primary);
    }

    /* Radio Toggles */
    .gp-radio-pill {
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-border);
        padding: var(--gp-space-sm) var(--gp-space-md);
        border-radius: var(--gp-radius-2xl);
        /* Pill shape */
        transition: all var(--gp-transition-fast);
        opacity: 0.7;
    }

    .gp-radio-pill:hover {
        border-color: var(--gp-text-muted);
        opacity: 1;
    }

    .gp-radio-pill.active {
        background: var(--gp-primary-10);
        border-color: var(--gp-primary);
        color: var(--gp-primary);
        opacity: 1;
        font-weight: 600;
    }

    .gp-radio-pill input {
        display: none;
        /* Hide default radio */
    }

    /* Secure Upload Zone */
    .gp-secure-upload-zone {
        border: 1px dashed var(--gp-border) !important;
        background: rgba(255, 255, 255, 0.02) !important;
        transition: all var(--gp-transition-fast);
    }

    .gp-secure-upload-zone:hover,
    .gp-secure-upload-zone.dragover {
        border-color: var(--gp-primary) !important;
        background: rgba(var(--gp-primary-rgb), 0.05) !important;
    }

    .dz-message {
        color: var(--gp-text-secondary);
    }

    .dz-message i {
        color: var(--gp-text-muted);
        margin-bottom: var(--gp-space-xs);
    }

    /* Signature Pad */
    .gp-signature-wrapper {
        overflow: hidden;
        border-color: var(--gp-border) !important;
    }

    .gp-signature-canvas {
        cursor: crosshair;
    }

    .gp-sig-preview {
        border: 1px solid var(--gp-primary);
        border-radius: var(--gp-radius-sm);
        display: inline-block;
    }

    .file-item-success {
        display: flex;
        align-items: center;
        gap: 5px;
        background: var(--gp-primary-10);
        padding: 5px 10px;
        border-radius: 4px;
        width: fit-content;
    }

    /* ============================================
   MUSIC COMPLIANCE UI (Minimalist)
   ============================================ */
    .gp-card-radio {
        display: flex;
        flex-direction: row;
        /* Horizontal layout inside card for compactness */
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 12px 16px;
        /* Reduced padding */
        background: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-md);
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: left;
        position: relative;
        min-height: auto;
        /* Remove fixed height */
    }

    .gp-card-radio input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    .gp-card-radio:hover {
        border-color: var(--gp-text-muted);
        background: var(--gp-bg-card-hover);
    }

    .gp-card-radio.active {
        border-color: var(--gp-primary);
        background: rgba(var(--gp-primary-rgb), 0.05);
        box-shadow: none;
    }

    .gp-card-radio i {
        font-size: 18px;
        /* Smaller icon */
        color: var(--gp-text-secondary);
        transition: color 0.2s;
    }

    .gp-card-radio.active i {
        color: var(--gp-primary);
    }

    .gp-card-radio span {
        font-size: 0.85rem;
        /* Smaller text */
        font-weight: 500;
        color: var(--gp-text-secondary);
    }

    .gp-card-radio.active span {
        color: var(--gp-text-primary);
        font-weight: 600;
    }

    /* Big Toggle Card (Minimalist) */
    .gp-big-toggle-card {
        padding: 15px 20px;
        gap: 12px;
        display: flex;
        flex-direction: row;
        /* Horizontal layout */
        align-items: center;
        justify-content: center;
        border: 1px solid var(--gp-border);
        /* Thinner border */
    }

    .gp-big-toggle-card i {
        font-size: 20px !important;
        /* Smaller icon */
        width: 20px !important;
        height: 20px !important;
        margin-bottom: 0 !important;
        /* Remove bottom margin since it's now row */
    }

    .gp-big-toggle-card span {
        font-size: 0.95rem;
    }

    /* ============================================
   UTILITY CLASSES (Added via Design System)
   ============================================ */

    .gp-container {
        max-width: var(--gp-container-max);
        margin-left: auto;
        margin-right: auto;
    }

    .gp-container--narrow {
        max-width: var(--gp-container-narrow);
        margin-left: auto;
        margin-right: auto;
    }

    /* Flex Utilities */
    .gp-flex {
        display: flex;
    }

    .gp-flex-column {
        flex-direction: column;
    }

    .gp-flex-center {
        align-items: center;
        justify-content: center;
    }

    .gp-flex-between {
        justify-content: space-between;
    }

    .gp-flex-wrap {
        flex-wrap: wrap;
    }

    .gp-gap-md {
        gap: var(--gp-space-md);
    }

    .gp-gap-lg {
        gap: var(--gp-space-lg);
    }

    /* Spacing Utilities */
    .gp-mb-sm {
        margin-bottom: var(--gp-space-sm);
    }

    .gp-mb-md {
        margin-bottom: var(--gp-space-md);
    }

    .gp-mb-lg {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-mt-0 {
        margin-top: 0;
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {

        .gp-grid-2,
        .gp-grid-3 {
            grid-template-columns: 1fr !important;
        }
    }


    .gp-grid-1-2 {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: var(--gp-space-md);
    }

    @media (max-width: 768px) {
        .gp-grid-1-2 {
            grid-template-columns: 1fr !important;
        }
    }


    /* Media Previews */
    .gp-avatar-preview {
        width: 120px;
        height: 120px;
        background: var(--gp-bg-deep);
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: var(--gp-space-md);
    }

    .gp-banner-preview {
        width: 100%;
        height: 120px;
        background: var(--gp-bg-deep);
        border-radius: var(--gp-radius-md);
        overflow: hidden;
        margin-bottom: var(--gp-space-md);
    }

    .gp-media-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* ============================================
   MODALS
   ============================================ */
    .gp-modal {
        display: none;
        position: fixed;
        z-index: 10000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        justify-content: center;
        align-items: center;
    }

    .gp-modal[style*="display: flex"] {
        display: flex !important;
    }

    .gp-modal-content {
        background-color: var(--gp-bg-card);
        border: 1px solid var(--gp-border);
        padding: var(--gp-space-xl);
        border-radius: var(--gp-radius-lg);
        width: 90%;
        max-width: 500px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        animation: fadeInUp 0.3s ease-out;
    }

    .gp-modal-close {
        color: var(--gp-text-secondary);
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        transition: color 0.2s;
    }

    .gp-modal-close:hover {
        color: var(--gp-primary);
    }

    /* ============================================
   PRODUCT CATEGORY RADIO BUTTONS
   ============================================ */
    .gp-category-option:hover {
        border-color: var(--gp-primary) !important;
        background: rgba(var(--gp-primary-rgb), 0.05) !important;
    }

    .gp-category-option:has(input:checked) {
        border-color: var(--gp-primary) !important;
        background: rgba(var(--gp-primary-rgb), 0.1) !important;
        box-shadow: 0 0 0 1px var(--gp-primary);
    }

    .gp-category-option input[type="radio"] {
        accent-color: var(--gp-primary);
    }

    /* ============================================
   PANEL - Form Container with Max Width
   ============================================ */
    .gp-panel {
        max-width: 800px;
        margin: 0 auto;
    }

    .gp-panel__header {
        margin-bottom: var(--gp-space-xl);
    }

    .gp-panel__title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--gp-text-main);
        margin: 0 0 8px 0;
    }

    .gp-panel__subtitle {
        color: var(--gp-text-muted);
        font-size: 0.9rem;
        margin: 0;
    }

    /* ============================================
   GRID - 2 Columns
   ============================================ */
    .gp-grid--2-cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gp-space-lg);
    }

    @media (max-width: 768px) {
        .gp-grid--2-cols {
            grid-template-columns: 1fr;
        }
    }

    /* ============================================
   MEDIA UPLOADER - Avatar & Banner
   ============================================ */
    .gp-media-uploader {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gp-media-uploader>label {
        font-size: 0.85rem;
        color: var(--gp-text-secondary);
        font-weight: 500;
    }

    .gp-media-uploader .gp-btn {
        align-self: center;
        /* Centered visually with the preview */
    }

    /* Minimalist Upload Button */
    .gp-btn--upload {
        background: transparent !important;
        border: 1px solid var(--gp-border) !important;
        color: var(--gp-text-primary) !important;
        border-radius: var(--gp-radius-full) !important;
        font-weight: 500;
        letter-spacing: 0.02em;
        text-transform: none;
        /* More fluid/modern */
    }

    .gp-btn--upload:hover {
        background: var(--gp-text-main) !important;
        color: var(--gp-bg-deep) !important;
        border-color: var(--gp-text-main) !important;
    }

    .gp-media-uploader .gp-media-preview {
        width: 100px;
        height: 100px;
        background-color: var(--gp-bg-deep);
        background-size: cover;
        background-position: center;
        border-radius: 50%;
        border: 2px dashed var(--gp-border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gp-text-muted);
        transition: border-color 0.2s;
    }

    .gp-media-uploader .gp-media-preview:hover {
        border-color: var(--gp-primary);
    }

    .gp-media-uploader .gp-media-preview .material-symbols-outlined {
        font-size: 32px;
        opacity: 0.4;
    }

    /* Banner variant - wider, rectangular */
    .gp-media-uploader--banner .gp-media-preview {
        width: 100%;
        height: 120px;
        border-radius: var(--gp-radius-md);
    }

    /* Profile Images Grid - Avatar smaller, Banner larger */
    .gp-profile-images {
        display: grid;
        grid-template-columns: max-content 1fr;
        gap: var(--gp-space-lg);
        align-items: start;
    }

    .gp-profile-images .gp-media-uploader:first-child .gp-media-preview {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .gp-profile-images .gp-media-uploader:last-child .gp-media-preview {
        width: 100%;
        height: 100px;
        border-radius: var(--gp-radius-md);
    }

    @media (max-width: 600px) {
        .gp-profile-images {
            grid-template-columns: 1fr;
        }
    }

    /* ============================================
   CARD TITLE (inside cards)
   ============================================ */
    .gp-card__title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--gp-text-main);
        margin: 0 0 var(--gp-space-lg) 0;
        padding-bottom: var(--gp-space-md);
        border-bottom: 1px solid var(--gp-border);
    }

    /* ============================================
   FORM IMPROVEMENTS - Better Spacing
   ============================================ */
    .gp-form .gp-card {
        margin-bottom: var(--gp-space-xl);
    }

    .gp-form .gp-card:last-of-type {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-form .gp-input-group {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-form .gp-input-group:last-child {
        margin-bottom: 0;
    }

    .gp-form .gp-grid--2-cols .gp-input-group {
        margin-bottom: 0;
    }

    .gp-form .gp-grid--2-cols {
        margin-bottom: var(--gp-space-lg);
    }

    .gp-form .gp-grid--2-cols:last-child {
        margin-bottom: 0;
    }

    /* Form Actions */
    .gp-form-actions {
        display: flex;
        justify-content: flex-end;
        gap: var(--gp-space-md);
        padding-top: var(--gp-space-lg);
        border-top: 1px solid var(--gp-border);
        margin-top: var(--gp-space-lg);
    }

    /* Input Hint */
    .gp-input-hint {
        display: block;
        margin-top: 6px;
        font-size: 0.8rem;
        color: var(--gp-text-muted);
        opacity: 0.8;
    }

    /* ============================================
   DOWNLOAD MANAGER OVERRIDES
   ============================================ */
    .gp-download-row input {
        color: var(--gp-text-dark) !important;
        background: var(--gp-text-main) !important;
        border: 1px solid var(--gp-text-muted) !important;
    }

    .gp-download-row input::placeholder {
        color: var(--gp-text-muted) !important;
    }

    /* ============================================
   UI POLISH - PRODUCT FORM & MARKETING
   ============================================ */

    /* Fix: Save Draft Button Color */
    #gp-btn-save-draft {
        color: var(--gp-text-muted) !important;
        /* Standard dark gray */
        font-weight: 600;
    }

    #gp-btn-save-draft:hover {
        color: var(--gp-text-main) !important;
    }

    /* Download Manager - Trash Button Polish */
    .gp-remove-download {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 auto !important;
        transition: all 0.2s ease-out !important;
        background: var(--gp-danger-10) !important;
        border: 1px solid var(--gp-danger-20) !important;
        color: var(--gp-danger-color) !important;
        cursor: pointer !important;
    }

    .gp-remove-download:hover {
        background: var(--gp-danger-color) !important;
        color: #fff !important;
        transform: scale(1.1) !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
    }

    .gp-remove-download:active {
        transform: scale(0.95) !important;
    }

    .gp-remove-download .material-symbols-outlined {
        font-size: 18px !important;
    }

    /* Review Page - Glass & Spacing Polish */
    .gp-downloads-manager-wrapper {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 20px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gp-download-row {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        padding: 10px 15px;
        border: 1px solid transparent;
        transition: all 0.2s;
    }

    .gp-download-row:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }

    /* ============================================
    LICENSING DISPLAY
    ============================================ */
    .gp-license-display-box {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid var(--gp-border);
        border-radius: var(--gp-radius-md);
        padding: var(--gp-space-lg);
        max-height: 350px;
        overflow-y: auto;
        font-size: 0.85rem;
        line-height: 1.6;
        color: var(--gp-text-secondary);
        margin-bottom: var(--gp-space-lg);
    }

    .gp-license-display-box h1,
    .gp-license-display-box h2,
    .gp-license-display-box h3 {
        color: var(--gp-primary-neon);
        margin-top: 1.2em;
        margin-bottom: 0.5em;
        font-family: var(--gp-font-display);
        font-weight: 700;
    }

    .gp-license-display-box p {
        margin-bottom: 1em;
    }

    .gp-license-display-box strong {
        color: var(--gp-text-main);
    }

    .gp-license-display-box::-webkit-scrollbar {
        width: 4px;
    }

    .gp-license-display-box::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .shake-error {
        animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
    }

    @keyframes shake {

        10%,
        90% {
            transform: translate3d(-1px, 0, 0);
        }

        20%,
        80% {
            transform: translate3d(2px, 0, 0);
        }

        30%,
        50%,
        70% {
            transform: translate3d(-4px, 0, 0);
        }

        40%,
        60% {
            transform: translate3d(4px, 0, 0);
        }
    }

    /* ============================================
    LICENSE MODAL (NEON STYLE)
    ============================================ */
    .gp-license-modal {
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.85);
        z-index: 10000;
        padding: 20px;
    }

    .gp-license-modal .gp-modal-container {
        width: 100%;
        max-width: 650px;
        background: var(--gp-bg-deep);
        border: 1px solid var(--gp-primary-neon);
        box-shadow: 0 0 30px rgba(0, 255, 128, 0.15);
        border-radius: 12px;
        overflow: hidden;
        animation: modal-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modal-slide-in {
        from {
            opacity: 0;
            transform: translateY(20px) scale(0.98);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .gp-license-modal .gp-modal-header {
        padding: 20px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .gp-license-modal .gp-modal-header h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        color: var(--gp-primary-neon);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .gp-license-modal .gp-modal-close {
        background: none;
        border: none;
        color: var(--gp-text-muted);
        cursor: pointer;
        transition: color 0.2s;
    }

    .gp-license-modal .gp-modal-close:hover {
        color: var(--gp-text-main);
    }

    .gp-license-modal .gp-modal-body {
        padding: 0;
    }

    .gp-license-modal .gp-license-terms-scroller {
        padding: 25px;
        max-height: 450px;
        overflow-y: auto;
        font-size: 0.95rem;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.7);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .gp-license-terms-scroller h1,
    .gp-license-terms-scroller h2,
    .gp-license-terms-scroller h3 {
        color: var(--gp-text-main);
        font-family: var(--gp-font-display);
        margin-top: 1.5em;
        margin-bottom: 0.8em;
    }

    .gp-license-terms-scroller p {
        margin-bottom: 1.2em;
    }

    .gp-license-terms-scroller::-webkit-scrollbar {
        width: 6px;
    }

    .gp-license-terms-scroller::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .gp-license-modal .gp-modal-footer-actions {
        padding: 20px 25px;
        background: rgba(255, 255, 255, 0.02);
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .gp-license-modal .gp-btn-neon {
        width: 100%;
        padding: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        transition: all 0.3s;
    }

    .gp-license-modal .gp-btn-neon:disabled {
        opacity: 0.3;
        filter: grayscale(1);
        cursor: not-allowed;
    }
}