/* fixofferten.ch — Enterprise-Level Design */
/* Modern, Clean, Professional — Dunkelgrau + Grün Farbschema */

:root {
    /* Logo-basiertes Farbschema */
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary: #2D2D2D;
    --secondary-light: #424242;
    --accent: #4CAF50;
    
    /* Grau-Töne */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #2D2D2D;
    
    /* Status Farben */
    --success: #4CAF50;
    --warning: #FF9800;
    --error: #F44336;
    --info: #2196F3;
    
    /* Schatten */
    --shadow-sm: 0 1px 3px rgba(45, 45, 45, 0.06);
    --shadow: 0 4px 12px rgba(45, 45, 45, 0.08);
    --shadow-md: 0 8px 24px rgba(45, 45, 45, 0.10);
    --shadow-lg: 0 16px 48px rgba(45, 45, 45, 0.12);
    --shadow-xl: 0 24px 64px rgba(45, 45, 45, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing (8px Grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
    --space-16: 128px;
    
    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Monaco', 'Menlo', monospace;
    
    /* Transitions */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(255, 255, 255, 0.20);
    --glass-backdrop: blur(16px);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
    font-size: 16px; 
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font);
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Prevent iOS zoom on focus — minimum 16px on all form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
select,
textarea {
    font-size: 16px !important;
}

/* Improve text rendering */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--gray-700); line-height: 1.65; }

a { 
    color: var(--primary); 
    text-decoration: none; 
    transition: var(--transition); 
}
a:hover { color: var(--primary-dark); }

img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}

/* Scrollbar Styling */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
    box-sizing: border-box;
}

.section {
    padding: var(--space-8) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: var(--space-2);
}

/* Grid Systems */
.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: var(--space-4); 
    max-width: 100%;
    box-sizing: border-box;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    max-width: 100%;
    box-sizing: border-box;
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: var(--space-3); 
}

/* Flex Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }

/* Text Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--gray-600); }

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-bottom: 1px solid var(--gray-200);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gray-900);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
    color: var(--gray-900);
}

.logo-image {
    height: 24px;
    width: auto;
    max-width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav a {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    box-shadow: var(--shadow);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--gray-100);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        padding: var(--space-3);
        gap: var(--space-1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav a {
        width: 100%;
        text-align: center;
        padding: var(--space-2);
    }
}

/* ========================================
   MAIN CONTENT
   ======================================== */
main {
    padding-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ========================================
   HERO SECTIONS
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, var(--primary-light), transparent);
    opacity: 0.1;
    transform: rotate(15deg);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: var(--space-3);
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: var(--space-5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.4s forwards;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    opacity: 0;
    animation: slideInUp 0.8s ease-out 0.6s forwards;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    background: white;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.hero-badge i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

/* ========================================
   CARDS & COMPONENTS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    transition: var(--transition);
}

.card-icon i {
    color: var(--primary);
    width: 24px;
    height: 24px;
}

.card-icon.green { background: var(--primary-light); }
.card-icon.green i { color: var(--primary); }
.card-icon.amber { background: #FFF3CD; }
.card-icon.amber i { color: var(--warning); }

.card:hover .card-icon {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
}

.card p {
    margin-bottom: var(--space-3);
    font-size: 15px;
}

.card-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
}

.card-link i {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.card:hover .card-link i {
    transform: translateX(4px);
}

/* Category Cards */
.category-card {
    text-decoration: none !important;
    color: inherit;
}

.category-card:hover {
    color: inherit;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-sm { padding: var(--space-1) var(--space-3); font-size: 14px; }
.btn-lg { padding: var(--space-3) var(--space-6); font-size: 16px; }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-3);
}

.form-label {
    display: block;
    margin-bottom: var(--space-1);
    font-weight: 500;
    color: var(--gray-900);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-group.error .form-control {
    border-color: var(--error);
}

.form-help {
    display: flex;
    align-items: flex-start;
    gap: var(--space-1);
    margin-top: var(--space-1);
    padding: var(--space-2);
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-600);
}

.form-help i {
    color: var(--primary);
    width: 16px;
    height: 16px;
    margin-top: 1px;
}

/* ========================================
   STEPS & PROCESS
   ======================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto var(--space-3);
    box-shadow: var(--shadow);
}

.step h4 {
    margin-bottom: var(--space-2);
    color: var(--gray-900);
}

.step p {
    font-size: 15px;
    color: var(--gray-600);
}

/* ========================================
   STATS & METRICS
   ======================================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-1);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

/* ========================================
   TRUST ELEMENTS
   ======================================== */
.trust-bar {
    background: var(--primary);
    color: white;
    padding: var(--space-3) 0;
    text-align: center;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.trust-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.trust-item i {
    width: 16px;
    height: 16px;
    color: white;
}

/* ========================================
   CTA SECTIONS
   ======================================== */
.cta-banner {
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-8) var(--space-4);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(15deg);
    pointer-events: none;
}

.cta-banner > * {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: white;
    margin-bottom: var(--space-3);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
}

.cta-banner .btn {
    background: white;
    color: var(--primary);
    font-weight: 600;
}

.cta-banner .btn:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* Icons on colored backgrounds should be white */
.hero-badge.green i,
.step-icon i,
.form-header i,
.cta-banner i {
    color: white !important;
}

/* ========================================
   FLASH MESSAGE WRAPPER
   ======================================== */
.flash-wrapper {
    padding: 12px 0;
}

.flash-wrapper .alert {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    animation: flashSlideDown 0.35s ease-out;
}

@keyframes flashSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   ALERTS & NOTIFICATIONS
   ======================================== */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius);
    margin-bottom: var(--space-2);
    font-weight: 500;
    transition: var(--transition);
}

.alert-success {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-error {
    background: rgba(244, 67, 54, 0.1);
    color: var(--error);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.alert i,
.alert svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-8) 0 var(--space-4);
    margin-top: 0;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 20px;
    width: auto;
    margin-bottom: var(--space-3);
    max-width: 100%;
}

.footer h3,
.footer h4 {
    color: white;
    margin-bottom: var(--space-3);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-1);
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
    border-top: 1px solid var(--gray-700);
    padding-top: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--gray-500);
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: none;
}

.cookie-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
    font-size: 14px;
    color: var(--gray-700);
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations (applied via JS) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    :root {
        --space-12: 64px;
        --space-16: 96px;
    }
    
    .hero {
        padding: calc(var(--space-8) + 3rem) 0 var(--space-6);
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
        padding: var(--space-4);
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .cookie-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-items {
        flex-direction: column;
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-2);
    }
    
    .header-inner {
        padding: 0 var(--space-2);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-bar {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .header,
    .footer,
    .cookie-banner,
    .btn {
        display: none !important;
    }
    
    main {
        margin-top: 0 !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ========================================
   PARTNER & REGISTRATION PAGES
   ======================================== */

/* Partner Page Styles */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-cta-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--primary-dark);
}

/* Pricing Table */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

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

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 1.5rem;
}

.pricing-header h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.pricing-price {
    margin: 1.5rem 0;
}

.price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.price-label {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 15px;
    color: var(--gray-700);
}

.pricing-features i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: var(--primary-light);
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-weight: 500;
    text-align: center;
}

.pricing-note i {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

/* Shared form styles (used by login, verify, forgot, blog, home, partner etc.) */
.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-600);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    font-weight: 400 !important;
    line-height: 1.5;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: 600;
    font-size: 14px;
}


/* Mobile Responsiveness for Partner & Shared Components */
@media (max-width: 768px) {
    .pricing-table {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        align-items: stretch;
    }

    .hero-cta-note {
        text-align: center;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Focus improvements */
.btn:focus-visible,
.form-control:focus,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
        --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    }
    
    .card {
        border: 2px solid var(--gray-400);
    }
}

/* Form header text improvements */
.form-header p {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ========================================
   ADMIN DASHBOARD
   ======================================== */

/* Layout */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.admin-sidebar {
    background: var(--gray-900);
    padding: 32px 0;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    border-right: 1px solid var(--gray-800);
}

.admin-sidebar-brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 24px;
}

.admin-sidebar-brand span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(76, 175, 80, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
}

.admin-sidebar-brand span i,
.admin-sidebar-brand span svg {
    width: 14px;
    height: 14px;
}

.admin-nav-section {
    padding: 0 16px;
    margin-bottom: 8px;
}

.admin-nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-500);
    padding: 0 12px 8px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
    margin-bottom: 2px;
    text-decoration: none;
}

.admin-nav a i,
.admin-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gray-500);
    transition: all 0.15s ease;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: white;
}

.admin-nav a:hover i,
.admin-nav a:hover svg {
    color: var(--gray-300);
}

.admin-nav a.active {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.admin-nav a.active i,
.admin-nav a.active svg {
    color: white;
}

.admin-nav-badge {
    margin-left: auto;
    background: var(--error);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    line-height: 1.4;
}

.admin-nav a.active .admin-nav-badge {
    background: rgba(255,255,255,0.25);
}

.admin-sidebar-footer {
    padding: 24px 16px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 16px;
}

/* Main Content Area */
.admin-main {
    padding: 32px 40px;
    background: var(--gray-50);
    overflow-x: hidden;
}

.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.admin-page-header p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.admin-page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Stat Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.admin-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-300);
    border-radius: 3px 3px 0 0;
}

.admin-stat.green::before { background: var(--primary); }
.admin-stat.amber::before { background: var(--warning); }
.admin-stat.red::before { background: var(--error); }
.admin-stat.blue::before { background: var(--info); }

.admin-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

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

.admin-stat-icon i,
.admin-stat-icon svg {
    width: 20px;
    height: 20px;
}

.admin-stat.green .admin-stat-icon { background: rgba(76,175,80,0.1); }
.admin-stat.green .admin-stat-icon i,
.admin-stat.green .admin-stat-icon svg { color: var(--primary); }

.admin-stat.amber .admin-stat-icon { background: rgba(255,152,0,0.1); }
.admin-stat.amber .admin-stat-icon i,
.admin-stat.amber .admin-stat-icon svg { color: var(--warning); }

.admin-stat.red .admin-stat-icon { background: rgba(244,67,54,0.1); }
.admin-stat.red .admin-stat-icon i,
.admin-stat.red .admin-stat-icon svg { color: var(--error); }

.admin-stat.blue .admin-stat-icon { background: rgba(33,150,243,0.1); }
.admin-stat.blue .admin-stat-icon i,
.admin-stat.blue .admin-stat-icon svg { color: var(--info); }

.admin-stat.gray::before { background: var(--gray-400); }
.admin-stat.gray .admin-stat-icon { background: var(--gray-100); }
.admin-stat.gray .admin-stat-icon i,
.admin-stat.gray .admin-stat-icon svg { color: var(--gray-500); }

.admin-stat-label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

.admin-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

/* Section Cards */
.admin-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}

.admin-card:hover {
    transform: none;
    box-shadow: none;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.admin-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.admin-card-header h2 i,
.admin-card-header h2 svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
    margin-right: 8px;
    vertical-align: -3px;
}

.admin-card-body {
    padding: 24px;
}

.admin-card-body.no-padding {
    padding: 0;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

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

.admin-table tbody tr:hover {
    background: var(--gray-50);
}

.admin-table .td-bold {
    font-weight: 600;
    color: var(--gray-900);
}

.admin-table .td-mono {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-500);
}

.admin-table .td-small {
    font-size: 12px;
    color: var(--gray-500);
}

/* Badges */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-badge.green { background: rgba(76,175,80,0.1); color: #2E7D32; }
.admin-badge.amber { background: rgba(255,152,0,0.1); color: #E65100; }
.admin-badge.red { background: rgba(244,67,54,0.1); color: #C62828; }
.admin-badge.blue { background: rgba(33,150,243,0.1); color: #1565C0; }
.admin-badge.gray { background: var(--gray-100); color: var(--gray-600); }

.admin-badge i,
.admin-badge svg {
    width: 12px;
    height: 12px;
}

/* Empty State */
.admin-empty {
    text-align: center;
    padding: 64px 24px;
}

.admin-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.admin-empty-icon i,
.admin-empty-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gray-400);
}

.admin-empty h3 {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.admin-empty p {
    font-size: 14px;
    color: var(--gray-500);
    max-width: 360px;
    margin: 0 auto;
}

/* Quick Actions Grid */
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.admin-quick-action {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.admin-quick-action:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    color: inherit;
}

.admin-quick-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(76,175,80,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-quick-action-icon i,
.admin-quick-action-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.admin-quick-action-icon.amber { background: rgba(255,152,0,0.1); }
.admin-quick-action-icon.amber i,
.admin-quick-action-icon.amber svg { color: var(--warning); }

.admin-quick-action-icon.blue { background: rgba(33,150,243,0.1); }
.admin-quick-action-icon.blue i,
.admin-quick-action-icon.blue svg { color: var(--info); }

.admin-quick-action h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.admin-quick-action p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

/* Registration Card */
.admin-reg-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.admin-reg-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

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

.admin-reg-company {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.admin-reg-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.admin-reg-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.admin-reg-meta span i,
.admin-reg-meta span svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.admin-reg-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.admin-reg-categories span {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(76,175,80,0.08);
    color: var(--primary-dark);
}

.admin-reg-actions {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
    align-items: center;
    flex-wrap: wrap;
}

.admin-reg-actions .btn-approve {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.admin-reg-actions .btn-approve:hover {
    background: var(--primary-dark);
}

.admin-reg-actions .btn-approve i,
.admin-reg-actions .btn-approve svg {
    width: 14px;
    height: 14px;
}

.admin-reg-actions .btn-reject {
    background: transparent;
    color: var(--error);
    border: 1px solid rgba(244,67,54,0.3);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.admin-reg-actions .btn-reject:hover {
    background: rgba(244,67,54,0.05);
    border-color: var(--error);
}

.admin-reg-actions .btn-reject i,
.admin-reg-actions .btn-reject svg {
    width: 14px;
    height: 14px;
}

.admin-reg-actions .reject-reason {
    flex: 1;
    min-width: 200px;
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.15s ease;
}

.admin-reg-actions .reject-reason:focus {
    outline: none;
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(244,67,54,0.08);
}

/* Grid Sections */
.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-grid-3 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Detail View */
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.admin-detail-item label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 4px;
}

.admin-detail-item p {
    font-size: 14px;
    color: var(--gray-900);
    font-weight: 500;
}

/* Filter Bar */
.admin-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-search {
    position: relative;
    flex: 1;
    min-width: 240px;
    max-width: 400px;
}

.admin-search input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.15s ease;
    background: white;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.08);
}

.admin-search i,
.admin-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    pointer-events: none;
}

.admin-filter-select {
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    color: var(--gray-700);
}

.admin-filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Info Banner */
.admin-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(33,150,243,0.06);
    border: 1px solid rgba(33,150,243,0.15);
    border-radius: 10px;
    margin-bottom: 24px;
}

.admin-info i,
.admin-info svg {
    width: 18px;
    height: 18px;
    color: var(--info);
    flex-shrink: 0;
    margin-top: 1px;
}

.admin-info p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

/* Admin Flash Alerts */
.admin-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    animation: adminAlertIn 0.3s ease;
}

.admin-alert.success {
    background: rgba(76,175,80,0.08);
    border: 1px solid rgba(76,175,80,0.2);
    color: #2E7D32;
}

.admin-alert.success i,
.admin-alert.success svg {
    width: 18px;
    height: 18px;
    color: #4CAF50;
    flex-shrink: 0;
}

.admin-alert.error {
    background: rgba(244,67,54,0.08);
    border: 1px solid rgba(244,67,54,0.2);
    color: #C62828;
}

.admin-alert.error i,
.admin-alert.error svg {
    width: 18px;
    height: 18px;
    color: #F44336;
    flex-shrink: 0;
}

@keyframes adminAlertIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Admin Responsive */
@media (max-width: 1024px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        top: 0;
        height: auto;
        padding: 16px 0;
    }

    .admin-sidebar-brand {
        display: none;
    }

    .admin-nav-section {
        display: flex;
        overflow-x: auto;
        gap: 4px;
        padding: 0 16px;
    }

    .admin-nav-label {
        display: none;
    }

    .admin-nav a {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
        margin-bottom: 0;
    }

    .admin-sidebar-footer {
        display: none;
    }

    .admin-main {
        padding: 24px 20px;
    }

    .admin-grid-2,
    .admin-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-reg-actions {
        flex-direction: column;
    }

    .admin-reg-actions .reject-reason {
        min-width: unset;
        width: 100%;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table thead th,
    .admin-table tbody td {
        padding: 10px 12px;
    }
}

/* ========================================
   PARTNER DASHBOARD (High-End SaaS)
   ======================================== */

/* Layout */
.pd {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* Top Navigation Bar */
.pd-topnav {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    margin-bottom: 40px;
}

.pd-topnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-tabs {
    display: flex;
    gap: 4px;
}

.pd-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pd-tab i,
.pd-tab svg {
    width: 18px;
    height: 18px;
}

.pd-tab:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

.pd-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.pd-tab.active i,
.pd-tab.active svg {
    color: var(--primary);
}

/* Profile Menu */
.pd-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.pd-profile:hover {
    background: var(--gray-50);
    color: inherit;
}

.pd-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.pd-avatar.lg {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    font-size: 24px;
}

.pd-profile-info {
    display: flex;
    flex-direction: column;
}

.pd-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.3;
}

.pd-profile-role {
    font-size: 11px;
    color: var(--gray-500);
}

/* Welcome Section */
.pd-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.pd-welcome h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.pd-welcome p {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.pd-welcome-actions {
    display: flex;
    gap: 12px;
}

/* Stat Cards */
.pd-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.pd-stat {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pd-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pd-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pd-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-stat-icon i,
.pd-stat-icon svg {
    width: 22px;
    height: 22px;
}

.pd-stat-icon.green { background: rgba(76,175,80,0.1); }
.pd-stat-icon.green i, .pd-stat-icon.green svg { color: var(--primary); }
.pd-stat-icon.blue { background: rgba(33,150,243,0.1); }
.pd-stat-icon.blue i, .pd-stat-icon.blue svg { color: var(--info); }
.pd-stat-icon.amber { background: rgba(255,152,0,0.1); }
.pd-stat-icon.amber i, .pd-stat-icon.amber svg { color: var(--warning); }
.pd-stat-icon.purple { background: rgba(156,39,176,0.1); }
.pd-stat-icon.purple i, .pd-stat-icon.purple svg { color: #9C27B0; }

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

.pd-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

.pd-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    padding: 2px 8px;
    border-radius: 6px;
}

.pd-stat-change.up { background: rgba(76,175,80,0.1); color: var(--primary-dark); }
.pd-stat-change.down { background: rgba(244,67,54,0.1); color: var(--error); }

/* Cards */
.pd-card {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}

.pd-card:hover {
    transform: none;
    box-shadow: none;
}

.pd-card::before {
    display: none;
}

.pd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.pd-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pd-card-title i,
.pd-card-title svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

.pd-card-body {
    padding: 24px;
}

.pd-card-body.flush {
    padding: 0;
}

/* Tables (reuses admin-table but with pd prefix) */
.pd-table {
    width: 100%;
    border-collapse: collapse;
}

.pd-table thead th {
    padding: 12px 20px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.pd-table tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

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

.pd-table tbody tr:hover {
    background: var(--gray-50);
}

/* Badge */
.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.pd-badge.green { background: rgba(76,175,80,0.1); color: #2E7D32; }
.pd-badge.blue { background: rgba(33,150,243,0.1); color: #1565C0; }
.pd-badge.amber { background: rgba(255,152,0,0.1); color: #E65100; }
.pd-badge.red { background: rgba(244,67,54,0.1); color: #C62828; }
.pd-badge.gray { background: var(--gray-100); color: var(--gray-600); }
.pd-badge.purple { background: rgba(156,39,176,0.1); color: #7B1FA2; }

/* Empty State */
.pd-empty {
    text-align: center;
    padding: 64px 32px;
}

.pd-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.pd-empty-icon i,
.pd-empty-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gray-400);
}

.pd-empty h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.pd-empty p {
    font-size: 14px;
    color: var(--gray-500);
    max-width: 380px;
    margin: 0 auto 20px;
}

/* Lead Cards */
.pd-lead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: white;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.pd-lead:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(76,175,80,0.08);
    transform: translateY(-1px);
}

.pd-lead-info {
    flex: 1;
}

.pd-lead-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.pd-lead-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pd-lead-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--gray-500);
}

.pd-lead-meta span i,
.pd-lead-meta span svg {
    width: 14px;
    height: 14px;
    color: var(--gray-400);
}

.pd-lead-action {
    text-align: right;
    flex-shrink: 0;
    margin-left: 24px;
}

.pd-lead-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

/* Guthaben Amount */
.pd-balance-display {
    background: linear-gradient(135deg, var(--primary), #2E7D32);
    border-radius: 20px;
    padding: 40px;
    color: white;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.pd-balance-display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.06), transparent);
    transform: rotate(15deg);
    pointer-events: none;
}

.pd-balance-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
    position: relative;
}

.pd-balance-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    position: relative;
}

/* Topup Grid */
.pd-topup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.pd-topup-btn {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-align: center;
}

.pd-topup-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(76,175,80,0.03);
}

.pd-topup-btn.popular {
    border-color: var(--primary);
    background: rgba(76,175,80,0.05);
    color: var(--primary);
    position: relative;
}

.pd-topup-btn.popular::after {
    content: 'Beliebt';
    position: absolute;
    top: -10px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Payment Card Display */
.pd-payment-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: white;
    max-width: 400px;
    position: relative;
    overflow: hidden;
}

.pd-payment-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.pd-payment-card-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 24px;
}

.pd-payment-card-number {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.pd-payment-card-footer {
    display: flex;
    justify-content: space-between;
}

.pd-payment-card-footer span {
    font-size: 12px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pd-payment-card-footer strong {
    display: block;
    font-size: 14px;
    margin-top: 4px;
}

/* Profile Form */
.pd-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-bottom: 1px solid var(--gray-100);
}

.pd-profile-header-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pd-profile-header-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.pd-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pd-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pd-form-group.full {
    grid-column: 1 / -1;
}

.pd-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.pd-form-input {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s ease;
    background: white;
}

.pd-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.08);
}

.pd-form-input:disabled {
    background: var(--gray-50);
    color: var(--gray-500);
    cursor: not-allowed;
}

.pd-form-hint {
    font-size: 12px;
    color: var(--gray-400);
}

/* Category Checkboxes */
.pd-cat-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}
.pd-cat-check:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.pd-cat-check.active,
.pd-cat-check:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.pd-cat-check.active i,
.pd-cat-check.active svg,
.pd-cat-check:has(input:checked) i,
.pd-cat-check:has(input:checked) svg {
    color: white;
}
.pd-cat-check input[type="checkbox"] {
    display: none;
}
.pd-cat-check i,
.pd-cat-check svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* Info Box */
.pd-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.pd-info.blue {
    background: rgba(33,150,243,0.06);
    border: 1px solid rgba(33,150,243,0.12);
}

.pd-info.green {
    background: rgba(76,175,80,0.06);
    border: 1px solid rgba(76,175,80,0.12);
}

.pd-info i,
.pd-info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pd-info.blue i, .pd-info.blue svg { color: var(--info); }
.pd-info.green i, .pd-info.green svg { color: var(--primary); }

.pd-info p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Grid Layouts */
.pd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.pd-grid-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

/* Section Titles */
.pd-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-section-title i,
.pd-section-title svg {
    width: 18px;
    height: 18px;
    color: var(--gray-400);
}

/* Green button specifically for dashboard */
.pd .btn-green,
.pd-lead-action .btn-green {
    background: var(--primary);
    color: white;
}

.pd .btn-green:hover,
.pd-lead-action .btn-green:hover {
    background: var(--primary-dark);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .pd-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-topup-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pd-grid-2,
    .pd-grid-sidebar {
        grid-template-columns: 1fr;
    }

    .pd-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pd-topnav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pd-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pd-tabs::-webkit-scrollbar {
        display: none;
    }

    .pd-profile {
        display: none;
    }

    .pd-tab {
        padding: 14px 16px;
        font-size: 13px;
    }

    .pd-tab span {
        display: none;
    }

    .pd-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pd-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pd-lead-action {
        text-align: left;
        margin-left: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .pd-balance-amount {
        font-size: 2.25rem;
    }

    .pd-topup-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pd-welcome {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .pd-stats {
        grid-template-columns: 1fr;
    }

    .pd-topup-grid {
        grid-template-columns: 1fr;
    }
}