/**
 * Cargoroll - Main Stylesheet
 * Professional B2B freight exchange platform
 */

/* ============================================
   CSS Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on all pages */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   CSS Variables - Branding
   ============================================ */
:root {
    /* Colors */
    --primary-color: #664F9E;        /* Dark purple */
    --secondary-color: #00BBA0;      /* Turquoise/green */
    --accent-color: #A18DC2;         /* Light purple */
    --text-primary: #333333;         /* Dark grey */
    --text-secondary: #666666;       /* Medium grey */
    --background-light: #F8F9FA;     /* Very light grey */
    --background-white: #FFFFFF;
    --border-color: #E0E0E0;
    --error-color: #DC3545;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --info-color: #17A2B8;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   Typography
   ============================================ */
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 32px;   /* 2rem */
    font-weight: 700;
}

h2 {
    font-size: 26px;   /* 1.625rem */
    font-weight: 600;
}

h3 {
    font-size: 20px;   /* 1.25rem */
    font-weight: 600;
}

h4 {
    font-size: 18px;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
}

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

a:hover {
    color: var(--secondary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

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

.text-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* ============================================
   Header / Navigation
   ============================================ */
.header {
    background-color: var(--secondary-color);
    border-bottom: none;
    padding: var(--spacing-md) 0;
    box-shadow: var(--shadow-sm);
    /* Sticky header - base for mobile */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* Add subtle shadow when scrolled */
.header.header--scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Desktop: Fixed header - always visible at top, never hide */
@media (min-width: 993px) {
    .header {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        transform: translateY(0) !important;
    }

    /* Compensate for fixed header height */
    body {
        padding-top: 72px;
    }
}

/* Mobile/Tablet: Smart sticky - hides on scroll down, shows on scroll up */
@media (max-width: 992px) {
    .header.header--hidden {
        transform: translateY(-100%);
    }

    .header.header--visible {
        transform: translateY(0);
    }
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: white;
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 4px;
}

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

/* ============================================
   Mobile Navigation - Hamburger Menu
   ============================================ */

/* Hamburger Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    z-index: 1001;
    transition: background var(--transition-fast);
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hamburger-menu:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-line:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger-line:nth-child(3) {
    margin-top: 5px;
}

/* Hamburger animation when active */
.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay - Hidden on desktop */
.mobile-nav-overlay {
    display: none !important; /* Force hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

/* Mobile Navigation Panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: white;
    z-index: 1003;
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-nav.active {
    right: 0;
}

/* Mobile Nav Header */
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-logo img {
    height: 32px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

.mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.mobile-nav-close:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    list-style: none;
    padding: var(--spacing-md) 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    min-height: 52px; /* Touch-friendly tap target */
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > a:focus {
    background: var(--background-light);
    color: var(--primary-color);
}

.mobile-nav-menu > li > a:active {
    background: rgba(102, 79, 158, 0.1);
}

.mobile-nav-menu > li > a svg {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.mobile-nav-menu > li > a:hover svg,
.mobile-nav-menu > li > a:focus svg {
    color: var(--primary-color);
}

/* Mobile Nav Divider */
.mobile-nav-divider {
    height: 1px;
    background: var(--border-color);
    margin: var(--spacing-sm) var(--spacing-lg);
}

/* Mobile Nav Highlight Link */
.mobile-nav-highlight {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.mobile-nav-highlight svg {
    color: var(--primary-color) !important;
}

/* Mobile Nav Logout Link */
.mobile-nav-logout {
    color: var(--error-color) !important;
}

.mobile-nav-logout svg {
    color: var(--error-color) !important;
}

.mobile-nav-logout:hover,
.mobile-nav-logout:focus {
    background: rgba(220, 53, 69, 0.1) !important;
}

/* Mobile Nav CTA */
.mobile-nav-cta {
    padding: var(--spacing-md) var(--spacing-lg);
}

.mobile-nav-cta .btn {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 16px;
    font-weight: 600;
}

/* Mobile Nav Footer */
.mobile-nav-footer {
    padding: var(--spacing-lg);
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
}

.mobile-nav-footer a {
    color: var(--text-secondary);
    font-size: 14px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-nav-footer a:hover {
    color: var(--primary-color);
    background: rgba(102, 79, 158, 0.1);
}

/* Body scroll lock when mobile nav is open */
body.mobile-nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

/* Legacy menu toggle (kept for backwards compatibility) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #553E85;
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #009682;
    color: white;
}

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

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

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-body {
    margin-bottom: var(--spacing-md);
}

.card-footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color var(--transition-fast);
}

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

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

.form-error {
    color: var(--error-color);
    font-size: 14px;
    margin-top: var(--spacing-sm);
}

.form-success {
    color: var(--success-color);
    font-size: 14px;
    margin-top: var(--spacing-sm);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* ============================================
   Alerts / Messages
   ============================================ */
.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background-color: #D4EDDA;
    border: 1px solid #C3E6CB;
    color: #155724;
}

.alert-error {
    background-color: #F8D7DA;
    border: 1px solid #F5C6CB;
    color: #721C24;
}

.alert-warning {
    background-color: #FFF3CD;
    border: 1px solid #FFEAA7;
    color: #856404;
}

.alert-info {
    background-color: #D1ECF1;
    border: 1px solid #BEE5EB;
    color: #0C5460;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 16px;
    font-weight: 600;
}

.footer-logo-section {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
    height: 60px;
    width: auto;
}

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

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-fast);
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.footer-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Company Info in Footer */
.footer-company-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.5;
}

.footer-company-info p {
    margin-bottom: var(--spacing-xs);
}

.footer-company-info strong {
    color: white;
}

.footer-address {
    margin-top: var(--spacing-sm);
}

.footer-contact-details {
    margin-top: var(--spacing-sm);
}

.footer-contact-details a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-contact-details a:hover {
    color: white;
}

/* Partner Logos Section */
.footer-partners {
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: var(--spacing-md);
}

.footer-partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.footer-partners-logos a {
    display: inline-block;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-partners-netopia {
    text-align: center;
}

.footer-partners-badges {
    text-align: center;
}

.footer-partners-logos a:hover {
    opacity: 1;
}

.partner-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Footer Compliance Badge Column */
.footer-compliance {
    display: flex;
    flex-direction: column;
}

.footer-compliance-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.footer-compliance-item {
    width: 100%;
    max-width: 200px;
}

.footer-compliance-item a {
    display: block;
    transition: opacity var(--transition-fast);
}

.footer-compliance-item a:hover {
    opacity: 0.85;
}

.compliance-badge-img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 0;
}

.footer-netopia-badge {
    min-height: 40px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.4;
}

/* ============================================
   Utility Classes
   ============================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

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

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet breakpoint - show hamburger */
@media (max-width: 992px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex !important;
    }

    /* Hide desktop navigation */
    .nav-menu-desktop {
        display: none !important;
    }

    /* Show mobile navigation panel (still off-screen until .active) */
    .mobile-nav {
        display: flex;
    }

    /* Enable mobile overlay on tablet/mobile (still hidden until .active) */
    .mobile-nav-overlay {
        display: none !important; /* Hidden by default */
    }

    .mobile-nav-overlay.active {
        display: block !important; /* Show when active */
        opacity: 1;
    }

    /* Header adjustments */
    .header .container {
        padding: 0 var(--spacing-md);
    }

    .navbar {
        position: relative;
    }

    /* Prevent header hide when mobile nav is open */
    body.mobile-nav-open .header {
        transform: translateY(0) !important;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-xs); /* Reduced from spacing-sm for more screen real estate */
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 18px;
    }

    /* Header mobile adjustments */
    .header {
        padding: var(--spacing-sm) 0;
    }

    .header .container {
        padding: 0 var(--spacing-xs); /* Reduced from spacing-sm for more screen real estate */
    }

    .logo-img {
        height: 32px;
    }

    /* Mobile nav panel full width on small screens */
    .mobile-nav {
        width: 100%;
        max-width: none;
    }

    /* Legacy nav-menu (kept for backwards compatibility) */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }

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

    .footer-links a {
        padding: 6px 12px;
        line-height: 1.5;
    }

    .footer-links li {
        margin-bottom: var(--spacing-sm);
    }

    .footer-company-info {
        text-align: center;
    }

    .footer-partners-logos {
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .footer-partners-badges {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .partner-logo {
        height: 32px;
    }

    /* Footer Compliance - Mobile */
    .footer-compliance-stack {
        align-items: center;
    }

    .footer-compliance-item {
        max-width: 180px;
    }

    .compliance-badge-img {
        max-width: 180px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hamburger-menu {
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .hamburger-line {
        width: 20px;
    }

    .mobile-nav-header {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .mobile-nav-logo img {
        height: 28px;
        max-width: 120px;
    }

    .mobile-nav-menu > li > a {
        padding: var(--spacing-md);
        font-size: 15px;
    }

    .mobile-nav-footer {
        padding: var(--spacing-md);
    }

    /* Header logo sizing on small mobile */
    .header .logo-img {
        height: 28px;
        max-width: 140px;
    }
}

/* Tablet breakpoint for footer */
@media (max-width: 992px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Account dashboard */
.dashboard-sections {
    display: block;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: all 0.2s;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.action-card.primary {
    background: linear-gradient(135deg, #664F9E 0%, #A18DC2 100%);
    color: white;
}

.action-card svg {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    max-width: 24px;
    max-height: 24px;
}

.stat-icon.blue { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.stat-icon.purple { background: linear-gradient(135deg, #664F9E 0%, #A18DC2 100%); }

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    margin-top: 0.25rem;
}

.info-section {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    color: #1a202c;
}

.company-status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.company-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.company-info strong {
    font-size: 1rem;
    color: #1a202c;
}

.company-type {
    font-size: 0.875rem;
    color: #718096;
}

.verification-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.verification-badge svg {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
}

.verification-badge.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.verification-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.verification-badge.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.info-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    max-width: 24px;
    max-height: 24px;
}

.info-box strong {
    display: block;
    margin-bottom: 0.25rem;
}

.info-box p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.info-box.warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
}

.info-box.warning svg {
    color: #d97706;
}

.info-box.warning strong {
    color: #92400e;
}

.info-box.warning p {
    color: #78350f;
}

.info-box.error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
}

.info-box.error svg {
    color: #dc2626;
}

.info-box.error strong {
    color: #991b1b;
}

.info-box.error p {
    color: #7f1d1d;
}

/* Info box - Success variant */
.info-box.success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
}

.info-box.success svg {
    color: #059669;
}

.info-box.success strong {
    color: #065f46;
}

.info-box.success p {
    color: #047857;
}

/* Info box - Tip variant (soft guidance) */
.info-box.tip {
    background: #e0e7ff;
    border: 1px solid #a5b4fc;
}

.info-box.tip svg {
    color: #6366f1;
}

.info-box.tip strong {
    color: #3730a3;
}

.info-box.tip p {
    color: #4338ca;
}

/* Info box - Info variant */
.info-box.info {
    background: #dbeafe;
    border: 1px solid #93c5fd;
}

.info-box.info svg {
    color: #3b82f6;
}

.info-box.info strong {
    color: #1e40af;
}

.info-box.info p {
    color: #1d4ed8;
}

/* Activity Section Styles */
.activity-section {
    margin-top: 1.5rem;
}

.activity-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.activity-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.activity-stat-card.published {
    border-left: 4px solid #664F9E;
}

.activity-stat-card.viewed {
    border-left: 4px solid #00BBA0;
}

.activity-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.activity-stat-card.published .activity-stat-icon {
    background: rgba(102, 79, 158, 0.1);
    color: #664F9E;
}

.activity-stat-card.viewed .activity-stat-icon {
    background: rgba(0, 187, 160, 0.1);
    color: #00BBA0;
}

.activity-stat-icon svg {
    width: 24px;
    height: 24px;
}

.activity-stat-content {
    display: flex;
    flex-direction: column;
}

.activity-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.2;
    font-family: 'Montserrat', sans-serif;
}

.activity-stat-label {
    font-size: 0.875rem;
    color: #718096;
}

.activity-summary {
    font-size: 0.9375rem;
    color: #4a5568;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.activity-recommendation {
    margin-top: 0.5rem;
}

/* Responsive styles for activity section */
@media (max-width: 480px) {
    .activity-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .activity-stat-card {
        padding: 1rem;
    }

    .activity-stat-icon {
        width: 40px;
        height: 40px;
    }

    .activity-stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .activity-stat-value {
        font-size: 1.5rem;
    }

    .activity-stat-label {
        font-size: 0.8125rem;
    }

    .activity-summary {
        font-size: 0.875rem;
    }
}

.subscription-status-card {
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
}

.subscription-status-card.active {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
}

.subscription-status-card.inactive {
    background: white;
    border: 1px solid #e2e8f0;
}

.subscription-status-card.expired {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #f87171;
}

.subscription-status-card.pending-order {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
}

.subscription-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.subscription-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background: #10b981;
    color: white;
    width: fit-content;
}

.subscription-badge.inactive {
    background: #9ca3af;
}

.subscription-badge.expired {
    background: #ef4444;
}

.subscription-badge.pending {
    background: #f59e0b;
}

.subscription-expiry-text {
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

.btn-danger {
    background: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #dc2626;
}

.subscription-info strong {
    font-size: 1.125rem;
    color: #1a202c;
}

.subscription-expiry {
    font-size: 0.875rem;
    color: #065f46;
}

.subscription-info p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #718096;
}

.order-info-text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.order-details {
    margin: 0.25rem 0 0;
    font-size: 0.813rem;
    color: #78350f;
}

.order-expiry {
    margin: 0.25rem 0 0;
    font-size: 0.813rem;
    color: #b45309;
    font-weight: 500;
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #664F9E;
    color: #664F9E;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #664F9E;
    color: white;
}

.subscription-features {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #065f46;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .dashboard-sections {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 0;
    }

    .quick-actions .action-card {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.35rem;
        padding: 0.45rem 0.55rem;
        min-height: 44px;
        font-size: 0.95rem;
    }

    .quick-actions .action-card.primary {
        grid-column: 1 / -1;
        padding: 0.5rem 0.6rem;
        font-weight: 600;
    }

    .action-card svg {
        width: 20px;
        height: 20px;
        max-width: 20px;
        max-height: 20px;
    }

    .quick-actions .action-card.primary svg {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 0;
    }

    .stat-card {
        padding: 0.5rem;
        border-radius: 6px;
        gap: 0.35rem;
    }

    .stat-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .stat-icon svg {
        width: 14px;
        height: 14px;
        max-width: 14px;
        max-height: 14px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
        line-height: 1.2;
        margin-top: 0.15rem;
    }

    .info-section {
        padding: 0.65rem;
        margin-bottom: 0;
        border-radius: 6px;
        font-size: 0.95rem;
    }

    .info-section h3 {
        margin-bottom: 0.3rem;
        font-size: 1rem;
    }

    .company-status-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem;
        gap: 0.35rem;
    }

    .company-info strong {
        font-size: 0.95rem;
    }

    .company-type {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .verification-badge {
        padding: 0.35rem 0.6rem;
        font-size: 0.75rem;
    }

    .info-box {
        padding: 0.5rem;
        gap: 0.35rem;
        margin-top: 0.5rem;
    }

    .info-box p {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .subscription-status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.65rem;
        border-radius: 6px;
    }

    .subscription-info strong {
        font-size: 1rem;
    }

    .subscription-info p,
    .order-info-text,
    .order-details,
    .order-expiry,
    .subscription-expiry,
    .subscription-expiry-text,
    .subscription-features {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .subscription-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .subscription-actions {
        flex-direction: row;
        gap: 0.35rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .subscription-actions .btn,
    .subscription-actions .btn-outline,
    .subscription-actions .btn-secondary,
    .subscription-actions .btn-danger,
    .subscription-actions .btn-primary {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .status-company {
        order: 3;
    }

    .status-subscription {
        order: 4;
    }

    .quick-actions {
        order: 1;
    }

    .stats-grid {
        order: 2;
    }
}

@media (max-width: 640px) {
    .account-page-header {
        margin-bottom: 0.6rem;
    }

    .breadcrumb {
        margin-bottom: 0.4rem;
    }

    .account-content {
        padding: 0.6rem;
    }
}

/* Extra small mobile - maximize horizontal space for dashboard */
@media (max-width: 480px) {
    .dashboard-sections {
        gap: 0.35rem;
    }

    .quick-actions {
        gap: 0.3rem;
    }

    .quick-actions .action-card {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
        border-radius: 6px;
    }

    .quick-actions .action-card.primary {
        padding: 0.45rem 0.55rem;
    }

    .stats-grid {
        gap: 0.3rem;
    }

    .stat-card {
        padding: 0.45rem;
        border-radius: 5px;
        gap: 0.3rem;
    }

    .stat-icon {
        width: 26px;
        height: 26px;
        border-radius: 6px;
    }

    .stat-icon svg {
        width: 13px;
        height: 13px;
        max-width: 13px;
        max-height: 13px;
    }

    .stat-value {
        font-size: 1.15rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .info-section {
        padding: 0.55rem;
        border-radius: 6px;
    }

    .info-section h3 {
        margin-bottom: 0.4rem;
        font-size: 0.95rem;
    }

    .company-status-card {
        padding: 0.45rem;
        gap: 0.3rem;
        border-radius: 6px;
    }

    .company-info strong {
        font-size: 0.9rem;
    }

    .company-type {
        font-size: 0.7rem;
    }

    .verification-badge {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .verification-badge svg {
        width: 14px;
        height: 14px;
        max-width: 14px;
        max-height: 14px;
    }

    .info-box {
        padding: 0.45rem;
        gap: 0.3rem;
        margin-top: 0.4rem;
        border-radius: 6px;
    }

    .info-box svg {
        width: 18px;
        height: 18px;
        max-width: 18px;
        max-height: 18px;
    }

    .info-box strong {
        font-size: 0.85rem;
    }

    .info-box p {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .subscription-status-card {
        padding: 0.55rem;
        gap: 0.4rem;
        border-radius: 6px;
    }

    .subscription-info strong {
        font-size: 0.95rem;
    }

    .subscription-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }

    .subscription-info p,
    .order-info-text,
    .order-details,
    .order-expiry,
    .subscription-expiry,
    .subscription-expiry-text,
    .subscription-features span {
        font-size: 0.75rem;
    }

    .btn-small {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Activity section on extra small screens */
    .activity-section {
        margin-top: 0;
    }

    .activity-stats-grid {
        gap: 0.35rem;
    }

    .activity-stat-card {
        padding: 0.6rem;
        gap: 0.5rem;
        border-radius: 8px;
    }

    .activity-stat-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .activity-stat-icon svg {
        width: 18px;
        height: 18px;
    }

    .activity-stat-value {
        font-size: 1.35rem;
    }

    .activity-stat-label {
        font-size: 0.75rem;
    }

    .activity-summary {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .activity-recommendation {
        margin-top: 0.35rem;
    }

    .activity-recommendation p {
        font-size: 0.8rem;
    }
}
