/******************************************************************************
 * SITE.CSS - Pinuno.net
 * 
 * Organization:
 * 1. CSS Reset & Base Styles
 * 2. CSS Variables & Custom Properties
 * 3. Layout & Flexbox
 * 4. Typography & Text Styles
 * 5. Forms & Input Styles
 * 6. Components (Cards, Buttons, etc.)
 * 7. Hero Section & Home Page
 * 8. Search Results & Domain Page
 * 9. Admin Layout & Navigation
 * 10. Loading States & Animations
 * 11. Utility Classes
 * 12. Mobile Responsiveness
 * 13. Print Styles
 ******************************************************************************/

/* ==========================
   1. CSS RESET & BASE STYLES
   ========================== */

* {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    height: auto;
    overflow-y: auto;
    background-color: #f9fafb;
    color: #111827;
    font-size: 1rem;
    line-height: var(--line-height-normal);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* Full-width layout (no scrollbar on homepage) */
body.full-width-layout {
    overflow-x: hidden;
    min-height: 100vh;
}

body.full-width-layout main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body.full-width-layout .footer {
    flex-shrink: 0;
}

body:not(.container-fluid) footer {
    margin-top: auto;
}


/* ======================================
   2. CSS VARIABLES & CUSTOM PROPERTIES
   ====================================== */

:root {
    /* Blue Colors */
    --pinuno-sky: #4990A7; /* blue light */
    --pinuno-teal: #3B899A;
    --pinuno-artic: #3486A4; 
    --pinuno-ocean: #12758F; 
    --pinuno-navy: #28638F; 
    --pinuno-azure: #135686; /* blue dark */
    --pinuno-stone-light: #CFDCE2;

    /* Yellow Colors */
    --pinuno-yellow-light: #D6BA4E; 
    --pinuno-yellow-middle: #D5A94B;
    --pinuno-yellow-dark: #D3932D;

    /* Brown Colors (Blauw) */
    --pinuno-blauw-light: #D9B27A;
    --pinuno-blauw-middle: #CAA868;
    --pinuno-blauw-dark: #A56B2F;

    /* Pink & Purple Colors */
    --pinuno-pink: #CE4295;
    --pinuno-pink-rose: #CA2C6C;
    --pinuno-pink-dark: #A3245A;
    --pinuno-pink-rose-dark: #9F2B63;
    --pinuno-purple-dark: #62366B;
    --pinuno-purple-middle: #6E3225;
    --pinuno-purple-light: #872f91;

    /* Green Colors */
    --pinuno-green-btn: #59A859;
    --pinuno-green-light: #AFCB82;
    --pinuno-green-middle: #4D6E42;
    --pinuno-green-dark: #2C5D39;
    --pinuno-green-yellow-light: #ADC351;
    --pinuno-green-yellow-dark: #929B39;
    --pinuno-green-yellow: #A59738;

    /* Neutral Colors */
    --pinuno-whitesmoke: #F5F5F5;
    --pinuno-gainsboro: #E8E8E8;
    --pinuno-silver: #D0D0D0;

    /* Bootstrap Color Overrides */
    --bs-primary: var(--pinuno-sky);
    --bs-secondary: var(--pinuno-teal);
    --bs-success: var(--pinuno-green-btn);
    --bs-danger: var(--pinuno-pink-rose);
    --bs-warning: var(--pinuno-yellow-middle);
    --bs-info: var(--pinuno-navy);
    --bs-light: var(--pinuno-whitesmoke);
    --bs-dark: var(--pinuno-purple-dark);

    /* Design Tokens - Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Design Tokens - Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Design Tokens - Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Design Tokens - Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Design Tokens - Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* ======================================
   3. LAYOUT & FLEXBOX
   ====================================== */

/* Container Enhancements */
.container {
    padding-right: var(--spacing-lg);
    padding-left: var(--spacing-lg);
}

/* Page Wrapper */
.wrap {
    min-height: calc(100vh - 180px);
    padding: var(--spacing-2xl) 0;
}

.wrap > .container {
    animation: fadeIn 0.4s ease-out;
}

/* Header */
header {
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #1f2937;
    transition: box-shadow var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

/* Navbar Enhancements */
.navbar {
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 1030;
}

/* Hide Zoho SalesIQ widget in navbar dropdown */
.navbar-collapse #zoho-widget,
.navbar-nav #zoho-widget,
header [data-zoho],
header .zoho-widget-container,
header div[id*=\"zoho\"] {
    display: none !important;
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    transition: transform var(--transition-base);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Navbar buttons - ensure proper hover colors override nav-link white text */
.navbar-nav .btn.btn-outline-light:hover {
    color: #000 !important;
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1rem;
    transition: all var(--transition-base);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Navbar Toggler - Mobile hamburger menu button */
.navbar-toggler {
    padding: 0.5rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    transition: all var(--transition-base);
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5rem;
    height: 1.5rem;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Light navbar toggler (for module layouts) */
.navbar-light .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar-light .navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

.navbar-light .navbar-toggler:focus {
    box-shadow: 0 0 0 0.15rem rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure navbar toggler is visible on mobile */
@media (max-width: 991.98px) {
    .navbar-toggler {
        display: inline-block !important;
        min-width: 44px;
        min-height: 44px;
        padding: 0.625rem 0.875rem;
    }

    .navbar-toggler-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    /* Mobile: Compact navbar buttons */
    .navbar-nav .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.5rem;
        min-height: 36px;
    }

    /* Mobile: Hide user display name in logout button */
    .navbar-nav form .btn span {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Mobile: Better gap between navbar items */
    .navbar-nav {
        gap: 0.5rem !important;
    }
}
    
    /* Improve collapse animation clarity */
    .navbar-collapse {
        transition: height 0.3s ease-in-out;
    }
    
    .navbar-collapse.collapsing {
        transition: height 0.3s ease;
    }
}

/* Cart Badge - Desktop navbar only */
.cart-nav-item {
    padding: 0.5rem !important;
}

/* Mobile floating cart button - fixed position, visible on mobile screens */
.mobile-cart-button {
    display: none; /* Hidden by default on desktop */
}

/* Show on screens smaller than 576px (Bootstrap sm breakpoint) */
@media (max-width: 575.98px) {
    .mobile-cart-button {
        display: flex !important;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #4990A7 0%, #3486A4 100%);
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        text-decoration: none;
        font-size: 1.5rem;
        box-shadow: 0 4px 12px rgba(73, 144, 167, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1050;
        transition: all 0.3s ease;
    }
    
    .mobile-cart-button:hover {
        background: linear-gradient(135deg, #3486A4 0%, #28638F 100%);
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(73, 144, 167, 0.5), 0 3px 6px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }
    
    .mobile-cart-button:active {
        transform: translateY(-1px);
    }
}

.mobile-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust for smaller screens */
@media (max-width: 375px) {
    .mobile-cart-button {
        bottom: 15px !important;
        right: 15px !important;
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }
    
    .mobile-cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
}

/* Footer - uses flexbox from body */
body:not(.container-fluid) .footer {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #d1d5db;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body:not(.container-fluid) .footer a {
    color: var(--pinuno-sky);
    transition: color var(--transition-base);
}

body:not(.container-fluid) .footer a:hover {
    color: #ffffff;
}

/* ======================================
   4. TYPOGRAPHY & TEXT STYLES
   ====================================== */

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: #111827;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.025em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
    color: #374151;
}

.lead {
    font-size: 1.25rem;
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: #4b5563;
}

strong, b {
    font-weight: var(--font-weight-semibold);
}

a {
    color: var(--pinuno-sky);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--pinuno-teal);
    text-decoration: none;
}

.page-header {
    margin: 0 0 var(--spacing-xl) 0;
    padding: 0 0 var(--spacing-md) 0;
    border-bottom: 2px solid #e5e7eb;
    font-weight: var(--font-weight-bold);
    color: #111827;
}

.page-title {
    font-size: 1.75rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.25rem;
    color: #111827;
}

.text-muted {
    color: #6b7280 !important;
}

small, .small {
    font-size: 0.875rem;
    line-height: var(--line-height-normal);
}

.jumbotron {
    text-align: center;
    background-color: transparent;
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.jumbotron .btn {
    font-size: 1.25rem;
    padding: 0.875rem 1.5rem;
}

.not-set {
    color: #dc2626;
    font-style: italic;
}

.hint-block {
    display: block;
    margin-top: var(--spacing-sm);
    color: #6b7280;
    font-size: 0.875rem;
}

/* Grid view sorting icons */
a.asc:after,
a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

/* ======================================
   5. FORMS & INPUT STYLES
   ====================================== */

/* Form input placeholder behavior */
input::placeholder,
textarea::placeholder {
    opacity: 0.45;
    color: #999;
    transition: opacity 0.2s ease-in-out;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0;
}

/* Password field dots - make less visible */
input[type="password"] {
    color: #ccc;
    letter-spacing: 0.15em;
}

/* Disabled form inputs */
#domainform-domainname:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
    cursor: not-allowed;
}

button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ======================================
   6. COMPONENTS (Cards, Buttons, etc.)
   ====================================== */

/* Modern Button Styles */
.btn {
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-md);
    padding: 0.625rem 1.25rem;
    transition: all var(--transition-base);
    border: 1px solid transparent;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.025em;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pinuno-sky) 0%, var(--pinuno-teal) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pinuno-teal) 0%, var(--pinuno-ocean) 100%);
}

.btn-success {
    background: linear-gradient(135deg, var(--pinuno-green-btn) 0%, var(--pinuno-green-middle) 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--pinuno-green-middle) 0%, var(--pinuno-green-dark) 100%);
}

.btn-outline-primary {
    border-color: var(--pinuno-sky);
    color: var(--pinuno-sky);
}

.btn-outline-primary:hover {
    background: var(--pinuno-sky);
    color: white;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Custom Tooltip Styles */
.tooltip-trigger:hover .tooltip-custom {
    opacity: 1 !important;
    visibility: visible !important;
}

.tooltip-custom::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

/* Checkout Encouragement Toast */
#checkout-toast .toast {
    min-width: 300px;
    max-width: 400px;
    border: 1px solid rgba(0,0,0,.125);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

#checkout-toast .toast-body {
    padding: 1rem;
}

#checkout-toast .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Cart section in search results */
.cart-section {
    animation: slideInUp 0.3s ease-out;
}

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

/* Cart badge animation */
.badge {
    transition: all 0.3s ease;
}

/* Card Styles */
.card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--spacing-lg);
    font-weight: var(--font-weight-semibold);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: var(--spacing-md);
}

/* Service cards hover effect */
.service-card {
    transition: box-shadow var(--transition-slow);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.service-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

/* Modern card effects */
.hover-lift {
    transition: all var(--transition-slow);
}

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

/* Form Control Styles */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 2px solid #e5e7eb;
    padding: 0.625rem 1rem;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pinuno-sky);
    box-shadow: 0 0 0 3px rgba(73, 144, 167, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control-lg {
    padding: 0.875rem 1.25rem;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: #374151;
    margin-bottom: var(--spacing-sm);
}

.input-group {
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.input-group .form-control {
    border-right: none;
    box-shadow: none;
}

.input-group .btn {
    box-shadow: none;
}

/* Error summary */
.error-summary {
    color: #fff;
    background: var(--pinuno-pink-rose);
    border-left: 3px solid var(--pinuno-pink-dark);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0 0 var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Grid view styling */
.grid-view th {
    white-space: nowrap;
    font-weight: var(--font-weight-semibold);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ======================================
   7. HERO SECTION & HOME PAGE
   ====================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
    height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    transition: height var(--transition-slow);
}

/* Gradient animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Full-width layout hero fills available space */
body.full-width-layout .hero-section {
    height: 100%;
    flex: 1;
}

/* Hero section typography */
.hero-section h1 {
    font-weight: var(--font-weight-bold);
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem !important;
    line-height: var(--line-height-tight);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.hero-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem !important;
    line-height: var(--line-height-relaxed);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Hero content layout */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-text {
    text-align: center;
    padding: 0 var(--spacing-lg);
}

/* Hero section when results are shown */
.hero-section.with-results {
    height: auto;
    min-height: 180px;
    justify-content: center;
    padding: 1.5rem 0;
    flex-shrink: 0;
    animation: none;
}

.hero-section.with-results h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem !important;
}

.hero-section.with-results h1 i,
.hero-section.with-results p.lead,
.hero-section.with-results p.small,
.hero-section.with-results .mt-3 {
    display: none;
}

/* Hero section in compact mode (when results appear) */
.hero-section.hero-compact {
    height: auto;
    min-height: auto;
    padding: 1rem 0;
    animation: none;
}

.hero-section.hero-compact .hero-title,
.hero-section.hero-compact .hero-subtitle,
.hero-section.hero-compact .hero-features,
.hero-section.hero-compact .hero-badges,
.hero-section.hero-compact .hero-steps {
    display: none;
}

/* Main layout container to ensure no overflow */
body.full-width-layout {
    overflow-x: hidden;
}

/* Domain search form */
.domain-search-form {
    display: flex;
    justify-content: center;
    width: 100%;
}

.domain-search-input {
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
}

.hero-section .input-group {
    max-width: 700px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border-radius: 1.5rem;
    overflow: hidden;
    background: #ffffff;
    backdrop-filter: blur(20px);
    border: 4px solid #ffffff;
    position: relative;
    transform: translateZ(0);
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0 !important;
    width: 100%;
}

.hero-section .input-group > * {
    margin: 0 !important;
    border-radius: 0 !important;
}

.hero-section .input-group .form-control,
.hero-section .input-group .btn {
    border-radius: 0 !important;
    margin: 0 !important;
}

/* Strong contrasting background container for the search form */
.hero-section .input-group::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 2rem;
    z-index: -2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

/* White highlight ring around form */
.hero-section .input-group::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    border-radius: 1.75rem;
    z-index: -1;
}

.hero-section .input-group .form-control {
    text-transform: lowercase;
    border: none !important;
    font-size: 1.25rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    border-radius: 0 !important;
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive input sizing */
@media (max-width: 575.98px) {
    .hero-section .input-group .form-control {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
}

.hero-section .input-group .form-control::placeholder {
    color: #334155;
    opacity: 1;
    font-weight: 600;
    font-size: 1.1rem;
}

.hero-section .input-group .form-control:focus {
    background: #ffffff;
    box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(59, 130, 246, 0.4);
    border: none;
    outline: none;
    color: #0f172a;
    transform: scale(1.02);
}

/* Fallback styles for form-control in hero section without input-group */
.hero-section .form-control {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.hero-section .form-control::placeholder {
    color: #64748b !important;
    opacity: 1;
}

.hero-section .form-control:focus {
    background: #ffffff !important;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.hero-section .input-group .btn {
    padding: 1.5rem 3rem;
    flex: 0 0 auto;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6) !important;
    border: none !important;
    color: #ffffff;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0 !important;
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
}

/* Responsive button sizing */
@media (max-width: 575.98px) {
    .hero-section .input-group .btn {
        padding: 0.5rem 0.35rem;
        flex: 0 0 auto;
        min-width: 36px;
        font-size: 0;
        height: auto;
    }
    
    .hero-section .input-group .btn i {
        font-size: 0.9rem;
        margin-right: 0 !important;
        line-height: 1;
    }
}

/* Tablet/medium screen adjustments */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-section .input-group {
        max-width: 90%;
    }
    
    .hero-section .input-group .btn {
        padding: 1.25rem 1.75rem;
        font-size: 1rem;
    }
}

/* Desktop - larger button */
@media (min-width: 992px) {
    .hero-section .input-group .btn {
        padding: 1rem 1rem;
        font-size: 1rem;
    }
}

.hero-section .input-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.hero-section .input-group .btn:hover::before {
    left: 100%;
}

.hero-section .input-group .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #4f46e5, #7c3aed);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.7);
}

.hero-section .error-message {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    display: inline-block;
    backdrop-filter: blur(10px);
}

.hero-section .mt-3,
.hero-section .mt-4 {
    margin-top: var(--spacing-sm) !important;
}

/* ======================================
   8. SEARCH RESULTS & DOMAIN PAGE
   ====================================== */

#search-results-container:empty {
    display: none;
}

#search-results-container {
    min-height: 0;
    height: auto;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Empty state - take no space */
#search-results-container:empty {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    height: 0 !important;
}

/* Filled state - show with styling */
#search-results-container:not(:empty) {
    background: #f8f9fa;
    padding: 1rem;
}

/* Results table styling */
#search-results-container .table {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
    font-size: 0.9rem;
}

#search-results-container .table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

#search-results-container .table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Clickable rows for selection */
#search-results-container .table tbody tr.domain-row {
    cursor: pointer;
}

#search-results-container .table tbody tr.domain-row:has(.domain-checkbox:checked) {
    background-color: #e7f1ff;
}

#search-results-container .badge {
    font-weight: var(--font-weight-medium);
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
}

/* ======================================
   8A. ENHANCED UI COMPONENTS
   ====================================== */

/* Alert Styles */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    font-weight: var(--font-weight-medium);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

/* Badge Styles */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
    box-shadow: var(--shadow-sm);
}

.badge-primary {
    background: var(--pinuno-sky);
}

.badge-success {
    background: var(--pinuno-green-btn);
}

.badge-danger {
    background: var(--pinuno-pink-rose);
}

.badge-warning {
    background: var(--pinuno-yellow-middle);
    color: #92400e;
}

.badge-info {
    background: var(--pinuno-navy);
}

/* Table Enhancements */
.table {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.table thead th {
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    color: #374151;
    padding: var(--spacing-md);
    border-bottom: 2px solid #d1d5db;
}

.table tbody tr {
    transition: background-color var(--transition-base);
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.table tbody td {
    padding: var(--spacing-md);
    vertical-align: middle;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.breadcrumb-item {
    font-size: 0.875rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #9ca3af;
}

/* ======================================
   9. ADMIN LAYOUT & NAVIGATION
   ====================================== */

/* Admin Layout - Navbar fixes for Bootstrap 5 */
.main-header .navbar-static-top {
    display: flex;
    align-items: center;
}

.main-header .navbar-custom-menu {
    margin-left: auto;
}

.main-header .navbar-custom-menu .nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-header .navbar-custom-menu .nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    white-space: nowrap;
}

.main-header .navbar-custom-menu .nav-link:hover {
    color: #fff !important;
}

.main-header .sidebar-toggle {
    padding: 0.75rem 1rem;
    color: #fff;
    text-decoration: none;
}

/* Navigation logout button */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* Hamburger menu animation */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
}

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

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* ======================================
   10. LOADING STATES & ANIMATIONS
   ====================================== */

/* Loading overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

/* Loading message */
.loading-message {
    text-align: center;
}

.loading-message .loading-spinner {
    margin: 0 auto 1rem;
}

.loading-message p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--pinuno-sky);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-sm {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.loading-spinner-lg {
    width: 60px;
    height: 60px;
    border-width: 4px;
}

/* Grid view overlay */
.grid-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.grid-view-overlay.hidden {
    display: none;
}

/* Button loading state */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.btn-loading.btn-primary::after,
.btn-loading.btn-success::after,
.btn-loading.btn-danger::after,
.btn-loading.btn-warning::after,
.btn-loading.btn-info::after {
    border-color: #fff;
    border-right-color: transparent;
}

/* Progress bar animation */
.progress-bar-animated {
    background: linear-gradient(90deg, var(--pinuno-sky), var(--pinuno-teal), var(--pinuno-sky));
    background-size: 200% 100%;
    animation: progress-shimmer 2s linear infinite;
}

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

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ======================================
   11. UTILITY CLASSES
   ====================================== */

/* Cursor utility */
.cursor-pointer {
    cursor: pointer;
}

/* Details element styling */
details summary {
    cursor: pointer;
    user-select: none;
}

details summary:hover {
    color: var(--pinuno-sky);
}

/* Page Transitions & Interactions */
* {
    scroll-behavior: smooth;
}

/* Focus States */
*:focus-visible {
    outline: 2px solid var(--pinuno-sky);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--pinuno-sky);
    outline-offset: 2px;
}

/* Smooth Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn var(--transition-slow) ease-out;
}

/* Page Load Animation */
.page-content {
    animation: fadeIn 0.4s ease-out;
}

/* Hover Glow Effect */
.hover-glow {
    transition: all var(--transition-slow);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(73, 144, 167, 0.4);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--pinuno-sky) 0%, var(--pinuno-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Pinuno Color Utility Classes - Background */
.bg-pinuno-sky {
    background-color: var(--pinuno-sky) !important;
}

.bg-pinuno-teal {
    background-color: var(--pinuno-teal) !important;
}

.bg-pinuno-ocean {
    background-color: var(--pinuno-ocean) !important;
}

.bg-pinuno-navy {
    background-color: var(--pinuno-navy) !important;
}

.bg-pinuno-azure {
    background-color: var(--pinuno-azure) !important;
}

.bg-pinuno-yellow {
    background-color: var(--pinuno-yellow-middle) !important;
}

.bg-pinuno-green {
    background-color: var(--pinuno-green-btn) !important;
}

.bg-pinuno-pink {
    background-color: var(--pinuno-pink) !important;
}

.bg-pinuno-purple {
    background-color: var(--pinuno-purple-light) !important;
}

/* Pinuno Color Utility Classes - Text */
.text-pinuno-sky {
    color: var(--pinuno-sky) !important;
}

.text-pinuno-teal {
    color: var(--pinuno-teal) !important;
}

.text-pinuno-ocean {
    color: var(--pinuno-ocean) !important;
}

.text-pinuno-navy {
    color: var(--pinuno-navy) !important;
}

.text-pinuno-azure {
    color: var(--pinuno-azure) !important;
}

.text-pinuno-yellow {
    color: var(--pinuno-yellow-dark) !important;
}

.text-pinuno-green {
    color: var(--pinuno-green-dark) !important;
}

.text-pinuno-pink {
    color: var(--pinuno-pink-dark) !important;
}

.text-pinuno-purple {
    color: var(--pinuno-purple-dark) !important;
}

/* Pinuno Color Utility Classes - Border */
.border-pinuno-sky {
    border-color: var(--pinuno-sky) !important;
}

.border-pinuno-teal {
    border-color: var(--pinuno-teal) !important;
}

.border-pinuno-green {
    border-color: var(--pinuno-green-btn) !important;
}

.border-pinuno-pink {
    border-color: var(--pinuno-pink-rose) !important;
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #4990a7 0%, #2a5f7f 100%);
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ======================================
   12. VIEW-SPECIFIC STYLES (Consolidated)
   ====================================== */

/* Impersonation Banner (Admin) */
.impersonating .wrapper {
    margin-top: 45px;
}

.impersonating .main-header {
    top: 45px;
}

.impersonate-banner {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notification Badge */
.notification-badge {
    font-size: 0.65rem;
    top: -5px;
    right: -5px;
}

/* Global Search Wrapper */
.navbar-search-wrapper {
    flex: 1;
    max-width: 400px;
}

.navbar-search-wrapper #global-search-results {
    display: none;
    top: 100%;
    left: 0;
    max-height: 400px;
    overflow-y: auto;
}

/* Service Cards - Enhanced Hover Effects */
.service-card {
    transition: box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

.service-card .card-header {
    transition: all 0.3s ease;
}

.service-card .card-header .badge i {
    font-size: 1.1rem;
}

.transition-hover {
    transition: all 0.3s ease;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Service card-specific hover effects */
.service-card-1:hover .card-header {
    background: linear-gradient(135deg, #357289 0%, #1F4556 100%) !important;
}

.service-card-2:hover .card-header {
    background: linear-gradient(135deg, #E84A89 0%, #7B1A34 100%) !important;
}

.service-card-3:hover .card-header {
    background: linear-gradient(135deg, #6FBE6F 0%, #2E5A2E 100%) !important;
}

.service-card-4:hover .card-header {
    background: linear-gradient(135deg, #E8A84A 0%, #8B5C1F 100%) !important;
}

.btn-sm {
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
}

.btn-sm:hover {
    transform: translateX(2px);
}

/* Billing Module - Admin Layout Styles */
.main-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.main-header .logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.main-header .logo:hover {
    color: var(--pinuno-navy);
}

/* Public site layout only - scoped to avoid overriding admin.css */
body:not(.container-fluid) .content-wrapper {
    flex: 1;
    padding: 2rem;
}

.content-header {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.content-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.content-header h1 small {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 0.25rem;
}

/* Public site layout only - scoped to avoid overriding admin.css */
body:not(.container-fluid) .content {
    max-width: 1400px;
}

/* Card Enhancements */
/* Duplicate .card definition removed - defined at line 738 */

.card-header {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #111827;
    border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
    padding: 1.5rem;
}

/* Button Enhancements */
.btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
}

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

.btn-primary:hover {
    background: var(--pinuno-navy);
    border-color: var(--pinuno-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    color: #6b7280;
    border-color: #e5e7eb;
}

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

/* Table Enhancements */
.table {
    margin-bottom: 0;
}

.table thead th {
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: #111827;
}

.table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

/* Form Styling */
.form-control,
.form-select {
    border-color: #e5e7eb;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(73, 144, 167, 0.15);
}

/* Email Templates (Mail Styling) */
.body-wrap {
    background-color: #f6f6f6;
    width: 100%;
}

.email-container {
    width: 600px;
    display: block !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    clear: both !important;
}

.email-content {
    max-width: 600px;
    margin: 0 auto;
    display: block;
    padding: 20px;
}

.email-main {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 3px;
}

.email-content-wrap {
    vertical-align: top;
    padding: 20px;
}

.email-content-block {
    vertical-align: top;
    padding: 0 0 20px;
}

.email-invoice {
    margin: 20px auto;
    text-align: left;
    width: 100%;
}

.email-invoice td {
    vertical-align: top;
    padding: 5px 0;
}

.email-invoice-items {
    width: 100%;
}

.email-btn-primary {
    font-weight: bold;
    color: #FFF;
    background-color: #348eda;
    border: solid #348eda;
    border-width: 10px 20px;
    line-height: 2em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    display: inline-block;
    border-radius: 5px;
    text-transform: capitalize;
}

/* Notification Email Styles */
.email-notification-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.email-notification-header {
    text-align: center;
    margin-bottom: 30px;
}

.email-notification-title {
    color: #333;
    margin: 0;
    font-size: 24px;
}

.email-notification-content {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}

.email-notification-subtitle {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.email-notification-text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.email-notification-cta {
    text-align: center;
    margin: 30px 0;
}

.email-notification-button {
    display: inline-block;
    background-color: #0d6efd;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
}

.email-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
}

.email-footer-text {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.email-footer-link {
    color: #0d6efd;
}

/* Billing Address Manage */
.billing-address-manage .box-address .card-body {
    height: 160px;
}

/* Transfer Lock Animation */
.lock-animation {
    transition: all 0.3s ease;
}

.lock-animation:hover {
    transform: scale(1.1);
}

/* Hover Shadow Effect */
.hover-shadow {
    transition: transform 0.2s, box-shadow 0.2s;
}

.hover-shadow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Search Results Compact */
.search-results-compact {
    width: 100%;
    box-sizing: border-box;
}

.search-results-compact table tbody tr:hover {
    background-color: #f8f9fa;
}

.search-results-compact .table-sm td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

/* Accordion Custom Styling */
.accordion-button:not(.collapsed) {
    background-color: rgba(73, 144, 167, 0.1);
    color: var(--pinuno-sky);
    font-weight: 500;
}

.accordion-button:focus {
    border-color: var(--pinuno-sky);
    box-shadow: 0 0 0 0.25rem rgba(73, 144, 167, 0.25);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234990A7'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* ======================================
   11.1 ADDITIONAL UTILITY CLASSES
   ====================================== */

/* Font Size Utilities - Replace inline style="font-size: Xrem;" */
.fs-icon-xs { font-size: 0.75rem !important; }
.fs-icon-sm { font-size: 1rem !important; }
.fs-icon-md { font-size: 1.5rem !important; }
.fs-icon-lg { font-size: 2rem !important; }
.fs-icon-xl { font-size: 2.5rem !important; }
.fs-icon-xxl { font-size: 3rem !important; }
.fs-icon-huge { font-size: 4rem !important; }

/* Text Size Utilities */
.fs-text-xs { font-size: 0.75rem !important; }
.fs-text-sm { font-size: 0.8rem !important; }
.fs-text-md { font-size: 0.875rem !important; }

/* Icon Margin Utilities */
.icon-margin { margin-bottom: 1rem; }
.icon-margin-lg { margin-bottom: 3rem; }

/* Card Hover Effects */
.card-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Status Badge Utilities */
.badge-status-active { 
    background-color: var(--bs-success) !important;
    color: white !important;
}

.badge-status-pending { 
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

.badge-status-inactive { 
    background-color: var(--bs-secondary) !important;
    color: white !important;
}

.badge-status-danger { 
    background-color: var(--bs-danger) !important;
    color: white !important;
}

/* Pre-styled Code Blocks */
.code-block-sm {
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.75rem;
    background-color: var(--bs-light) !important;
    padding: 0.5rem;
    border-radius: var(--bs-border-radius);
}

/* Action Button Groups */
.action-buttons .btn {
    min-width: 120px;
    margin: 0.25rem;
}

/* Responsive Icon Sizes */
@media (max-width: 576px) {
    .fs-icon-responsive-lg { font-size: 1.5rem !important; }
    .fs-icon-responsive-xl { font-size: 2rem !important; }
}

@media (min-width: 577px) {
    .fs-icon-responsive-lg { font-size: 2rem !important; }
    .fs-icon-responsive-xl { font-size: 2.5rem !important; }
}

/* Support Page Specific */
.support-icon-container {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Dashboard Card Icons */
.dashboard-metric-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dashboard-mini-icon {
    font-size: 1.5rem;
}

.dashboard-tiny-icon {
    font-size: 0.75rem;
}

/* Login Form Icons */
.login-header-icon {
    font-size: 2.5rem;
}

/* DNS Management Icons */
.dns-large-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dns-action-icon {
    font-size: 2rem;
}

/* Improved Button Variants with Bootstrap Colors */
.btn-action-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

.btn-action-success {
    background-color: var(--bs-success);
    border-color: var(--bs-success);
    color: white;
}

.btn-action-warning {
    background-color: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-dark);
}

.btn-action-danger {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
    color: white;
}

/* Consistent spacing for common layouts */
.content-spacing { margin: 1rem 0; }
.content-spacing-lg { margin: 2rem 0; }

/* Better focus indicators */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Icon Circle Utilities for Auth Forms */
.icon-circle-sm {
    width: 64px; 
    height: 64px;
}

.icon-circle-md {
    width: 80px; 
    height: 80px;
}

/* Login Form Specific Icon Background */
.login-icon-circle {
    width: 80px; 
    height: 80px;
    background: linear-gradient(135deg, var(--pinuno-sky) 0%, var(--pinuno-teal) 100%);
}

/* Login page two-panel layout */
@media (min-width: 992px) {
    .rounded-lg-end-4 {
        border-radius: 0 var(--bs-border-radius-xl) var(--bs-border-radius-xl) 0 !important;
    }
    .rounded-lg-start-0 {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }
    .rounded-start-4 {
        border-radius: var(--bs-border-radius-xl) 0 0 var(--bs-border-radius-xl) !important;
    }
}

/* Bootstrap Icons Spin Animation (replaces FontAwesome fa-spin) */
.bi-spin {
    animation: bi-spin 1s linear infinite;
}

@keyframes bi-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ======================================
   11.2 LAYOUT FIXES & SCROLLBAR IMPROVEMENTS
   ====================================== */

/* Ensure main content doesn't cause horizontal scroll */
/* Note: .content-wrapper also defined in admin.css for admin layouts */
body:not(.container-fluid) .content-wrapper {
    flex: 1;
    padding: 2rem;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
}

/* Fix tables that might cause overflow */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Ensure wide content doesn't break layout */
.card {
    overflow: visible;
    max-width: 100%;
}

.card-body {
    overflow-x: hidden;
}

/* Fix admin layout scrollbar issues */
/* Note: .main-sidebar primary definition in admin.css for admin layouts */
.main-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Prevent content section from having middle scrollbars */
body:not(.container-fluid) .content {
    overflow-x: hidden;
    max-width: 100%;
}

/* Fix error page layout */
.error-page {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix DNS module tables */
.dns-index .table-responsive,
.ddns-index .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Ensure buttons don't break on small screens */
.btn-toolbar {
    flex-wrap: wrap;
}

.btn-group {
    flex-wrap: wrap;
}

/* Fix for wide content that might cause scrollbar in middle */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent any child elements from causing horizontal overflow */
* {
    max-width: 100%;
}

/* Exception for elements that should overflow (like tables) */
.table,
.table-responsive,
.dropdown-menu,
.modal {
    max-width: none;
}

/* Mobile responsive fixes for utilities */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
}

/* ======================================
   13. MOBILE RESPONSIVENESS
   ====================================== */

/* Touch-friendly sizing - Tablets & large phones */
@media (max-width: 991.98px) {
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 0.625rem 1rem;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.5rem 0.75rem;
    }

    .btn-lg {
        min-height: 52px;
        padding: 0.875rem 1.5rem;
    }

    /* Form controls */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    /* Checkboxes and radios */
    .form-check-input {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Table responsive */
    .table-responsive {
        margin: 0 -0.75rem;
    }

    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }

    /* Service cards on mobile */
    .service-card:hover {
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08) !important;
    }

    /* Hero section mobile adjustments */
    .hero-section {
        padding: 2rem 1rem;
        height: auto;
        min-height: calc(100vh - 56px);
    }

    .hero-section h1 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
        margin-bottom: 1rem !important;
    }

    .hero-section p {
        font-size: clamp(0.875rem, 2vw, 1.125rem);
        margin-bottom: 1.5rem !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Navigation improvements */
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    /* Search form mobile */
    .hero-section .input-group {
        max-width: 95%;
        flex-direction: column;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
        border-radius: 1.5rem;
        background: #ffffff;
        backdrop-filter: blur(20px);
        border: 4px solid #ffffff;
        overflow: hidden;
        transform: translateZ(0);
        gap: 0 !important;
    }

    /* Reset border-radius for children on mobile to get rounded top/bottom */
    .hero-section .input-group > * {
        border-radius: 0 !important;
    }

    /* Dark container background for mobile */
    .hero-section .input-group::after {
        content: '';
        position: absolute;
        top: -15px;
        left: -15px;
        right: -15px;
        bottom: -15px;
        background: rgba(15, 23, 42, 0.95);
        border-radius: 1.75rem;
        z-index: -2;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    }

    .hero-section .input-group .form-control {
        border-radius: 1.5rem 1.5rem 0 0 !important;
        margin-bottom: 0;
        z-index: 1;
        background: #ffffff !important;
        color: #0f172a !important;
        font-weight: 700;
        border: none !important;
        box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15) !important;
        padding: 1.25rem 1.25rem;
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .hero-section .input-group .form-control::placeholder {
        color: #334155 !important;
        opacity: 1;
        font-weight: 600;
    }

    .hero-section .input-group .form-control:focus {
        background: #ffffff !important;
        box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(59, 130, 246, 0.4) !important;
        color: #0f172a !important;
        transform: scale(1.02);
    }

    .hero-section .input-group .btn {
        border-radius: 0 0 1.5rem 1.5rem !important;
        margin-top: -1px;
        z-index: 2;
        background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
        border: none !important;
        color: #ffffff !important;
        font-weight: 800;
        padding: 1.25rem 1.25rem;
        transition: all 0.4s ease;
        box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .hero-section .input-group .btn:hover,
    .hero-section .input-group .btn:active {
        background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 12px 25px rgba(99, 102, 241, 0.7);
    }

    /* TLD badges mobile spacing */
    .hero-section .badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin: 0.125rem;
    }
}

/* Additional responsive improvements */
@media (max-width: 767.98px) {
    /* Card adjustments */
    .card-body {
        padding: 0.875rem;
    }

    /* Table font size */
    .table {
        font-size: 0.875rem;
    }

    /* Stack action buttons */
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

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

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

    /* Page title */
    .page-title {
        font-size: 1.5rem;
    }

    /* Breadcrumbs */
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .breadcrumb-item {
        white-space: nowrap;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    /* Navigation logout button */
    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }

    /* Footer responsive improvements */
    body:not(.container-fluid) .footer ul {
        justify-content: center !important;
        gap: 1rem 0.5rem !important;
    }

    body:not(.container-fluid) .footer .row {
        text-align: center;
    }

    body:not(.container-fluid) .footer .col-md-6:first-child {
        margin-bottom: 0.75rem;
    }

    /* Alert responsive */
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .alert .btn-close {
        font-size: 0.75rem;
        padding: 0.375rem;
    }

    /* Form labels mobile */
    .form-label {
        font-weight: 600;
        margin-bottom: 0.375rem;
    }

    /* Improve button spacing */
    .btn + .btn {
        margin-top: 0.5rem;
    }

    /* Better input focus */
    .form-control:focus,
    .form-select:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
        border-color: #86b7fe;
    }
}

/* Portrait phones & extra small devices */
@media (max-width: 575.98px) {
    /* Even larger touch targets */
    .btn {
        min-height: 48px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* Full-width form controls */
    .form-control,
    .form-select {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }

    /* Hero section small mobile */
    .hero-section {
        padding: 1.5rem 0.75rem;
        text-align: center;
    }

    .hero-section h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        margin-bottom: 0.75rem !important;
        line-height: 1.2;
    }

    .hero-section h1 i {
        font-size: 0.8em;
        margin-right: 0.25rem;
    }

    .hero-section p.lead {
        font-size: clamp(0.8rem, 3vw, 1rem) !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.4;
        padding: 0 1rem;
    }

    /* Search form mobile optimization */
    .hero-section .input-group {
        max-width: 100%;
        margin: 0 auto;
        flex-direction: column;
        background: #ffffff !important;
        border: 3px solid #ffffff !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 2px #ffffff !important;
        border-radius: 1rem !important;
    }

    .hero-section .input-group .form-control {
        font-size: 1rem;
        padding: 1rem 1rem;
        text-align: center;
        border-radius: 1rem 1rem 0 0 !important;
        background: #ffffff !important;
        color: #1a202c !important;
        font-weight: 600;
        border: none !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .hero-section .input-group .form-control::placeholder {
        color: #4a5568 !important;
        font-weight: 500;
        opacity: 1;
    }

    .hero-section .input-group .form-control:focus {
        background: #ffffff !important;
        color: #1a202c !important;
        box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    }

    .hero-section .input-group .btn {
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
        border-radius: 0 0 1rem 1rem !important;
        margin-top: -1px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
        color: #ffffff !important;
        font-weight: 700;
        border: none !important;
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }

    /* TLD badges responsive */
    .hero-section .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        margin: 0.125rem 0.25rem;
        display: inline-block;
    }

    /* Support text mobile */
    .hero-section p.small {
        font-size: 0.75rem !important;
        margin-top: 1rem !important;
        padding: 0 1rem;
    }

    /* Stack inline forms */
    .input-group:not(.hero-section .input-group) {
        flex-wrap: wrap;
    }

    .input-group:not(.hero-section .input-group) > .form-control {
        flex: 1 0 100%;
        margin-bottom: 0.5rem;
    }

    .input-group:not(.hero-section .input-group) > .btn {
        flex: 1 0 100%;
    }

    /* Single column stats */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Compact card */
    .card-body {
        padding: 0.75rem;
    }

    /* Page title */
    .page-title {
        font-size: 1.25rem;
    }

    /* Hide breadcrumb text, show icons */
    .breadcrumb-item a {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Container padding adjustment */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Navigation mobile improvements */
    .navbar-collapse {
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .navbar-nav .btn {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
    }
}

/* Admin sidebar mobile */
@media (max-width: 991.98px) {
    .main-sidebar {
        transform: translateX(-250px);
        transition: transform 0.3s ease-in-out;
    }

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

    .sidebar-open .content-wrapper {
        margin-left: 0;
    }

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

    /* Navbar adjustments */
    .navbar-custom-menu .nav {
        gap: 0.5rem !important;
    }

    .navbar-custom-menu .nav-link span {
        display: none;
    }

    .navbar-custom-menu .nav-link i {
        font-size: 1.25rem;
    }

    /* Global search - compact on mobile */
    .navbar-search-wrapper {
        max-width: 200px !important;
    }
}

/* Touch feedback */
@media (hover: none) and (pointer: coarse) {
    .btn:active,
    .card:active,
    .list-group-item:active {
        opacity: 0.8;
        transform: scale(0.98);
        transition: all 0.1s ease;
    }

    /* Larger dropdown arrows */
    .dropdown-toggle::after {
        font-size: 1rem;
    }

    /* Larger close buttons */
    .btn-close {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* Safe area insets for notched devices */
@supports (padding: max(0px)) {
    body:not(.container-fluid) .main-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .modal-body {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* ======================================
   14. PRINT STYLES
   ====================================== */

@media print {
    .sidebar-toggle,
    .bottom-nav,
    .fab {
        display: none !important;
    }
}

/* ======================================
   15. FAQ PAGE STYLES
   ====================================== */

.hover-bg:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--pinuno-sky);
    font-weight: 600;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.15rem rgba(73, 144, 167, 0.25);
    border-color: var(--pinuno-sky);
}

.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    border-radius: 0.375rem;
    font-weight: 500;
}

html {
    scroll-behavior: smooth;
}

#backToTop {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* ======================================
   16. SEARCH RESULTS COMPACT STYLES
   ====================================== */

#results-selection-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.results-grid-header {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 80px 120px 100px;
    gap: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    padding: 12px 12px;
    align-items: center;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.results-grid-header-cell {
    padding: 0 8px;
    text-align: left;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-grid-header-cell.country-header,
.results-grid-header-cell.status-header {
    text-align: center;
}

.results-grid-header-cell:last-child {
    text-align: right;
}

.results-grid-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 8px 8px;
    border-top: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.domain-row {
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 80px 120px 100px;
    gap: 0;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    background-color: transparent;
    transition: all 0.15s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.domain-row:hover {
    background-color: #f0f4ff;
    border-left-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.domain-row.clickable-row:hover {
    background-color: #eff4ff;
    border-left-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

.domain-row.timed-out,
.domain-row.in-cart {
    cursor: default;
}

.domain-row.timed-out:hover,
.domain-row.in-cart:hover {
    background-color: inherit;
    border-left-color: inherit;
    box-shadow: none;
}

.domain-row.in-cart {
    background-color: #f0fdf4;
    border-left-color: #22c55e;
}

.domain-row.in-cart:hover {
    background-color: #dcfce7 !important;
    border-left-color: #22c55e !important;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15) !important;
}

.domain-row.timed-out {
    background-color: #f3f4f6;
    border-left-color: #6b7280;
    opacity: 0.7;
}

.domain-row-cell {
    padding: 0 8px;
    font-size: 0.875rem;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.domain-row-cell:first-child {
    overflow: visible;
    white-space: normal;
    word-break: break-word;
}

.domain-row-cell.country-cell {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.08);
    border-radius: 4px;
    padding: 4px 8px;
    white-space: normal;
    overflow: visible;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.domain-row-cell.status-cell {
    text-align: center;
}

.domain-row.clickable-row {
    background-color: #f8fbff;
    border: 1px solid #dde8f7;
    cursor: pointer;
}

.domain-row.clickable-row:hover {
    background-color: #eff4ff;
    border-left-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2), inset 0 0 0 1px rgba(13, 110, 253, 0.1);
}

.domain-row.clickable-row:active {
    background-color: #e8efff;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.25), inset 0 0 0 1px rgba(13, 110, 253, 0.15);
}

/* Additional mobile optimizations for smallest screens */
@media (max-width: 480px) {
    /* Hero adjustments for very small screens */
    .hero-section {
        padding: 1rem 0.5rem;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section p.lead {
        font-size: 0.875rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.3;
    }

    /* Search form very small screens */
    .hero-section .input-group .form-control {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
        background: rgba(255, 255, 255, 0.98) !important;
        color: #333 !important;
        font-weight: 500;
        border: none !important;
        border-radius: 0.75rem 0.75rem 0 0 !important;
    }

    .hero-section .input-group .form-control::placeholder {
        color: #6b7280 !important;
        font-size: 0.9rem;
    }

    .hero-section .input-group .btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.95rem;
        background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
        color: white !important;
        font-weight: 600;
        border: none !important;
        border-radius: 0 0 0.75rem 0.75rem !important;
    }

    /* TLD badges compact */
    .hero-section .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.375rem;
        margin: 0.125rem;
    }

    /* Container very narrow */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Card minimal padding */
    .card-body {
        padding: 0.5rem;
    }

    /* Button improvements */
    .btn {
        font-size: 0.875rem;
    }

    .btn-sm {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Hover improvements for touch devices */
@media (hover: hover) and (pointer: fine) {
    .hero-section .input-group .btn:hover {
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 20px 40px rgba(99, 102, 241, 0.7);
        background: linear-gradient(135deg, #1d4ed8, #4f46e5) !important;
    }

    .hero-section .input-group:hover {
        box-shadow: 0 35px 70px rgba(0, 0, 0, 0.7);
        transform: translateY(-3px) scale(1.02);
    }

    .hero-section .input-group:hover::after {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
        background: rgba(15, 23, 42, 1);
    }

    .hero-section .input-group .form-control:hover {
        background: #ffffff !important;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.18) !important;
        transform: scale(1.01);
    }

    .badge:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    .results-grid-header {
        grid-template-columns: 1fr 60px 100px 80px;
    }
    
    .domain-row {
        grid-template-columns: 1fr 60px 100px 80px;
    }
}

@media (max-width: 768px) {
    /* Hide column headers — card layout is self-explanatory */
    .results-grid-header {
        display: none;
    }

    /* Card layout: 2 rows per domain result
     *  Row 1: [domain name .......] [status icon]
     *  Row 2: [price              ] [add button ]
     */
    .domain-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        grid-template-areas:
            "domain status"
            "price  action";
        row-gap: 4px;
        padding: 10px 12px;
        border-left-width: 4px;
    }

    /* Assign each cell to its grid area */
    .domain-row-cell:nth-child(1) { /* domain name */
        grid-area: domain;
        font-size: 0.925rem;
        font-weight: 700;
        padding: 0;
        white-space: normal;
        word-break: break-all;
    }

    .domain-row-cell.country-cell,
    .results-grid-header-cell.country-header {
        display: none; /* country column not needed on mobile */
    }

    .domain-row-cell.status-cell { /* status badge / icon */
        grid-area: status;
        padding: 0 0 0 8px;
        text-align: right;
        align-self: start;
    }

    .domain-row-cell:nth-child(4) { /* price */
        grid-area: price;
        padding: 0;
        font-size: 1rem;
        font-weight: 700;
        align-self: center;
    }

    .domain-row-cell:nth-child(5) { /* action button */
        grid-area: action;
        padding: 0 0 0 8px;
        text-align: right;
        align-self: center;
    }

    /* Make add-to-cart button full-width feel on mobile */
    .domain-row-cell:nth-child(5) .add-to-cart-btn {
        min-width: 72px;
        justify-content: center;
    }

    /* Show Add text on mobile (was d-none d-sm-inline) */
    .domain-row-cell:nth-child(5) .add-to-cart-btn .d-none {
        display: inline !important;
    }

    /* Slightly larger results body padding */
    .results-grid-body {
        gap: 6px;
        padding: 10px;
    }
}

/* ==========================
   14. WIDGET MANAGEMENT
   ========================== */

/* Zoho SalesIQ Widget - ensure it doesn't interfere with navbar */
#Zoho_SalesIQ,
.zohosalesiq,
[data-zohosalesiq],
.zoho-sales-iq-container {
    z-index: 9999 !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
}

/* Hide Zoho widget from navbar dropdown */
header #Zoho_SalesIQ,
header .zohosalesiq,
.navbar-collapse [id*="zoho"],
.navbar [id*="zoho"],
.navbar [class*="zoho"] {
    display: none !important;
}

/* Chat widget positioning */
iframe[id*="zoho"],
iframe[data-zoho] {
    z-index: 10000 !important;
}

/* Cookie Banner - full-width bottom strip */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e1b2e;
    color: #f1f5f9;
    padding: 16px 24px;
    z-index: 9999;
    border-top: 2px solid #6d28d9;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1;
}
.cookie-banner-text {
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
    min-width: 220px;
}
.cookie-banner-link {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    margin-left: 4px;
}
.cookie-banner-link:hover {
    color: #c4b5fd;
}
.cookie-banner-btn {
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    transition: background 0.15s;
}
.cookie-banner-btn:hover {
    background: #6d28d9;
}
@media (max-width: 767.98px) {
    #cookie-banner {
        padding: 14px 16px;
    }
    .cookie-banner-inner {
        gap: 12px;
    }
    .cookie-banner-icon {
        display: none;
    }
}
@media (max-width: 575.98px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cookie-banner-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ==========================
   CART PAGE RESPONSIVE STYLES
   ========================== */

/* Desktop: Table display */
@media (min-width: 576px) {
    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table tbody tr {
        border-bottom: 1px solid #e5e7eb;
    }

    .cart-table tbody tr:hover {
        background-color: #f3f4f6;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.5rem 0.4rem;
    }

    .cart-table thead th {
        padding: 0.6rem 0.4rem;
    }

    /* Reduce card padding on cart view */
    .card-body {
        padding: 0.75rem;
    }

    .card-header {
        padding: 0.5rem 0.75rem;
    }

    /* Additional cart compaction */
    .cart-table {
        line-height: 1.3;
    }

    .cart-table tbody td {
        line-height: 1.2;
    }

    .cart-table tbody td > div {
        margin: 0;
    }

    .cart-table tbody td .badge {
        white-space: nowrap;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    /* Order summary compaction */
    .order-summary-table {
        font-size: 0.9rem;
    }

    .order-summary-table td {
        padding: 0.4rem 0;
    }
}

/* Mobile: Card-based layout (max 575px) */
@media (max-width: 575.98px) {
    /* Table wrapper - full width */
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    /* Strip Bootstrap table styles */
    .cart-table.table {
        border-collapse: initial !important;
        border-color: transparent !important;
        margin-bottom: 0 !important;
    }

    /* Hide entire table header */
    .cart-table thead,
    .cart-table thead.table-light {
        display: none !important;
    }

    /* Strip table body styles */
    .cart-table tbody {
        display: block !important;
        border-bottom: none !important;
    }

    /* Compact card styling for each row */
    .cart-table tbody tr {
        display: grid !important;
        grid-template-columns: 1fr auto auto !important;
        grid-template-rows: auto auto auto !important;
        gap: 0.3rem !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 3px !important;
        margin-bottom: 0.35rem !important;
        padding: 0.35rem !important;
        background-color: #ffffff !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        align-items: flex-start !important;
    }

    /* Hover effect on cards */
    .cart-table tbody tr:hover {
        background-color: #ffffff !important;
        border-color: #d1d5db !important;
    }

    /* All cells as blocks with minimal spacing */
    .cart-table tbody td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: left !important;
        background-color: transparent !important;
        vertical-align: top !important;
    }

    /* =========================================
       CELL-SPECIFIC STYLING
       ========================================= */

    /* Domain cell (1st) - takes first column and spans */
    .cart-table tbody td:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 / 3 !important;
    }

    .cart-table tbody td:nth-child(1) strong {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        color: #111827;
        line-height: 1.1;
        margin: 0;
    }

    .cart-table tbody td:nth-child(1) .text-muted {
        display: block;
        font-size: 0.65rem;
        color: #6b7280;
        margin-top: 0.04rem;
        line-height: 1;
    }

    .cart-table tbody td:nth-child(1) div {
        margin: 0;
    }

    /* Type cell (2nd) - badge top right */
    .cart-table tbody td:nth-child(2) {
        grid-column: 2 / 4 !important;
        grid-row: 1 !important;
        text-align: right !important;
    }

    .cart-table tbody td:nth-child(2).d-none {
        display: block !important;
    }

    .cart-table tbody td:nth-child(2).d-sm-table-cell {
        display: block !important;
    }

    .cart-table tbody td:nth-child(2) .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
        display: inline-block;
        white-space: nowrap;
        line-height: 1;
    }

    /* Price cell (3rd) - show on mobile */
    .cart-table tbody td:nth-child(3) {
        display: block !important;
        grid-column: 2 !important;
        grid-row: 2 !important;
        font-weight: 600;
        font-size: 0.75rem;
        color: #1f2937;
        text-align: left !important;
        padding: 0 !important;
    }

    /* Tax cell (4th) - bottom right, next to price */
    .cart-table tbody td:nth-child(4) {
        grid-column: 3 !important;
        grid-row: 2 !important;
        font-weight: 600;
        font-size: 0.8rem;
        color: #dc2626;
        text-align: right !important;
    }

    /* Remove button cell (5th) - hidden by default on mobile, only shown when row selected */
    .cart-table tbody td:nth-child(5) {
        display: none !important;
    }

    /* Show remove button only when row is active */
    .cart-table tbody tr.row-active td:nth-child(5) {
        display: block !important;
        grid-column: 1 / 4 !important;
        grid-row: 3 !important;
        padding: 0.3rem 0 0 0 !important;
        margin: 0 !important;
        border: none !important;
        text-align: center !important;
        margin-top: 0.35rem !important;
        padding-top: 0.35rem !important;
        border-top: 1px solid rgba(2, 132, 199, 0.2) !important;
    }

    .cart-table .btn-sm {
        width: 100% !important;
        padding: 0.35rem 0.5rem !important;
        min-height: 28px !important;
        font-size: 0.75rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
        border-radius: 3px !important;
    }

    .cart-table .btn-sm i {
        font-size: 0.9rem;
    }

    .cart-table .btn-sm i + span {
        flex: 1;
    }

    /* Highlight row when clicked to make remove button obvious - modernized design */
    .cart-table tbody tr.row-active {
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
        border: 2px solid #0284c7 !important;
        border-radius: 6px !important;
        box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Domain name text - clearer and more prominent */
    .cart-table tbody tr.row-active td:nth-child(1) strong {
        color: #0c4a6e !important;
        font-size: 0.95rem !important;
    }

    /* Type badge - more visible when selected */
    .cart-table tbody tr.row-active td:nth-child(2) .badge {
        background-color: #0284c7 !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 0.7rem !important;
        padding: 0.35rem 0.5rem !important;
    }

    /* Price - highlighted when row active */
    .cart-table tbody tr.row-active td:nth-child(3) {
        color: #0284c7 !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
    }

    /* Tax/price - highlighted */
    .cart-table tbody tr.row-active td:nth-child(4) {
        color: #0284c7 !important;
        font-weight: 700 !important;
        font-size: 0.85rem !important;
    }

    /* Remove button container - modernized */
    .cart-table tbody tr.row-active td:nth-child(5) {
        display: block !important;
        grid-column: 1 / 4 !important;
        padding: 0.4rem 0 0 0 !important;
        margin-top: 0.35rem !important;
        border-top: 1px solid rgba(2, 132, 199, 0.2) !important;
        padding-top: 0.4rem !important;
    }

    /* Remove button - modern red with hover effect */
    .cart-table tbody tr.row-active .btn-sm {
        background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
        border: none !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 32px !important;
        box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25) !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    /* Show remove button text on mobile when row is active */
    .cart-table tbody tr.row-active .btn-sm span {
        display: inline !important;
    }

    .cart-table tbody tr.row-active .btn-sm:hover {
        background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4) !important;
        transform: translateY(-1px) !important;
    }

    /* Compact card headers for mobile */
    .card-header {
        padding: 0.3rem 0.5rem !important;
    }

    .card-header h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        font-weight: 600;
        line-height: 1.15;
    }

    .card-header small {
        font-size: 0.6rem !important;
        margin-top: 0.05rem !important;
        line-height: 1;
    }

    /* Compact card bodies for mobile */
    .card-body {
        padding: 0.5rem !important;
    }

    .card-body .form-label {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }

    .card-body .form-control {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.5rem !important;
    }

    /* Compact checkout form buttons on mobile */
    .card-body .btn-primary,
    .card-body .btn-outline-light {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.75rem !important;
        min-height: 32px !important;
    }

    .card-body .d-grid > .btn {
        min-height: 36px !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Reduce card spacing on mobile */
    .card {
        margin-bottom: 0.5rem !important;
        border-radius: 0.375rem !important;
    }

    /* Compact Order Summary table */
    .order-summary-table {
        font-size: 0.85rem;
    }

    .order-summary-table td {
        padding: 0.25rem 0.5rem !important;
        line-height: 1.2;
    }

    .order-summary-table .table-sm {
        margin-bottom: 0 !important;
    }

    /* Reduce card body padding on mobile */
    .card-body {
        padding: 0.5rem !important;
    }

    /* Compact form styling on mobile */
    .form-control, .input-group {
        margin-bottom: 0 !important;
    }

    .form-label {
        margin-bottom: 0.35rem !important;
        font-size: 0.85rem !important;
    }

    .input-group .form-control {
        height: auto !important;
        min-height: 36px !important;
    }

    .input-group-text {
        padding: 0.45rem 0.75rem !important;
    }

    .alert {
        margin-bottom: 0.75rem !important;
    }

    .d-grid .btn {
        min-height: 40px !important;
        font-weight: 500;
    }
}

/* Tablet: Optimize spacing */
@media (min-width: 576px) and (max-width: 991.98px) {
    .cart-table th,
    .cart-table td {
        padding: 0.75rem 0.5rem;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .btn-sm {
        white-space: nowrap;
    }

    /* Cart page - ultra compact for 5 items visibility */
    .row.g-4 {
        gap: 0.5rem !important;
    }

    .card {
        margin-bottom: 0.35rem !important;
        border-radius: 0.3rem !important;
    }

    .card-header {
        padding: 0.3rem 0.5rem !important;
    }

    .card-header h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0 !important;
        line-height: 1;
    }

    .card-header small {
        margin-top: 0.05rem !important;
        font-size: 0.6rem !important;
        line-height: 1;
    }

    .card-body {
        padding: 0.4rem !important;
    }

    /* Cart table ultra-compact */
    .cart-table tbody tr {
        gap: 0.3rem !important;
        margin-bottom: 0.5rem !important;
        padding: 0.5rem !important;
    }

    .cart-table tbody td {
        padding: 0.2rem !important;
        margin: 0 !important;
    }

    .cart-table tbody td:nth-child(1) strong {
        font-size: 0.85rem !important;
        line-height: 1.15;
    }

    .cart-table tbody td:nth-child(1) .text-muted {
        font-size: 0.65rem !important;
    }

    /* Order Summary ultra-compact */
    .order-summary-table {
        font-size: 0.8rem !important;
    }

    .order-summary-table td {
        padding: 0.15rem 0.3rem !important;
        line-height: 1.2;
    }

    .order-summary-table tr.border-top {
        border-top-width: 0.5px !important;
    }

    /* Remove button styling */
    .btn-outline-danger {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.7rem !important;
        min-height: 28px !important;
    }

    /* Checkout form compacted */
    .form-label {
        font-size: 0.8rem !important;
        margin-bottom: 0.2rem !important;
    }

    .form-text {
        font-size: 0.7rem !important;
        margin-top: 0.15rem !important;
    }

    .input-group {
        margin-bottom: 0.5rem !important;
    }

    .form-control,
    .input-group-text {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 35px !important;
    }

    .d-grid .btn {
        font-size: 0.9rem !important;
        padding: 0.55rem 0.5rem !important;
        min-height: 38px !important;
    }

    /* Hide Quick Actions card on all devices to save space */
    .card.d-none.d-lg-block {
        display: none !important;
    }

    /* =========================================
       PAYMENT PAGE - MOBILE COMPACTION
       ========================================= */

    /* Reduce spacing between cards on payment page */
    .card {
        margin-bottom: 0.5rem !important;
    }

    /* Compact card headers */
    .card-header {
        padding: 0.35rem 0.5rem !important;
    }

    .card-header h6 {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
        line-height: 1.3;
    }

    /* Compact card bodies on payment page */
    .card-body {
        padding: 0.35rem 0.5rem !important;
    }

    /* Order Details table - ultra compact */
    .card-body table {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }

    .card-body table thead th {
        padding: 0.25rem 0.3rem !important;
        font-size: 0.65rem !important;
        font-weight: 600;
        line-height: 1.2;
    }

    .card-body table tbody td {
        padding: 0.25rem 0.3rem !important;
        line-height: 1.15;
        vertical-align: middle;
    }

    /* Reduce table row padding */
    .card-body table tbody tr {
        border-bottom: 1px solid #f0f0f0;
    }

    /* Hide table cell label text (small text below domain) */
    .card-body table td small {
        display: none;
    }

    /* Order Items table styling */
    .order-items-table {
        font-size: 0.85rem !important;
    }

    .order-items-table thead th {
        padding: 0.5rem 0.5rem !important;
        font-size: 0.75rem !important;
        font-weight: 600;
    }

    .order-items-table tbody td {
        padding: 0.5rem 0.5rem !important;
        vertical-align: middle;
    }

    /* Compact Payment Method Card specifically */
    .card .card-header + .card-body {
        padding: 0.3rem 0.4rem !important;
    }

    /* Make PayPal button full width with minimal spacing */
    .card-body [class*="paypal"] {
        margin-bottom: 0.35rem !important;
    }

    /* Order Summary table - more compact */
    .order-summary-table,
    .table-borderless {
        margin-bottom: 0 !important;
    }

    .order-summary-table tr,
    .table-borderless tr {
        padding: 0 !important;
    }

    .order-summary-table td,
    .table-borderless td {
        padding: 0.2rem 0 !important;
        font-size: 0.8rem !important;
        border: none !important;
    }

    .order-summary-table tr.border-top {
        border-top: 1px solid #e5e7eb !important;
        padding-top: 0.25rem !important;
    }

    /* Reduce alert spacing */
    .alert {
        padding: 0.5rem 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .alert-icon {
        font-size: 0.9rem;
        line-height: 1;
    }

    /* Customer info - minimal style */
    .card-body p.mb-0 {
        margin-bottom: 0 !important;
        font-size: 0.8rem !important;
    }

    /* Secure payment text - minimal */
    .card-body .text-center small {
        font-size: 0.65rem !important;
        display: block;
        margin-top: 0.25rem !important;
    }

    /* Row gutters - reduce spacing */
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0;
    }

    /* Single column layout on mobile - ensure payment visible */
    @media (max-width: 991.98px) {
        .row.g-4 > * {
            flex: 0 0 100%;
            max-width: 100%;
        }

        /* Ensure payment column doesn't push below fold */
        .col-lg-8,
        .col-lg-4 {
            margin-bottom: 0;
        }
    }
}

/* ============================================
   Form Validation Styles
   ============================================ */

/* Invalid input styling - Bootstrap 5 */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Error message styling - Bootstrap 5 */
/* Only show invalid-feedback when it has content (not empty) */
.invalid-feedback:not(:empty) {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc3545;
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.375rem;
}

/* Also show when field has is-invalid class (Bootstrap 5 validation) */
.is-invalid ~ .invalid-feedback,
.was-validated :invalid ~ .invalid-feedback {
    display: block;
}

.invalid-feedback:not(:empty)::before {
    content: "\F33A"; /* Bootstrap Icons exclamation-circle */
    font-family: "bootstrap-icons";
    margin-right: 0.5rem;
    font-weight: normal;
}

/* Yii2 legacy error styling (has-error class on field wrapper) */
.has-error .form-control,
.has-error .form-select {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    background-color: #fff5f5;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Yii2 legacy error styling - only show when parent has has-error class AND help-block has content */
.has-error .help-block:not(:empty) {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #dc3545;
    background-color: #fff5f5;
    border: 1px solid #f5c6cb;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.375rem;
}

.has-error .help-block:not(:empty)::before {
    content: "\F33A"; /* Bootstrap Icons exclamation-circle */
    font-family: "bootstrap-icons";
    margin-right: 0.5rem;
    font-weight: normal;
}

/* Valid input styling */
.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-color: #f8fff8;
}

.valid-feedback {
    color: #198754;
    font-size: 0.875rem;
}

/* Form field group with error - add shake animation */
.field-has-error {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Error summary box (displays at top of form) */
.error-summary {
    background-color: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.error-summary p {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.error-summary ul {
    margin: 0;
    padding-left: 1.25rem;
}

.error-summary ul li {
    color: #842029;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Required field indicator */
.required label::after {
    content: " *";
    color: #dc3545;
    font-weight: 600;
}

/* Smooth transition for validation state changes */
.form-control,
.form-select {
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}


