/* ===================================
   PAYWIZE BRAND SYSTEM - CONSOLIDATED
   Complete brand design system and styling
   =================================== */

/* ===================================
   COLOR PALETTE - BRAND PURPLE
   =================================== */

:root {
    /* Primary Brand Colors - Deep Purple */
    --brand-purple: #5b3fd1;
    --brand-purple-dark: #4830a3;
    --brand-purple-deeper: #3d2685;
    --brand-purple-light: #7359e0;
    --brand-purple-lighter: #8b72e8;
    
    /* Gradient Backgrounds */
    --purple-gradient: linear-gradient(135deg, #5b3fd1 0%, #3d2685 100%);
    --purple-gradient-dark: linear-gradient(135deg, #4830a3 0%, #2d1d6b 100%);
    --purple-gradient-light: linear-gradient(135deg, #7359e0 0%, #5b3fd1 100%);
    --purple-wave-gradient: linear-gradient(180deg, #5b3fd1 0%, #4830a3 50%, #3d2685 100%);
    
    /* Curved Background Gradients */
    --hero-purple-gradient: linear-gradient(135deg, #5b3fd1 0%, #4830a3 60%, #3d2685 100%);
    
    /* Accent Colors */
    --accent-white: #ffffff;
    --accent-light-purple: #f5f3ff;
    --accent-pale-purple: #e9e5ff;
    
    /* Text Colors */
    --text-on-purple: #ffffff;
    --text-primary-dark: #1a1a1a;
    --text-secondary-dark: #4a5568;
    
    /* Badge Colors */
    --badge-bg: rgba(255, 255, 255, 0.95);
    --badge-border: rgba(255, 255, 255, 0.3);
    
    /* Updated primary to brand purple */
    --primary: #5b3fd1;
    --primary-dark: #4830a3;
    --primary-light: #7359e0;
    --gradient-primary: linear-gradient(135deg, #5b3fd1 0%, #4830a3 100%);
    --gradient-primary-hover: linear-gradient(135deg, #7359e0 0%, #5b3fd1 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* ===================================
   TYPOGRAPHY - BRAND STYLE
   =================================== */

/* Hero Headlines with Purple Highlight Box */
.hero-headline-branded {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary-dark);
}

.hero-headline-branded .highlight-box {
    background: var(--brand-purple);
    color: white;
    padding: 4px 16px;
    border-radius: 8px;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 12px rgba(91, 63, 209, 0.3);
}

.hero-headline-branded .highlight-box::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: white;
    opacity: 0.3;
}

/* Brand Purple Text */
.text-brand-purple {
    color: var(--brand-purple) !important;
}

.gradient-text-brand {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient purple text (keep existing gradient-text but enhance) */
.gradient-text {
    background: linear-gradient(135deg, #5b3fd1 0%, #7359e0 50%, #8b72e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* White text specifically for CTA section */
.final-cta .gradient-text {
    color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    background-clip: unset !important;
}

/* Purple accent for specific keywords */
.text-purple-accent {
    color: #5b3fd1;
    font-weight: 700;
}

/* Subtle purple background highlight */
.bg-purple-highlight {
    background: rgba(91, 63, 209, 0.08);
    padding: 2px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* ===================================
   BRAND PURPLE HIGHLIGHT BOXES
   Strategic text highlights throughout site
   =================================== */

/* Add highlight box to specific phrases */
.section-title .highlight,
.hero-title .highlight {
    background: linear-gradient(135deg, #5b3fd1 0%, #4830a3 100%);
    color: white;
    padding: 4px 16px;
    border-radius: 10px;
    display: inline-block;
    position: relative;
    box-shadow: 0 4px 12px rgba(91, 63, 209, 0.25);
    font-weight: 800;
    transition: all 0.3s ease;
}

.section-title .highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(91, 63, 209, 0.35);
}

/* Underline effect for highlights */
.section-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Alternative: Outlined style */
.section-title .highlight-outline {
    color: #5b3fd1;
    padding: 4px 16px;
    border: 3px solid #5b3fd1;
    border-radius: 10px;
    display: inline-block;
    font-weight: 800;
    transition: all 0.3s ease;
}

.section-title .highlight-outline:hover {
    background: #5b3fd1;
    color: white;
    transform: translateY(-2px);
}

/* ===================================
   HERO SECTION - BRAND STYLE
   =================================== */

.hero-section-branded {
    background: var(--hero-purple-gradient);
    color: white;
    padding: 120px 0 100px 0;
    position: relative;
    overflow: hidden;
}

/* Curved Wave Background Pattern */
.hero-section-branded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(115, 89, 224, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(61, 38, 133, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Curved Decorative Shapes */
.hero-section-branded::after {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: rgba(115, 89, 224, 0.15);
    top: -200px;
    right: -200px;
    animation: morphing 20s ease-in-out infinite;
}

@keyframes morphing {
    0%, 100% { 
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }
    50% { 
        border-radius: 70% 30% 40% 60% / 60% 40% 50% 50%;
        transform: rotate(180deg);
    }
}

.hero-content-branded {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-section-branded h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
}

.hero-section-branded .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Keep hero light theme but with purple accents */
.hero {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

.hero-title {
    color: var(--text-primary) !important;
}

/* ===================================
   BADGES - BRAND STYLE
   =================================== */

.brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--brand-purple-dark);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(91, 63, 209, 0.2);
    background: white;
}

.brand-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Badges and pills - purple variants */
.badge-item:hover {
    border-color: #5b3fd1 !important;
    background: rgba(91, 63, 209, 0.05) !important;
}

/* ===================================
   BUTTONS - BRAND STYLE
   =================================== */

.btn-brand-primary {
    background: white;
    color: var(--brand-purple);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-brand-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

.btn-brand-secondary {
    background: transparent;
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.btn-brand-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-brand-black {
    background: #1a1a1a;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand-black:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* CTA buttons - brand purple */
.cta-primary,
.btn-primary {
    background: linear-gradient(135deg, #5b3fd1 0%, #4830a3 100%) !important;
}

.cta-primary:hover,
.btn-primary:hover {
    background: linear-gradient(135deg, #7359e0 0%, #5b3fd1 100%) !important;
}

/* ===================================
   CARDS - BRAND STYLE
   =================================== */

.card-branded {
    background: white;
    border-radius: 20px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card-branded::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card-branded:hover::before {
    transform: scaleX(1);
}

.card-branded:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(91, 63, 209, 0.15);
    border-color: var(--brand-purple-light);
}

/* Cards hover - brand purple glow */
.solution-visual-card:hover {
    box-shadow: 0 24px 64px rgba(91, 63, 209, 0.2) !important;
    border-color: #5b3fd1 !important;
}

.feature-card:hover,
.product-card:hover {
    box-shadow: 0 20px 40px rgba(91, 63, 209, 0.2) !important;
    border-color: #7359e0 !important;
}

/* ===================================
   STATS & METRICS - BRAND STYLE
   =================================== */

.stats-box-branded {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 28px;
    color: white;
    display: inline-block;
}

.stats-box-branded .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.stats-box-branded .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    display: block;
}

/* Stats and numbers - purple accent */
.stat-number {
    color: #5b3fd1 !important;
}

/* ===================================
   SECTION HEADERS - BRAND STYLE
   =================================== */

.section-header-branded {
    text-align: center;
    margin-bottom: 64px;
}

.section-header-branded .section-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-header-branded .section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary-dark);
    font-weight: 400;
}

/* ===================================
   GRID PATTERNS - BRAND STYLE
   =================================== */

.grid-pattern-bg {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===================================
   VISUAL ELEMENTS - BRAND STYLE
   =================================== */

/* 3D Card Effect */
.visual-card-3d {
    background: var(--purple-gradient);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    box-shadow: 
        0 20px 40px rgba(91, 63, 209, 0.3),
        0 10px 20px rgba(61, 38, 133, 0.2);
}

.visual-card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Floating Animation */
.float-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Rupee Symbol with Wings Effect */
.rupee-icon-branded {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

/* ===================================
   NAVBAR - BRAND STYLE
   =================================== */

.navbar-branded {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 63, 209, 0.1);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-branded .nav-links a {
    color: var(--text-primary-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-branded .nav-links a:hover {
    color: var(--brand-purple);
}

/* Links - brand purple */
a:hover,
.nav-links a:hover {
    color: #5b3fd1 !important;
}

/* ===================================
   FOOTER - BRAND STYLE
   =================================== */

/* Keep footer dark theme */
.footer-section {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
}

/* Social media icons - purple hover */
.social-links a:hover {
    background: #5b3fd1 !important;
    border-color: #5b3fd1 !important;
}

/* ===================================
   ICONS & INTERACTIVE ELEMENTS
   =================================== */

/* Icons - brand purple */
.card-icon,
.icon-container {
    background: linear-gradient(135deg, #5b3fd1 0%, #7359e0 100%) !important;
}

/* Brand purple for check marks and success states */
.fas.fa-check-circle,
.fas.fa-check {
    color: #5b3fd1 !important;
}

/* Connection hub - brand purple */
.connection-hub {
    background: linear-gradient(135deg, #5b3fd1, #7359e0) !important;
    box-shadow: 0 8px 24px rgba(91, 63, 209, 0.4) !important;
}

/* ===================================
   ACTIVE STATES & INTERACTIONS
   =================================== */

/* Active states - brand purple */
.tab-btn.active,
.industry-btn.active,
.filter-btn.active {
    background: #5b3fd1 !important;
    color: white !important;
}

.dashboard-tab.active {
    border-bottom-color: #5b3fd1 !important;
    color: #5b3fd1 !important;
}

/* Update existing gradient uses */
.progress-bar {
    background: linear-gradient(90deg, #5b3fd1, #7359e0) !important;
}

/* Loading and progress elements */
.loading-spinner {
    border-top-color: #5b3fd1 !important;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    border-color: #5b3fd1 !important;
    box-shadow: 0 0 0 3px rgba(91, 63, 209, 0.1) !important;
}

/* Scrollbar - brand purple (webkit browsers) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5b3fd1, #7359e0);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7359e0, #5b3fd1);
}

/* Selection color - brand purple */
::selection {
    background: #5b3fd1;
    color: white;
}

::-moz-selection {
    background: #5b3fd1;
    color: white;
}

/* ===================================
   QUICK ACTIONS CARD
   =================================== */

/* Quick Actions Card (spans full width below account cards) */
.quick-actions-card {
    grid-column: 1 / -1; /* Span all columns */
    background: white !important;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: row;
    padding: 20px !important;
    gap: 24px;
}

.quick-actions-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 24px;
    border-right: 2px solid var(--border);
    min-width: 140px;
}

.quick-actions-header i {
    font-size: 32px;
    color: var(--primary);
}

.quick-actions-header span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    flex-grow: 1;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
}

.quick-action-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.quick-action-btn i {
    font-size: 24px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.quick-action-btn:hover span {
    color: white;
}

/* ===================================
   RESPONSIVE - BRAND STYLE
   =================================== */

@media (max-width: 1200px) {
    .quick-actions-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
    
    .quick-action-btn {
        padding: 14px 6px;
    }
    
    .quick-action-btn i {
        font-size: 22px;
    }
    
    .quick-action-btn span {
        font-size: 11px;
    }
}

@media (max-width: 992px) {
    .quick-actions-card {
        flex-direction: column;
        gap: 16px;
    }
    
    .quick-actions-header {
        flex-direction: row;
        border-right: none;
        border-bottom: 2px solid var(--border);
        padding-right: 0;
        padding-bottom: 16px;
        min-width: auto;
        width: 100%;
    }
    
    .quick-actions-header i {
        font-size: 24px;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .quick-action-btn {
        padding: 12px 8px;
        min-height: 80px;
    }
    
    .quick-action-btn i {
        font-size: 20px;
    }
    
    .quick-action-btn span {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .hero-section-branded h1,
    .hero-headline-branded {
        font-size: 2.25rem;
    }
    
    .section-header-branded .section-title {
        font-size: 2rem;
    }
    
    .hero-section-branded {
        padding: 80px 0 60px 0;
    }
    
    .brand-badges {
        gap: 8px;
    }
    
    .brand-badge {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .quick-action-btn {
        padding: 10px 6px;
        min-height: 70px;
    }
    
    .quick-action-btn i {
        font-size: 18px;
    }
    
    .quick-action-btn span {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .hero-section-branded h1,
    .hero-headline-branded {
        font-size: 1.875rem;
    }
    
    .hero-section-branded .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-header-branded .section-title {
        font-size: 1.625rem;
    }
    
    .btn-brand-primary,
    .btn-brand-secondary {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }
    
    .quick-actions-card {
        padding: 16px !important;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .quick-action-btn {
        padding: 12px 8px;
        min-height: 75px;
    }
}
