/* Custom styles for Hosting Billing System - Fixed Version */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Sticky footer styles */
html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Simplified footer for cart page */
.footer-simple {
    padding: 1.5rem 0;
    background-color: var(--dark-color);
    color: white;
}

/* General styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --info-color: #2196f3;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--dark-color);
}

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

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

/* Card styles */
.card {
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
}

/* Pricing cards */
.pricing-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    background: linear-gradient(90deg, rgba(58, 12, 163, 0.18), rgba(67, 97, 238, 0.12));
    background-color: #fff;
    height: 100%;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(67, 97, 238, 0.03), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

/* High-contrast styling for cart 'Check Availability' button */
#checkDomainBtn {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.12);
    border: none !important;
}

#checkDomainBtn:hover,
#checkDomainBtn:focus {
    background: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
    color: #fff !important;
}

#checkDomainBtn:active {
    box-shadow: none !important;
    transform: translateY(0);
}

/* Ensure the button text remains legible when disabled */
#checkDomainBtn[disabled] {
    background: rgba(67, 97, 238, 0.6) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.pricing-card:hover::before {
    height: 100%;
}

.pricing-card .card-body {
    padding: 1.5rem;
    text-align: left;
}

.pricing-card .card-header {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-bottom: none;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #4361ee;
}

.pricing-card:nth-child(1) .card-header::before {
    background-color: #3a86ff;
}

.pricing-card:nth-child(3) .card-header::before {
    background-color: #8338ec;
}

.pricing-card .card-footer {
    padding: 1.25rem;
    background: transparent;
    border-top: none;
    text-align: center;
}

.pricing-card .popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 0 12px 0 12px;
    box-shadow: 0 4px 12px rgba(255, 65, 108, 0.3);
    z-index: 3;
    transition: all 0.3s ease;
}

.pricing-card:hover .popular-badge {
    padding-right: 20px;
    padding-top: 10px;
}

.pricing-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    text-align: center;
    position: relative;
    display: inline-block;
}

.pricing-card .plan-type {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-card.featured .plan-type {
    color: rgba(255, 255, 255, 0.8);
}

.card-price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4361ee;
    display: inline-block;
    text-align: center;
    width: 100%;
    position: relative;
}

.card-price::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4361ee, transparent);
    border-radius: 2px;
}

.card-price small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-color);
    margin-left: 5px;
}

.pricing-card.featured .card-price {
    color: #4361ee;
    text-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

.pricing-card.featured .card-price::before {
    background: linear-gradient(90deg, #4361ee, #3a0ca3);
    width: 60px;
}

.pricing-card .price-wrapper {
    margin-bottom: 1.5rem;
    text-align: center;
    width: 100%;
    position: relative;
    height: 4rem;
}

.price-monthly,
.price-yearly {
    transition: opacity 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.price-yearly {
    opacity: 0;
}

.pricing-card .price-description {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-card .list-group {
    margin: 1.5rem 0;
}

.pricing-card .list-group-item {
    padding: 0.6rem 0;
    border: none;
    background: transparent;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.pricing-card .list-group-item:hover {
    background-color: rgba(67, 97, 238, 0.03);
    padding-left: 5px;
}

.pricing-card .list-group-item i {
    color: #4361ee;
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: transform 0.2s ease;
}

.pricing-card .list-group-item:hover i {
    transform: scale(1.1);
}

.pricing-card.featured .list-group-item i {
    color: #4361ee;
}

.pricing-card .btn {
    padding: 0.7rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.pricing-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.pricing-card .btn:hover::before {
    width: 100%;
}

.pricing-card .btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.2);
}

.pricing-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.pricing-card.featured .btn-primary {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    box-shadow: 0 4px 10px rgba(255, 65, 108, 0.3);
}

.pricing-card.featured .btn-primary:hover {
    box-shadow: 0 6px 15px rgba(255, 65, 108, 0.4);
}

.pricing-card.featured {
    border: none;
    box-shadow: 0 10px 30px rgba(67, 97, 238, 0.15);
    z-index: 2;
    transform: scale(1.02);
}

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

.pricing-card.featured .card-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1rem 2rem;
}

.pricing-card.featured .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF416C, #FF4B2B);
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.5);
}

.pricing-card.featured .card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: 0;
}

.pricing-card.featured .card-title {
    color: white;
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Compact pricing cards */
.pricing-card-compact {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
    background-color: #fff;
}

.pricing-card-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, rgba(67, 97, 238, 0.03), transparent);
    transition: height 0.3s ease;
    z-index: -1;
}

.pricing-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.pricing-card-compact:hover::before {
    height: 100%;
}

.pricing-card-compact .card-body {
    padding: 1rem;
    text-align: center;
}

.pricing-card-compact .card-header {
    text-align: center;
    padding: 1.25rem 1rem 0.75rem;
    border-bottom: none;
    background-color: #f8f9fa;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.pricing-card-compact .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4361ee;
}

.pricing-card-compact:nth-child(1) .card-header::before {
    background-color: #3a86ff;
}

.pricing-card-compact:nth-child(2) .card-header::before {
    background-color: #ff006e;
}

.pricing-card-compact:nth-child(3) .card-header::before {
    background-color: #8338ec;
}

.pricing-card-compact:nth-child(4) .card-header::before {
    background-color: #fb5607;
}

.pricing-card-compact .card-footer {
    padding: 0.75rem;
    background: transparent;
    border-top: none;
    text-align: center;
}

.pricing-card-compact .popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 0 10px 0 10px;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.3);
    z-index: 3;
}

.pricing-card-compact .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

.pricing-card-compact .plan-type {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.pricing-card-compact .card-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #4361ee;
    display: inline-block;
    position: relative;
}

.pricing-card-compact .card-price small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-color);
}

.pricing-card-compact.featured .card-price {
    color: #4361ee;
    text-shadow: 0 1px 5px rgba(67, 97, 238, 0.2);
}

.pricing-card-compact .price-wrapper {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    height: 3rem;
}

.price-monthly,
.price-yearly {
    transition: opacity 0.3s ease;
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
}

.price-yearly {
    opacity: 0;
}

.pricing-card-compact .feature-list {
    margin: 0.5rem 0;
}

.pricing-card-compact .feature-list .list-group-item {
    padding: 0.4rem 0;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card-compact .feature-list .list-group-item i {
    color: #4361ee;
    margin-right: 0.5rem;
    font-size: 0.85rem;
    width: 16px;
    text-align: center;
}

.pricing-card-compact .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.pricing-card-compact .btn-primary {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border: none;
    box-shadow: 0 3px 8px rgba(67, 97, 238, 0.2);
}

.pricing-card-compact .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(67, 97, 238, 0.3);
}

.pricing-card-compact.featured {
    border: none;
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.15);
    z-index: 2;
    transform: scale(1.02);
}

.pricing-card-compact.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-card-compact.featured .card-header {
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    color: white;
}

.pricing-card-compact.featured .card-title,
.pricing-card-compact.featured .plan-type {
    color: white;
}

.pricing-card-compact.featured .btn-primary {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    box-shadow: 0 3px 8px rgba(255, 65, 108, 0.3);
}

.pricing-card-compact.featured .btn-primary:hover {
    box-shadow: 0 5px 12px rgba(255, 65, 108, 0.4);
}

/* Pricing toggle */
.pricing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

.pricing-toggle-switch {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pricing-toggle-option {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pricing-toggle-option.active {
    color: #4361ee;
    font-weight: 600;
}

.pricing-toggle-option .save-tag {
    position: absolute;
    top: -18px;
    right: -15px;
    background-color: #4CAF50;
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    white-space: nowrap;
}

.pricing-toggle-button {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pricing-toggle-button.active {
    background-color: #4361ee;
}

.pricing-toggle-button::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pricing-toggle-button.active::after {
    left: calc(100% - 23px);
}

/* Hide the actual checkbox */
.pricing-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Featured package */
.border-primary {
    border-top: 3px solid var(--primary-color) !important;
}

.card-header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Navigation */
.navbar {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1rem 0;
}

.navbar-dark {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
}

/* Dashboard sidebar */
.nav-link.active {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 0.25rem;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

/* Footer */
footer {
    margin-top: 3rem;
    padding: 2rem 0;
}

footer.bg-dark {
    background: linear-gradient(135deg, #212529, #343a40) !important;
}

footer a {
    color: rgba(255, 255, 255, 0.75);
    transition: var(--transition);
}

footer a:hover {
    color: #fff;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 50rem;
}

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

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

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

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

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

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    font-weight: 600;
    color: var(--dark-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.01);
}

.table td,
.table th {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.form-control {
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

/* Compact action buttons for invoice/order rows (higher specificity to override btn defaults) */
.btn.action-btn {
    border-radius: 0.6rem;
    padding: 0.42rem 0.6rem;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--light-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.01));
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-shadow: 0 2px 6px rgba(2, 6, 23, 0.06);
    position: relative;
    overflow: hidden;
}

.btn.action-btn i {
    font-size: 0.95rem;
    transition: transform 0.18s ease, color 0.18s ease;
    color: inherit !important;
}

.btn.action-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.08);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.btn.action-btn::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 60%;
    height: 180%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    transform: rotate(18deg) translateX(-70%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(.2, .9, .2, 1), opacity 0.45s ease;
    pointer-events: none;
}

.btn.action-btn:hover::after {
    transform: rotate(18deg) translateX(10%);
    opacity: 1;
}

.btn.action-btn:hover i {
    transform: translateY(-1px);
    transition: color 0.18s ease;
    color: inherit;
}

.btn.action-primary {
    border-color: rgba(67, 97, 238, 0.18);
    background: linear-gradient(90deg, rgba(67, 97, 238, 0.08), rgba(58, 12, 163, 0.04));
    color: #4361ee;
}

.btn.action-primary:hover {
    background: linear-gradient(90deg, rgba(58, 12, 163, 0.18), rgba(67, 97, 238, 0.12));
}

.btn.action-success {
    border-color: rgba(76, 201, 240, 0.12);
    background: linear-gradient(90deg, rgba(76, 201, 240, 0.06), rgba(76, 201, 240, 0.03));
    color: #28a745;
}

.btn.action-success:hover {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.22), rgba(40, 167, 69, 0.16));
    box-shadow: 0 6px 18px rgba(40, 167, 69, 0.12);
}

.btn.action-warning {
    border-color: rgba(245, 158, 11, 0.18);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.04));
    color: var(--warning-color);
}

.btn.action-warning:hover {
    background: linear-gradient(90deg, #ea580c, #d97706);
    border-color: rgba(234, 88, 12, 0.22);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.12);
}

.btn.action-outline {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.06);
    color: #6c757d;
}

.btn.action-outline:hover {
    border-color: rgba(67, 97, 238, 0.12);
    background: rgba(67, 97, 238, 0.04);
}

/* Ensure action buttons never change text/icon color on hover (override later styles) */
.btn.action-btn,
.btn.action-btn i,
.btn.action-btn * {
    color: inherit !important;
}

.btn.action-btn:hover,
.btn.action-primary:hover,
.btn.action-success:hover,
.btn.action-warning:hover,
.btn.action-outline:hover {
    color: inherit !important;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: var(--transition);
}

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

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

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

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

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

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
}

/* Dashboard cards */
.card .fa-2x,
.card .fa-3x {
    opacity: 0.8;
}

/* Avatar */
.rounded-circle {
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* List groups */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1.25rem;
}

.list-group-item i {
    color: var(--primary-color);
}

/* Tabs */
.nav-tabs .nav-link {
    border: none;
    color: var(--gray-color);
    font-weight: 500;
    padding: 0.75rem 1rem;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 1.5rem 0;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #f0f2f5;
    clip-path: ellipse(50% 50% at 50% 50%);
}

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

.hero-section h1 {
    font-weight: 700;
    color: #fff;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-section .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-section img {
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

/* Feature icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

/* Back to top button - consistent size and centering */
.back-to-top,
a.back-to-top,
button.back-to-top {
    /* Use highly-specific rules and !important to override other button styles */
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    /* rounded-square to match design */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1200 !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #fff !important;
    box-shadow: 0 12px 28px rgba(11, 17, 40, 0.24) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.3s ease !important;
    padding: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border: none !important;
    /* Hidden by default */
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show the button when it has the 'show' class */
.back-to-top.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.back-to-top:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 22px 36px rgba(11, 17, 40, 0.28) !important;
}

.back-to-top i,
a.back-to-top i,
button.back-to-top i {
    font-size: 22px !important;
    /* slightly larger arrow */
    line-height: 1 !important;
    display: block !important;
    transform: translateY(-1px);
    /* visually nudge arrow up for optical centering */
}

/* Testimonial cards */
.testimonial-card .card-body {
    position: relative;
}

.testimonial-card .card-body::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    font-family: serif;
    color: rgba(67, 97, 238, 0.1);
    z-index: 0;
}

/* Print styles for invoices */
@media print {

    .navbar,
    .footer,
    .sidebar,
    .btn,
    .nav {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-header {
        background-color: white !important;
        border-bottom: 1px solid #dee2e6 !important;
    }

    body {
        background-color: white !important;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .text-md-end {
        text-align: left !important;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .btn {
        padding: 0.4rem 0.8rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 1rem;
    }
}

/* Responsive adjustments for compact pricing cards */
@media (max-width: 992px) {
    .pricing-card-compact .card-price {
        font-size: 1.6rem;
    }

    .pricing-card-compact .feature-list .list-group-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .pricing-card-compact {
        margin-bottom: 1.5rem;
    }
}

/* Clean Footer Styles */
.clean-footer {
    background-color: #f8f9fa;
    padding: 3rem 0 1.5rem;
    color: #495057;
}

.clean-footer hr {
    margin: 2rem 0;
    opacity: 0.1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.footer-logo i {
    color: #4361ee;
}

.footer-about p {
    margin-bottom: 1.5rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: #4361ee;
    color: white;
}

.clean-footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: #212529;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #4361ee;
}

.footer-bottom {
    font-size: 0.9rem;
}

.payment-methods {
    font-size: 1.25rem;
    letter-spacing: 0.5rem;
    color: #adb5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clean-footer {
        padding: 2rem 0 1rem;
    }

    .clean-footer hr {
        margin: 1.5rem 0;
    }

    .payment-methods {
        margin-top: 1rem;
        text-align: left !important;
    }
}

/* Modern Domain Search Design */
.domain-search-modern {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.domain-search-box {
    margin-bottom: 2rem;
}

.search-input-wrapper {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.search-input-wrapper:focus-within {
    box-shadow: 0 6px 30px rgba(67, 97, 238, 0.15);
    border-color: #4361ee;
}

.domain-input {
    flex: 1;
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    color: #333;
    background: transparent;
    outline: none;
    font-weight: 400;
}

.domain-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.search-btn {
    background: #4361ee;
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #3651d4;
    transform: translateX(-2px);
}

.search-btn:active {
    transform: translateX(0);
}

/* Domain Pricing Tags */
.domain-pricing-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.pricing-tag .extension {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
}

.pricing-tag .price {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 16px;
    }

    .domain-input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .search-btn {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .domain-pricing-tags {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pricing-tag {
        flex: 0 0 calc(50% - 0.5rem);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .domain-search-modern {
        padding: 1rem 0.5rem;
    }

    .pricing-tag {
        flex: 0 0 100%;
    }

    .pricing-tag .extension {
        font-size: 1rem;
    }

    .pricing-tag .price {
        font-size: 0.95rem;
    }
}