/**
 * Handelsvertreter Frontend Styles
 * Premium Dark Theme with Glass Morphism
 */

/* ================================================
   CSS Variables - Premium Dark Theme
   ================================================ */
:root {
    /* Primary Colors - Deep Blue */
    --hv-primary: #0a1628;
    --hv-primary-dark: #060d17;
    --hv-primary-light: #0f2140;

    /* Gold Accents */
    --hv-gold: #d4af37;
    --hv-gold-light: #f4d160;
    --hv-gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4d160 50%, #d4af37 100%);

    /* Status Colors */
    --hv-success: #10b981;
    --hv-warning: #f59e0b;
    --hv-error: #ef4444;

    /* Text Colors */
    --hv-text: #ffffff;
    --hv-text-secondary: rgba(255, 255, 255, 0.7);
    --hv-text-muted: rgba(255, 255, 255, 0.5);

    /* Glass Effect */
    --hv-glass-bg: rgba(255, 255, 255, 0.05);
    --hv-glass-border: rgba(255, 255, 255, 0.1);
    --hv-glass-blur: blur(20px);

    /* Input Colors */
    --hv-input-bg: rgba(255, 255, 255, 0.08);
    --hv-input-border: rgba(255, 255, 255, 0.15);
    --hv-input-focus: rgba(212, 175, 55, 0.4);

    /* Borders & Radius */
    --hv-border: rgba(255, 255, 255, 0.1);
    --hv-radius: 12px;
    --hv-radius-sm: 8px;

    /* Transitions */
    --hv-transition: all 0.2s ease;
}

/* ================================================
   Utility Classes
   ================================================ */
.hv-muted {
    color: var(--hv-text-muted);
    opacity: 0.6;
}

/* ================================================
   Reset
   ================================================ */
.hv-auth-page *,
.hv-auth-page *::before,
.hv-auth-page *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ================================================
   Auth Page - Full Screen Overlay
   ================================================ */
.hv-auth-page {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    z-index: 999999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    background: var(--hv-primary-dark) !important;
    margin: 0 !important;
    padding: 40px 20px !important;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box !important;
}

.hv-auth-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.hv-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hv-primary-dark) 0%, var(--hv-primary) 50%, var(--hv-primary-light) 100%);
}

.hv-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 25s ease-in-out infinite;
}

.hv-bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(79, 143, 234, 0.3);
    top: -150px;
    right: -100px;
}

.hv-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(212, 175, 55, 0.2);
    bottom: -100px;
    left: -50px;
    animation-delay: -10s;
}

.hv-bg-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(79, 143, 234, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hv-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ================================================
   Auth Container & Box
   ================================================ */
.hv-auth-container {
    width: 100%;
    max-width: 520px;
    padding: 20px;
    margin: auto !important;
}

.hv-glass {
    background: var(--hv-glass-bg);
    backdrop-filter: var(--hv-glass-blur);
    -webkit-backdrop-filter: var(--hv-glass-blur);
    border: 1px solid var(--hv-glass-border);
}

.hv-auth-box {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px;
    border-radius: var(--hv-radius);
    animation: fadeIn 0.4s ease;
}

.hv-auth-box-wide {
    max-width: 520px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================
   Brand
   ================================================ */
.hv-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.hv-brand-icon {
    width: 36px;
    height: 36px;
    color: var(--hv-gold);
}

.hv-brand-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--hv-text);
}

/* ================================================
   Auth Header
   ================================================ */
.hv-auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.hv-auth-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--hv-text);
    margin-bottom: 6px;
}

.hv-auth-header p {
    font-size: 14px;
    color: var(--hv-text-secondary);
}

/* ================================================
   Forms
   ================================================ */
.hv-form-group {
    margin-bottom: 16px;
}

.hv-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--hv-text-secondary) !important;
    position: relative !important;
}

.hv-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.hv-label-row label {
    margin-bottom: 0;
}

.hv-label-row a {
    font-size: 12px;
    color: var(--hv-gold);
    text-decoration: none;
}

.hv-label-row a:hover {
    text-decoration: underline;
}

.hv-required {
    color: var(--hv-gold);
}

/* Inputs - Simple, no icons */
.hv-form-group input[type="text"],
.hv-form-group input[type="email"],
.hv-form-group input[type="password"],
.hv-form-group input[type="tel"],
.hv-form-group input[type="number"],
.hv-form-group textarea,
.hv-form-group select {
    width: 100% !important;
    padding: 12px 14px !important;
    background: var(--hv-input-bg) !important;
    border: 1px solid var(--hv-input-border) !important;
    border-radius: var(--hv-radius-sm) !important;
    font-size: 14px !important;
    color: var(--hv-text) !important;
    transition: var(--hv-transition) !important;
    outline: none !important;
    display: block !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.hv-form-group input::placeholder {
    color: var(--hv-text-muted);
}

.hv-form-group input:focus {
    border-color: var(--hv-gold);
    box-shadow: 0 0 0 3px var(--hv-input-focus);
}

/* Form Row */
.hv-form-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    width: 100% !important;
}

.hv-form-half {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 50% !important;
}

.hv-form-group {
    margin-bottom: 20px !important;
    display: block !important;
    width: 100% !important;
}

@media (max-width: 600px) {
    .hv-form-row {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .hv-form-half {
        width: 100% !important;
    }
}

/* Password Field with Toggle */
.hv-password-field {
    position: relative;
}

.hv-password-field input {
    padding-right: 44px;
}

.hv-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--hv-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
}

.hv-toggle-password:hover {
    color: var(--hv-text);
}

/* Password Requirements */
.hv-password-requirements {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hv-req {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--hv-text-muted);
}

.hv-req-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid var(--hv-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.hv-req.valid {
    color: var(--hv-success);
}

.hv-req.valid .hv-req-icon {
    background: var(--hv-success);
    border-color: var(--hv-success);
}

.hv-req.valid .hv-req-icon::after {
    content: '✓';
    color: white;
    font-size: 9px;
}

/* Password Match */
.hv-password-match {
    margin-top: 6px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hv-password-match.match {
    color: var(--hv-success);
}

.hv-password-match.no-match {
    color: var(--hv-error);
}

/* Checkbox - Inline */
.hv-checkbox-label {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.hv-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hv-checkbox-box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    min-height: 18px;
    max-height: 18px;
    border: 2px solid var(--hv-input-border);
    border-radius: 4px;
    background: var(--hv-input-bg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--hv-transition);
    flex-shrink: 0;
    position: relative;
    vertical-align: middle;
}

.hv-checkbox-label input:checked + .hv-checkbox-box {
    background: var(--hv-gold);
    border-color: var(--hv-gold);
}

.hv-checkbox-label input:checked + .hv-checkbox-box::after {
    content: '✓';
    color: var(--hv-primary-dark);
    font-size: 11px;
    font-weight: bold;
}

.hv-checkbox-text {
    color: var(--hv-text-secondary);
    line-height: 1.4;
    display: inline;
    vertical-align: middle;
}

/* ================================================
   Buttons
   ================================================ */
.hv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--hv-radius-sm);
    cursor: pointer;
    transition: var(--hv-transition);
    text-decoration: none;
}

.hv-btn-primary {
    background: var(--hv-gold-gradient);
    color: var(--hv-primary-dark);
}

.hv-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.hv-btn-glow {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hv-btn-full {
    width: 100%;
}

.hv-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.hv-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--hv-primary-dark);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Button Loading State */
.hv-btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.hv-btn-loading .hv-spinner {
    margin: 0 auto;
}

/* Ensure loading spinner shows when parent has display set */
.hv-btn .hv-btn-loading[style*="display: block"],
.hv-btn .hv-btn-loading[style*="display:block"] {
    display: flex !important;
}

/* ================================================
   Messages
   ================================================ */
.hv-messages:empty {
    display: none;
}

.hv-alert {
    padding: 12px 14px;
    border-radius: var(--hv-radius-sm);
    margin-bottom: 16px;
    font-size: 13px;
}

.hv-alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.hv-alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.hv-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.hv-alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.hv-alert {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.hv-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.hv-alert-icon svg {
    width: 20px;
    height: 20px;
}

.hv-alert-content {
    flex: 1;
}

.hv-alert-content strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.hv-alert-content p {
    margin: 0 0 12px;
    opacity: 0.9;
    line-height: 1.5;
}

.hv-alert-content .hv-btn {
    margin-top: 4px;
}

/* ================================================
   Success View
   ================================================ */
.hv-success-view {
    text-align: center;
    padding: 20px 0;
}

.hv-success-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hv-success);
}

.hv-success-view h2 {
    font-size: 22px;
    color: var(--hv-text);
    margin-bottom: 10px;
}

.hv-success-view p {
    font-size: 14px;
    color: var(--hv-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.hv-hint {
    font-size: 13px;
    color: var(--hv-text-muted);
}

/* ================================================
   Modal
   ================================================ */
.hv-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.hv-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.hv-modal-content {
    position: relative;
    max-width: 400px;
    width: 100%;
    border-radius: var(--hv-radius);
    animation: modalIn 0.2s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.hv-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--hv-border);
}

.hv-modal-header h2 {
    font-size: 18px;
    color: var(--hv-text);
}

.hv-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--hv-text-muted);
    cursor: pointer;
    line-height: 1;
}

.hv-modal-close:hover {
    color: var(--hv-text);
}

.hv-modal-body {
    padding: 20px;
}

.hv-modal-body p {
    font-size: 13px;
    color: var(--hv-text-secondary);
    margin-bottom: 16px;
}

/* ================================================
   Footer & Trust
   ================================================ */
.hv-auth-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--hv-border);
}

.hv-auth-footer p {
    font-size: 13px;
    color: var(--hv-text-muted);
}

.hv-gold-link {
    color: var(--hv-gold);
    text-decoration: none;
}

.hv-gold-link:hover {
    text-decoration: underline;
}

.hv-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
}

.hv-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--hv-text-muted);
}

.hv-trust-item svg {
    color: var(--hv-success);
}

/* ================================================
   Dashboard - Dark Theme
   ================================================ */
.hv-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--hv-primary-dark) 0%, var(--hv-primary) 100%);
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hv-text);
}

.hv-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.hv-dashboard-welcome h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--hv-text);
    margin: 0 0 4px;
}

.hv-date {
    font-size: 13px;
    color: var(--hv-text-muted);
}

/* Stats Grid */
.hv-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.hv-stat-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hv-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.hv-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hv-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hv-stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.hv-stat-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    color: white;
}

.hv-stat-icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.hv-stat-icon-green { background: linear-gradient(135deg, #10b981, #059669); }
.hv-stat-icon-yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.hv-stat-icon-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.hv-stat-icon-gold { background: var(--hv-gold-gradient); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }

.hv-stat-content {
    flex: 1;
}

.hv-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-text);
    line-height: 1.2;
}

.hv-stat-label {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dashboard Cards - Premium Glass */
.hv-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hv-card:hover {
    border-color: rgba(212, 175, 55, 0.15);
}

.hv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.hv-card-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--hv-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hv-card-header h2::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--hv-gold);
    border-radius: 2px;
}

.hv-card-body {
    padding: 28px;
}

/* Dashboard Tables - Premium */
.hv-table {
    width: 100%;
    border-collapse: collapse;
}

.hv-table th,
.hv-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}

.hv-table th {
    font-weight: 600;
    color: var(--hv-text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    background: rgba(0, 0, 0, 0.1);
}

.hv-table td {
    color: var(--hv-text);
}

.hv-table tbody tr {
    transition: all 0.2s ease;
}

.hv-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.hv-table tbody tr:last-child td {
    border-bottom: none;
}

.hv-table a {
    color: var(--hv-gold);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.hv-table a:hover {
    color: var(--hv-gold-light);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* Status Badges - Premium */
.hv-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hv-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.hv-status-active { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.hv-status-approved { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.hv-status-submitted,
.hv-status-doc_review,
.hv-status-verification { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.hv-status-rejected { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.hv-status-cancelled { background: rgba(255, 255, 255, 0.05); color: var(--hv-text-muted); border: 1px solid rgba(255, 255, 255, 0.1); }
.hv-status-earned { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.hv-status-paid { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Dashboard Row/Col */
.hv-dashboard-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.hv-dashboard-col {
    min-width: 0;
}

.hv-col-4 { flex: 0 0 calc(33.333% - 11px); }
.hv-col-6 { flex: 0 0 calc(50% - 8px); }
.hv-col-8 { flex: 0 0 calc(66.666% - 5px); }

@media (max-width: 900px) {
    .hv-dashboard-row {
        flex-direction: column;
    }
    .hv-col-4, .hv-col-6, .hv-col-8 {
        flex: 1 1 100%;
    }
}

/* No Data */
.hv-no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--hv-text-muted);
    font-size: 14px;
}

/* Link */
.hv-link {
    color: var(--hv-gold);
    text-decoration: none;
    font-size: 13px;
}

.hv-link:hover {
    text-decoration: underline;
}

/* Dashboard Buttons */
.hv-dashboard .hv-btn-secondary {
    background: var(--hv-glass-bg);
    border: 1px solid var(--hv-glass-border);
    color: var(--hv-text);
}

.hv-dashboard .hv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hv-gold);
}

/* Dashboard Actions */
.hv-dashboard-actions {
    display: flex;
    gap: 10px;
}

/* Leaderboard - Premium */
.hv-leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hv-leaderboard-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.hv-leaderboard-item:last-child {
    border-bottom: none;
}

.hv-leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -24px;
    padding: 14px 24px;
}

.hv-leaderboard-item.hv-current-user {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    margin: 0 -24px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hv-rank {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--hv-text);
    margin-right: 14px;
}

.hv-leaderboard-item:first-child .hv-rank {
    background: var(--hv-gold-gradient);
    color: var(--hv-primary-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.hv-leaderboard-item:nth-child(2) .hv-rank {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    color: var(--hv-primary-dark);
}

.hv-leaderboard-item:nth-child(3) .hv-rank {
    background: linear-gradient(135deg, #cd7f32, #b8722c);
    color: var(--hv-primary-dark);
}

.hv-name {
    flex: 1;
    font-weight: 500;
    color: var(--hv-text);
    font-size: 14px;
}

.hv-amount {
    font-weight: 700;
    color: var(--hv-success);
    font-size: 15px;
}

/* Charts */
.hv-chart-container {
    position: relative;
    height: 300px;
}

/* Empty State - Premium */
.hv-empty-state {
    text-align: center;
    padding: 60px 30px;
}

.hv-empty-state svg {
    color: var(--hv-gold);
    opacity: 0.5;
    margin-bottom: 20px;
}

.hv-empty-state .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--hv-gold);
    opacity: 0.5;
    margin-bottom: 20px;
}

.hv-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--hv-text);
    margin-bottom: 10px;
}

.hv-empty-state p {
    color: var(--hv-text-muted);
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.6;
}

/* Filters */
.hv-filters {
    display: block !important;
    margin-bottom: 16px;
    max-width: 100% !important;
    width: 100% !important;
}

.hv-status-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 12px;
    width: 100% !important;
    max-width: 100% !important;
}

.hv-status-tabs::-webkit-scrollbar {
    height: 4px;
}

.hv-status-tabs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.hv-status-tabs::-webkit-scrollbar-thumb {
    background: var(--hv-gold);
    border-radius: 2px;
}

/* Scroll Indicator Arrow */
.hv-status-tabs-wrapper {
    position: relative;
    width: 100%;
}

.hv-scroll-indicator {
    display: none;
}

@media (max-width: 900px) {
    .hv-scroll-indicator {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 10;
        display: flex;
        align-items: center;
    }

    .hv-scroll-indicator svg {
        width: 18px;
        height: 18px;
        color: var(--hv-gold);
        animation: scrollHint 1.5s ease-in-out infinite;
        filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.8));
    }
}

@keyframes scrollHint {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.5;
    }
}

.hv-tab {
    padding: 8px 14px;
    border-radius: var(--hv-radius-sm);
    text-decoration: none;
    color: var(--hv-text-secondary);
    font-size: 13px;
    transition: var(--hv-transition);
    background: transparent;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.hv-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--hv-text);
}

.hv-tab.active {
    background: var(--hv-gold);
    color: var(--hv-primary-dark);
}

/* Responsive */
@media (max-width: 640px) {
    .hv-auth-box {
        padding: 24px 20px;
    }

    .hv-auth-header h1 {
        font-size: 22px;
    }

    .hv-dashboard {
        padding: 16px;
    }

    .hv-dashboard-welcome h1 {
        font-size: 20px;
    }
}

/* Print */
@media print {
    .hv-auth-bg,
    .hv-dashboard-actions {
        display: none !important;
    }
}

/* ================================================
   Pending Approval Page
   ================================================ */
.hv-pending-icon {
    margin-bottom: 20px;
}

.hv-pending-icon svg {
    color: var(--hv-gold);
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.hv-pending-content {
    text-align: center;
}

.hv-pending-text {
    color: var(--hv-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.hv-pending-info {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--hv-radius-sm);
    padding: 20px;
    text-align: left;
    margin-bottom: 24px;
}

.hv-pending-info p {
    color: var(--hv-gold);
    margin-bottom: 12px;
    font-size: 13px;
}

.hv-pending-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hv-pending-info li {
    color: var(--hv-text-secondary);
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
    font-size: 13px;
}

.hv-pending-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--hv-gold);
    font-size: 12px;
}

.hv-pending-actions {
    margin-top: 8px;
}

/* ================================================
   Complete Profile Page
   ================================================ */
.hv-profile-icon svg {
    color: var(--hv-gold);
}

.hv-completion-progress {
    margin-bottom: 24px;
    text-align: center;
}

.hv-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.hv-progress-fill {
    height: 100%;
    background: var(--hv-gold-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.hv-progress-text {
    font-size: 12px;
    color: var(--hv-text-muted);
}

.hv-form-section-title {
    color: var(--hv-gold) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 28px 0 20px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2) !important;
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

.hv-form-section-title:first-of-type {
    margin-top: 0 !important;
}

/* Form Reset for App Context */
.hv-app .hv-form,
.hv-app .hv-form * {
    box-sizing: border-box !important;
}

.hv-app .hv-form {
    display: block !important;
    width: 100% !important;
}

.hv-field-hint {
    display: block;
    font-size: 11px;
    color: var(--hv-text-muted);
    margin-top: 4px;
}

/* ================================================
   Form Field Errors
   ================================================ */
.hv-has-error {
    border-color: var(--hv-error) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

.hv-field-error {
    color: var(--hv-error);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hv-field-error::before {
    content: '⚠';
    font-size: 11px;
}

/* ================================================
   App Layout with Sidebar - Premium Design
   ================================================ */
.hv-app {
    display: flex !important;
    min-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--hv-text) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    -webkit-font-smoothing: antialiased;
    z-index: 999999 !important;
    overflow: hidden !important;
}

/* Premium Background - Same as Auth Page */
.hv-app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hv-app-bg .hv-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--hv-primary-dark) 0%, var(--hv-primary) 50%, var(--hv-primary-light) 100%);
}

.hv-app-bg .hv-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.hv-app-bg .hv-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(79, 143, 234, 0.25);
    top: -200px;
    right: -150px;
}

.hv-app-bg .hv-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(212, 175, 55, 0.15);
    bottom: -150px;
    left: 10%;
    animation-delay: -10s;
}

.hv-app-bg .hv-bg-orb-3 {
    width: 400px;
    height: 400px;
    background: rgba(79, 143, 234, 0.15);
    top: 40%;
    left: 60%;
    animation-delay: -5s;
}

.hv-app-bg .hv-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Sidebar - Premium Glass */
.hv-sidebar {
    width: 280px;
    min-width: 280px;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

.hv-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
}

.hv-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hv-logo svg {
    width: 36px;
    height: 36px;
    color: var(--hv-gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.hv-logo span {
    font-size: 17px;
    font-weight: 600;
    background: var(--hv-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hv-sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.hv-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hv-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: var(--hv-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 10px;
    position: relative;
}

.hv-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--hv-text);
}

.hv-nav-item.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: var(--hv-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.hv-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--hv-gold);
    border-radius: 0 3px 3px 0;
}

.hv-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.hv-nav-icon svg {
    width: 20px;
    height: 20px;
}

.hv-nav-label {
    font-size: 14px;
    font-weight: 500;
}

.hv-sidebar-footer {
    padding: 16px;
    margin: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hv-user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hv-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--hv-gold-gradient);
    color: var(--hv-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.hv-user-details {
    min-width: 0;
}

.hv-user-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--hv-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-user-email {
    font-size: 11px;
    color: var(--hv-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hv-logout-btn {
    padding: 8px;
    color: var(--hv-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--hv-transition);
}

.hv-logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--hv-error);
}

/* Main Content */
.hv-main {
    flex: 1 1 auto !important;
    margin-left: 280px !important;
    padding: 40px 48px !important;
    min-height: 100vh !important;
    height: 100vh !important;
    position: relative !important;
    z-index: 1 !important;
    width: calc(100vw - 280px) !important;
    max-width: calc(100vw - 280px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Mobile Header */
.hv-mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hv-glass-border);
    z-index: 90;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
}

.hv-menu-toggle {
    background: none;
    border: none;
    color: var(--hv-text);
    cursor: pointer;
    padding: 8px;
}

.hv-mobile-logo {
    font-size: 16px;
    font-weight: 600;
    color: var(--hv-gold);
}

.hv-mobile-logout {
    padding: 8px;
    color: var(--hv-text-muted);
}

.hv-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 95;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hv-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .hv-sidebar.open {
        transform: translateX(0);
    }

    .hv-sidebar-overlay.open {
        display: block;
    }

    .hv-mobile-header {
        display: flex;
    }

    .hv-main {
        margin-left: 0 !important;
        padding: 24px !important;
        padding-top: 80px !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    .hv-page-header h1 {
        font-size: 22px;
    }

    .hv-stat-card {
        padding: 18px;
    }

    .hv-stat-value {
        font-size: 22px;
    }
}

/* ================================================
   Page Header - Premium
   ================================================ */
.hv-page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hv-page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--hv-text);
    margin: 0 0 6px;
    letter-spacing: -0.5px;
}

.hv-page-header p {
    font-size: 15px;
    color: var(--hv-text-muted);
    margin: 0;
    padding-bottom: 10px;
}

.hv-page-header .hv-welcome {
    flex: 1;
}

.hv-page-header .hv-header-actions {
    display: flex;
    gap: 12px;
}

@media (min-width: 640px) {
    .hv-page-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Breadcrumb - Premium */
.hv-breadcrumb {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hv-breadcrumb span {
    opacity: 0.5;
}

.hv-breadcrumb a {
    color: var(--hv-gold);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hv-breadcrumb a:hover {
    color: var(--hv-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

/* ================================================
   Dashboard Grid
   ================================================ */
.hv-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.hv-card-large {
    grid-column: span 1;
}

@media (max-width: 1200px) {
    .hv-dashboard-grid {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 1000px) {
    .hv-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hv-card-large {
        grid-column: span 1;
    }
}

/* ================================================
   Profile Grid
   ================================================ */
.hv-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 1000px) {
    .hv-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================================
   Leaderboard Page
   ================================================ */
.hv-leaderboard-page {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
}

@media (max-width: 1100px) {
    .hv-leaderboard-page {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 900px) {
    .hv-leaderboard-page {
        grid-template-columns: 1fr;
    }
}

.hv-month-nav {
    display: flex;
    gap: 4px;
}

.hv-nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--hv-glass-bg);
    color: var(--hv-text);
    text-decoration: none;
    transition: var(--hv-transition);
}

.hv-nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hv-nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Podium - Premium */
.hv-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 50px 20px 40px;
    gap: 16px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%);
}

.hv-podium-item {
    text-align: center;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    width: 150px;
    transition: all 0.3s ease;
}

.hv-podium-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hv-podium-1 {
    transform: translateY(-24px);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.04) 100%);
    border-color: rgba(212, 175, 55, 0.25);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

.hv-podium-1:hover {
    transform: translateY(-28px);
}

.hv-podium-crown {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--hv-gold);
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.5));
}

.hv-podium-rank {
    width: 32px;
    height: 32px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.hv-podium-1 .hv-podium-rank {
    background: var(--hv-gold-gradient);
    color: var(--hv-primary-dark);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.hv-podium-2 .hv-podium-rank {
    background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
    color: var(--hv-primary-dark);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.hv-podium-3 .hv-podium-rank {
    background: linear-gradient(135deg, #e6994d, #cd7f32);
    color: var(--hv-primary-dark);
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.3);
}

.hv-podium-avatar {
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--hv-text);
}

.hv-podium-1 .hv-podium-avatar {
    background: var(--hv-gold-gradient);
    color: var(--hv-primary-dark);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
}

.hv-podium-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--hv-text);
    margin-bottom: 6px;
}

.hv-podium-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--hv-success);
}

/* Leaderboard Full List */
.hv-leaderboard-list-full {
    padding: 0 20px 20px;
}

.hv-leaderboard-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--hv-border);
}

.hv-leaderboard-row:last-child {
    border-bottom: none;
}

.hv-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--hv-glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--hv-text);
    margin-right: 12px;
}

/* ================================================
   Card Footer - Premium
   ================================================ */
.hv-card-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.hv-card-footer .hv-link {
    font-weight: 500;
    transition: all 0.2s ease;
}

.hv-card-footer .hv-link:hover {
    color: var(--hv-gold-light);
}

/* ================================================
   Info List
   ================================================ */
.hv-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    width: 100% !important;
}

.hv-info-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.hv-info-item:last-child {
    border-bottom: none !important;
}

.hv-info-label {
    font-size: 13px !important;
    color: var(--hv-text-muted) !important;
}

.hv-info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--hv-text);
}

/* ================================================
   Detail Grid
   ================================================ */
.hv-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.hv-detail-item {
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: var(--hv-radius-sm) !important;
    display: block !important;
}

@media (max-width: 600px) {
    .hv-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

.hv-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--hv-text-muted);
    margin-bottom: 4px;
}

.hv-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--hv-text);
}

.hv-detail-notes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--hv-border);
}

.hv-detail-notes h4 {
    font-size: 13px;
    color: var(--hv-text-muted);
    margin-bottom: 8px;
}

.hv-detail-notes p {
    font-size: 14px;
    color: var(--hv-text);
    line-height: 1.6;
}

/* ================================================
   Deal Detail Grid
   ================================================ */
.hv-deal-detail-grid {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 24px !important;
    width: 100% !important;
}

.hv-deal-detail-grid > .hv-card {
    width: 100% !important;
    min-width: 0 !important;
}

@media (max-width: 1100px) {
    .hv-deal-detail-grid {
        grid-template-columns: 1fr 320px !important;
    }
}

@media (max-width: 900px) {
    .hv-deal-detail-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ================================================
   Form Divider
   ================================================ */
.hv-form-divider {
    height: 1px;
    background: var(--hv-border);
    margin: 20px 0;
}

/* ================================================
   Secondary Button - Premium
   ================================================ */
.hv-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--hv-text);
    backdrop-filter: blur(10px);
}

.hv-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--hv-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

/* Primary Button Enhancement */
.hv-app .hv-btn-primary {
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.hv-app .hv-btn-primary:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

/* ================================================
   Pagination
   ================================================ */
.hv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-top: 1px solid var(--hv-border);
}

.hv-page-link {
    color: var(--hv-gold);
    text-decoration: none;
    font-size: 13px;
}

.hv-page-link:hover {
    text-decoration: underline;
}

.hv-page-info {
    font-size: 13px;
    color: var(--hv-text-muted);
}

/* ================================================
   Card Form - Premium
   ================================================ */
.hv-card-form {
    max-width: 900px;
}

.hv-card-form .hv-card-body {
    padding: 36px;
}

/* Form Actions - Premium */
.hv-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* App Form Inputs Enhancement */
.hv-app .hv-form-group input[type="text"],
.hv-app .hv-form-group input[type="email"],
.hv-app .hv-form-group input[type="password"],
.hv-app .hv-form-group input[type="tel"],
.hv-app .hv-form-group input[type="number"],
.hv-app .hv-form-group textarea,
.hv-app .hv-form-group select {
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    color: #ffffff !important;
}

.hv-app .hv-form-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    padding-right: 44px !important;
    cursor: pointer !important;
}

.hv-app .hv-form-group select option {
    background: #0a1628 !important;
    color: #ffffff !important;
    padding: 12px !important;
}

.hv-app .hv-form-group input:focus,
.hv-app .hv-form-group textarea:focus,
.hv-app .hv-form-group select:focus {
    border-color: var(--hv-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

/* ================================================
   File Upload - Premium
   ================================================ */
.hv-file-upload {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
}

.hv-file-upload:hover {
    border-color: var(--hv-gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.1);
}

.hv-file-upload svg {
    color: var(--hv-gold);
    opacity: 0.6;
    margin-bottom: 16px;
}

.hv-file-upload p {
    font-size: 14px;
    color: var(--hv-text-secondary);
    margin-bottom: 6px;
}

.hv-file-upload .hv-link {
    color: var(--hv-gold);
    font-weight: 500;
}

.hv-file-upload small {
    font-size: 12px;
    color: var(--hv-text-muted);
}

.hv-file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.hv-file-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hv-file-upload.hv-dragover {
    border-color: var(--hv-gold) !important;
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

.hv-selected-files {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hv-selected-files li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: var(--hv-text) !important;
}

.hv-selected-files li small {
    color: var(--hv-text-muted) !important;
    margin-left: 8px !important;
}

/* ================================================
   Badge Gold
   ================================================ */
.hv-badge-gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--hv-gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

/* ================================================
   Stats Small Variant
   ================================================ */
.hv-stats-small .hv-stat-card {
    padding: 16px;
}

.hv-stats-small .hv-stat-value {
    font-size: 20px;
}

.hv-text-warning {
    color: var(--hv-warning) !important;
}

.hv-text-success {
    color: var(--hv-success) !important;
}

/* ================================================
   Table Compact
   ================================================ */
.hv-table-compact th,
.hv-table-compact td {
    padding: 10px 12px;
}

/* ================================================
   No Padding Variant
   ================================================ */
.hv-no-padding {
    padding: 0 !important;
}

/* ================================================
   Form Third Sizing
   ================================================ */
.hv-form-third {
    flex: 0 0 30%;
}

.hv-form-two-thirds {
    flex: 1;
}

/* ================================================
   Document List
   ================================================ */
.hv-document-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hv-document-list li,
.hv-document-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: var(--hv-transition) !important;
}

.hv-document-list li:hover,
.hv-document-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

.hv-document-list li:last-child,
.hv-document-item:last-child {
    margin-bottom: 0 !important;
}

.hv-doc-icon {
    flex-shrink: 0 !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(212, 175, 55, 0.15) !important;
    border-radius: 8px !important;
    color: var(--hv-gold) !important;
}

.hv-doc-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.hv-doc-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.hv-doc-name {
    display: block !important;
    font-weight: 500 !important;
    color: var(--hv-text) !important;
    margin-bottom: 2px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.hv-doc-size {
    display: block !important;
    font-size: 12px !important;
    color: var(--hv-text-muted) !important;
}

.hv-document-list-large li {
    padding: 20px !important;
}

/* ================================================
   Responsive Deals Page
   ================================================ */

/* Page Header Responsive */
@media (max-width: 640px) {
    .hv-page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .hv-page-header .hv-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Filters Responsive */
@media (max-width: 900px) {
    .hv-filters {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .hv-status-tabs {
        display: flex !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px !important;
        margin-bottom: 8px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hv-status-tabs::-webkit-scrollbar {
        display: none;
    }

    .hv-tab {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .hv-search-form {
        width: 100%;
    }

    .hv-search-input {
        width: 100%;
    }

    .hv-search-input input {
        width: 100%;
    }
}

/* Responsive Table - Card Layout on Mobile */
@media (max-width: 900px) {
    .hv-table-responsive thead {
        display: none;
    }

    .hv-table-responsive tbody {
        display: block;
    }

    .hv-table-responsive tr {
        display: block;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 16px;
    }

    .hv-table-responsive td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        text-align: right;
    }

    .hv-table-responsive td:last-child {
        border-bottom: none !important;
        padding-top: 16px !important;
        justify-content: flex-end;
        gap: 8px;
    }

    .hv-table-responsive td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--hv-text-muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: left;
    }

    .hv-table-responsive td.hv-actions::before {
        display: none;
    }

    .hv-table-responsive .hv-btn-sm {
        padding: 8px 16px;
    }
}

/* Search Input */
.hv-search-input {
    position: relative;
    display: flex;
    align-items: center;
}

.hv-search-input .dashicons {
    position: absolute;
    left: 12px;
    color: var(--hv-text-muted);
    font-size: 18px;
}

.hv-search-input input {
    padding: 10px 14px 10px 40px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--hv-radius-sm) !important;
    color: var(--hv-text) !important;
    font-size: 14px !important;
    min-width: 200px;
}

.hv-search-input input:focus {
    border-color: var(--hv-gold) !important;
    outline: none !important;
}

.hv-search-input input::placeholder {
    color: var(--hv-text-muted);
}

/* Tab Count Badge */
.hv-tab .hv-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 11px;
    margin-left: 6px;
}

.hv-tab.active .hv-count {
    background: rgba(0, 0, 0, 0.2);
}

/* Button Small */
.hv-btn-sm {
    padding: 6px 12px !important;
    font-size: 12px !important;
}

/* ================================================
   Impersonate Banner (Admin als Vertreter)
   ================================================ */
.hv-impersonate-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.hv-impersonate-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #93c5fd;
    font-size: 14px;
}

.hv-impersonate-info svg {
    flex-shrink: 0;
    color: #60a5fa;
}

.hv-impersonate-info strong {
    color: #fff;
}

.hv-impersonate-stop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hv-impersonate-stop:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

@media (max-width: 600px) {
    .hv-impersonate-banner {
        flex-direction: column;
        text-align: center;
    }

    .hv-impersonate-info {
        flex-direction: column;
        gap: 8px;
    }
}
