/* ==========================================================================
   0. Nav / Footer Styles
   ========================================================================== */
/* --- Public Navigation --- */
.public-nav {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: auto;
}

.public-nav .nav-link {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
}

.public-nav .nav-link:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* --- Public Logo --- */
.public-logo {
    height: 40px;
    width: auto;
    display: block;
}

/* --- Public Footer --- */
.public-footer {
    background-color: var(--primary-text);
    color: var(--neutral-white);
    margin-top: auto;
    padding: 40px 0;
}

.public-footer-content {
    text-align: center;
    width: 100%;
}

.public-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.public-footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
}

.public-footer-links a:hover {
    color: var(--neutral-white);
    text-decoration: underline;
}

/* ==========================================================================
   1. Hero Styles
   ========================================================================== */
.product-hero {
    position: relative;
    height: 500px;
    /* Static image URL defined in CSS for better separation */
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2073');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title-large {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--neutral-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
    color: var(--neutral-white);
}

.hero-section {
    background-color: #212529;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?q=80&w=2073');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-section p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.price-subtext {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.trust-bar {
    background-color: #f8f9fa;
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-outline-white {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-outline-white:hover {
    background: white;
    color: var(--primary-text);
    border-color: white;
}



/* ==========================================================================
   2. Features Styles
   ========================================================================== */
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: none; /* Cleaner look for SaaS features */
}

.feature-card:hover {
    border-color: var(--link-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.feature-icon {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-block {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-block:nth-child(even) {
    background-color: var(--secondary-bg);
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-block-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-block-content h2 {
    font-size: 2.25rem;
    color: var(--primary-text);
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-block-content p {
    font-size: 1.15rem; /* Slightly larger for readability */
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

/* Style the lists in Feature blocks to look like value props */
.feature-block-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-block-content li {
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    color: var(--primary-text);
    font-weight: 500;
}

/* Add a checkmark icon before each list item */
.feature-block-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color); /* Orange checkmark */
    font-weight: bold;
    font-size: 1.2rem;
}
/*
.feature-block-image {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}*/

.feature-block-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; /* Vertically center the image if it's shorter than text */
    justify-content: center;
}
/*
.feature-block-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}*/
.feature-block-image img {
    max-height: 500px; /* Prevent vertical images from becoming impossibly tall */
    width: auto;       /* Let width adjust naturally */
    max-width: 100%;   /* But don't overflow the container */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.features-header {
    background-color: var(--primary-text);
    color: var(--neutral-white);
    padding: 80px 20px;
    text-align: center;
}

.features-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--neutral-white);
}

.feature-detail-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.split-layout-content h2 {
    font-size: 2.5rem; /* Make it BIG */
    color: var(--primary-text);
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-list-detailed .item {
    margin-bottom: 30px; /* Space between items */
}

.feature-list-detailed h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 5px; /* TIGHTEN gap between Title and Text */
    display: flex; /* Aligns emoji/icon with text */
    align-items: center;
    gap: 10px;
}

.feature-list-detailed p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-left: 0; /* Align perfectly with title */
    margin-top: 0;  /* Prevent floating */
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 1em; /* Ensures it matches surrounding text size */
    color: var(--accent-color);
}

.bg-dark {
    background-color: var(--primary-text);
    color: white;
    padding: 80px 0;
    text-align: center; /* Forces the header to center */
}

.bg-dark .section-header-center h2,
.bg-dark .section-header-center p {
    color: white !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tech-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    text-align: left;

    background-color: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.tech-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tech-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 50px;
    margin-right: 15px;
}

/* Fix the Text area */
.tech-content h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0; /* Remove top margin, keep small bottom margin */
    line-height: 1.2;
}

.tech-content p {
    color: #ccc !important; /* Force light grey text */
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.section-compact {
    padding: 40px 0; /* Cut the default 80px in half */
}

/* ==========================================================================
   3. Pricing Styles
   ========================================================================== */
.pricing-header {
    background-color: transparent; /* Remove the dark grey background */
    color: var(--primary-text);    /* Keep text dark */
    padding: 20px 0;               /* Reduce padding (80px was too big for inside a card) */
    text-align: center;
    border-bottom: 1px solid #eee; /* Optional: Adds a subtle separator line */
    margin-bottom: 20px;
}

.pricing-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--neutral-white);
}

.pricing-header h3.card-title {
    color: var(--primary-text);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pricing-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: flex;            /* Use Flexbox for perfect centering */
    justify-content: center;  /* Centers the 3 cards in the middle of screen */
    flex-wrap: wrap;          /* Allows wrapping on mobile screens */
    gap: 30px;                /* Space between cards */

    /* Overlap Effect: Only keep this if your 'features-header' is dark/colored */
    margin-top: -50px;
    position: relative;
    z-index: 2;
    padding-bottom: 10px; /* Add space at bottom so cards don't touch footer */
}

/* --- Best Value Ribbon --- */
.pricing-card {
    /* 1. Sizing Constraints */
    flex: 1;              /* Grow to fill space */
    min-width: 300px;     /* Never get skinnier than this */
    max-width: 380px;     /* Never get wider than this */

    /* 2. Color Reset (Forces Dark Text on White Card) */
    --primary-text: #212529;
    background-color: #ffffff;
    color: var(--primary-text);

    /* 3. Layout */
    display: flex;
    flex-direction: column;
    height: auto;         /* Allow height to adjust to content */
    position: relative;   /* For Ribbon */
    overflow: hidden;     /* Clips Ribbon */
    padding: 30px;

    /* 4. Border/Shadow */
    border: 1px solid #e0e0e0;
    border-radius: 8px;   /* Softens the corners */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Subtle lift */
}

.best-value-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: var(--accent-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.coming-soon-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background-color: #6c757d; /* Grey/Blue */
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}
/*
.pricing-card {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    background-color: var(--neutral-white);
    transition: transform 0.2s, box-shadow 0.2s;
}
*/
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.pricing-header .amount {
    font-size: 3rem; /* Reduced from 4rem to fit $499.99 */
    letter-spacing: -1px;
    font-weight: 700;
    color: var(--primary-text);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.plan-price {
    margin: 20px 0;
    color: var(--primary-text);
}

.plan-features {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    text-align: left;
}

.plan-features li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: #555;
    line-height: 1.4;
}

.plan-features li::before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.plan-feature li.excluded {
    color: #ccc;
    text-decoration: line-through;
}

.plan-features li.excluded::before {
    content: '✕';
    color: #ccc;
    font-weight: normal;
}

.pricing-cta {
    width: 100%;
    display: block;
    text-align: center;
}

.pricing-empty-state {
    text-align: center;
    padding: 50px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
    position: relative;
    top: 5px;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.interval {
    font-size: 1rem;
    color: #888;
    font-weight: 400;
}

.pricing-footer {
    margin-top: auto; /* This magically pushes the button to the bottom */
    padding-top: 20px;
}

.price-wrapper {
    display: flex;
    align-items: baseline; /* Aligns the bottom of the numbers */
    justify-content: center;
    white-space: nowrap;   /* <--- PREVENTS WRAPPING */
    flex-wrap: nowrap;     /* <--- FORCE SINGLE LINE */
}

.annual-bonus {
    color: var(--accent-color) !important; /* Highlight this feature */
    font-weight: bold;
}

.button.disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    pointer-events: none; /* Prevents clicking */
    border: 1px solid #e9ecef;
}

/* --- Pricing Toggle --- */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 5;
}

.pricing-toggle {
    background-color: var(--secondary-bg);
    border-radius: 30px;
    padding: 5px;
    display: flex;
    gap: 5px;
    border: 1px solid var(--border-color);
}

.toggle-btn {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: var(--accent-color); /* Orange */
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* ==========================================================================
   4. Section Styles
   ========================================================================== */
.trust-section {
    background-color: var(--secondary-bg);
    padding: 80px 20px;
    text-align: center;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    opacity: 0.6;
    flex-wrap: wrap;
}

.trust-logos h3 {
    color: #888;
    font-family: 'Lato', sans-serif; /* Less branded than Poppins for these */
}

/* --- Call to Action Box --- */
.cta-box {
    text-align: center;
    background-color: var(--neutral-white);
    border-radius: 8px;
    padding: 60px;
    border: 1px solid var(--border-color);
}

.cta-box h2 {
    margin-top: 0;
}

.cta-section {
    background-color: #f8f9fa; /* Very light grey, not orange */
    color: var(--primary-text);
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid var(--border-color); /* Subtle separation */
}

.cta-section h2 {
    color: var(--primary-text);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    color: #666;
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Ensure the button inside looks correct on a light background */
.cta-section .button {
    /* Uses your default button styles (usually Accent Color background) */
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.centered-content {
    text-align: center;
    color: var(--neutral-white);
}

.site-title-text {
    font-size: 1.5rem;
    font-weight: 800;
}

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

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

.section-header-center h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-subtext {
    color: #666;
    font-size: 1.1rem;
}

/* --- Contact Page Styles --- */
.contact-wrapper {
    background-color: var(--secondary-bg); /* Light background for page */
    padding: 80px 0;
    min-height: 80vh;
}

.split-card {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
}

/* Left Side */
.contact-info {
    background-color: var(--primary-text); /* Dark background */
    color: white;
    padding: 50px;
    flex: 1;
}

.contact-info h2 {
    color: white;
    margin-bottom: 20px;
}

.contact-subtext {
    color: #adb5bd;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.info-item .icon {
    font-size: 1.5rem;
}

/* Right Side */
.contact-form-container {
    flex: 1.5; /* Slightly wider than info side */
    padding: 50px;
    background-color: white;
}

/* Contact Form specific styles */
.contactform-compliance {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.contactform-compliance-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    font-size: 0.85rem;
    color: #555; /* Adjust to match your theme's body text color */
    cursor: pointer;
}

.contactform-compliance-text {
    line-height: 1.4;
}

.contactform-compliance-text a {
    color: #0056b3; /* Match your theme's link color */
    text-decoration: underline;
}

.contactform-error {
    color: #d93025; /* Match your theme's error color */
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Ensure the checkbox itself doesn't shrink inside the flex container */
.contactform-compliance-label input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-text);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.full-width {
    width: 100%;
}

/* --- Alert Messages (Success/Error/Info) --- */
.messages-wrapper {
    margin-top: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Success (Green) */
.alert.success, .alert.debug {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Error/Warning (Red) */
.alert.error, .alert.warning {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Info (Blue) */
.alert.info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Value Grid */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3 columns */
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.value-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-text);
}

.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block; /* Ensure it sits on its own line */
}

/* Steps Flow */
.steps-grid {
    display: flex;
    align-items: center; /* Aligns arrows with cards */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px; /* Center circle */
    font-size: 1.1rem;
}

.step-card h4 {
    color: var(--primary-text);
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.step-arrow {
    font-size: 2rem;
    color: #ccc;
    font-weight: 300;
}

.dashboard-preview-container {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Big shadow for depth */
    border: 1px solid #eee;
}

.dashboard-preview-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Header Area */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.dashboard-header h1 {
    margin-bottom: 5px;
    font-size: 2rem;
}

/* Empty State (No Plan / No Site) */
.dashboard-empty-state {
    text-align: center;
    padding: 60px 40px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.dashboard-empty-state.wide {
    grid-column: 1 / -1; /* Spans all columns */
    margin-top: 20px;
}

.dashboard-empty-state h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--primary-text);
}

.dashboard-empty-text {
    margin-bottom: 30px;
    color: #666;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.dashboard-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* Active State (Sites Grid) */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.site-card {
    background: white;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.site-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.site-status-badge.active {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.site-status-badge.provisioning {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.site-link {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.site-card h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: var(--primary-text);
}

.site-domain {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.site-card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* Dashboard-specific Button Helpers */
.button-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: all 0.2s;
}

.button-outline:hover {
    border-color: var(--primary-text);
    color: var(--primary-text);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Link Actions (Cancel / Undo) */
.btn-link-action {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
    color: inherit; /* Inherits from pill color */
}

.btn-link-action.danger {
    color: #dc3545;
}

.btn-link-action:hover {
    text-decoration: none;
    opacity: 0.8;
}

.btn-link-action.primary-text {
    color: #0284c7;
    font-weight: 600;
    margin-left: 10px;
    text-decoration: none;
}

.btn-link-action.primary-text:hover {
    text-decoration: underline;
    color: #0369a1;
}

.button-small-accent {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-small-accent:hover {
    opacity: 0.9;
    transform: translateY(-1px); /* Slight lift effect */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.button-small-accent.danger {
    background-color: #AA0000;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Pushes 'Manage' to left, 'Remove' to right */
    margin-top: 15px;
}

.text-danger-small {
    background: none;
    border: none;
    color: #999;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
}

.text-danger-small:hover {
    color: #dc3545;
    text-decoration: underline;
}

/* Subscription Pill (Shows Status + Action) */
.subscription-pill {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 5px 5px 5px 15px;
    font-size: 0.85rem;
    color: #555;
}

.subscription-pill.active {
    background-color: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #c3e6cb;
}

.subscription-pill.warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.subscription-pill.trial {
    background-color: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.subscription-pill form {
    margin: 0;
    display: inline-block;
}

.sub-status {
    font-weight: 700;
    margin-right: 10px;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sub-status.active, .sub-status.trialing { color: #28a745; }
.sub-status.canceled { color: #dc3545; }

/* Mini Cancel Button (Text link style to be less aggressive) */
.btn-cancel-link {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 10px;
    border-left: 1px solid #ddd;
    margin-left: 5px;
}

.btn-cancel-link:hover {
    text-decoration: underline;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.settings-header h1 {
    margin: 0 0 5px 0;
    font-size: 2rem;
}

/* Two-Column Layout */
.settings-layout {
    display: flex !important;
    flex-direction: row;
    gap: 40px;
    align-items: flex-start; /* Aligns columns to top */
}

.settings-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between stacked cards */
}

.settings-column-main {
    flex: 1;
    min-width: 0;
}

.settings-column-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* Card Styling */
.settings-card {
    padding: 30px;
    border: 1px solid #eee;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.settings-card h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--primary-text);
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.settings-file-input {
    margin-bottom: 15px; /* Replaces the inline style */
    width: 100%;
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.settings-file-input:hover {
    background-color: #e9ecef;
}

/* Compliance Status Indicators */
.compliance-card {
    border-left: 5px solid #ccc; /* Default grey */
}

.compliance-card.approved {
    border-left-color: #28a745;
}

.compliance-card.pending {
    border-left-color: #ffc107;
}

.compliance-alert {
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.compliance-alert.warning {
    background: #fff3cd;
    color: #856404;
}

.compliance-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Domain Links */
.domain-link {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.domain-link:hover {
    text-decoration: underline;
}

.form-help-text {
    font-size: 0.85rem;
    color: #6c757d; /* Bootstrap-ish grey */
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
}

.form-field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

/* The primary submit button takes up 2/3 of the space */
.form-actions .button-main {
    flex: 2;
}

/* The cancel button takes up 1/3 of the space */
.form-actions .button-secondary {
    flex: 1;
    text-align: center; /* Ensures text is centered like a button */
}

.nav-user-greeting {
    margin-right: 15px;
    color: #555;
    font-size: 0.95rem;
}
.nav-link-button {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-weight: 500;
    margin-left: 10px;
    font-size: 0.95rem;
}
.nav-link-button:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- THEME SECTION --- */
.theme-section-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.theme-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0; /* Remove gap, handle via padding/borders */
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.theme-control-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.theme-control-item:last-child {
    border-bottom: none;
}

.theme-label-group {
    display: flex;
    flex-direction: column;
}

.theme-label-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--primary-text);
}

.theme-label-group small {
    font-size: 0.75rem;
    color: #888;
}

/* Fix the Color Picker Input Size */
.theme-control-item input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.theme-preview-wrapper {
    flex: 1.2; /* Takes slightly more space */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
}

.preview-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 10;
}

/* Settings Mock area */
.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.label-spaced {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary-text);
    font-size: 1rem;
}

.mock-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: white;
}

.mock-logo { font-weight: 800; font-size: 1.1rem; }
.mock-links { font-size: 0.8rem; display: flex; gap: 15px; }

.mock-hero {
    padding: 15px 15px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mock-hero h4 { margin: 0 0 10px 0; font-size: 1.1rem; }
.mock-btn { border: none; padding: 10px 20px; border-radius: 4px; color: white; cursor: default; font-size: 0.9rem; }

.mock-body {
    background: #fff;
    padding: 20px;
}

.mock-line {
    height: 8px;
    background: #eee;
    margin-bottom: 10px;
}

/* Utility classes for the mock lines */
.mock-line.w-60 { width: 60%; }
.mock-line.w-80 { width: 80%; }
.mock-line.w-40 { width: 40%; }

.mock-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.7rem;
    color: #666;
}

.reset-btn {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    background: none;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    align-self: flex-start;
}
.reset-btn:hover { background: #f0f0f0; }

/* --- IMAGE PREVIEW --- */
.current-image {
    margin-bottom: 15px;
    height: 120px; /* Fixed height container */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
}

.preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures image scales down without distorting */
}

/* --- IMAGE UPLOADS --- */
.image-upload-row {
    display: flex;
    gap: 40px; /* Increased from 20px */
    margin-top: 20px;
}

/* --- SOCIAL ICONS --- */
.social-input-group {
    display: flex;
    align-items: center; /* Vertically centers everything */
    gap: 10px;           /* Consistent spacing between elements */
    margin-bottom: 15px;
}

.social-input-group input {
    flex: 1; /* Takes up remaining space */
    /* Ensure height matches button (approx 36-38px) */
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.social-test-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa; /* Light grey background */
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap; /* Keeps text on one line */
    cursor: pointer;
}

.social-test-link:hover {
    background-color: #e2e6ea;
    border-color: #ccc;
    color: #000;
    text-decoration: none;
}

/* Optional: Active state (when clicked) */
.social-test-link:active {
    background-color: #dae0e5;
    transform: translateY(1px);
}

/* --- 1. Smaller, Tighter Icons --- */
.social-icon-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;  /* Reduced container width */
    flex-shrink: 0; /* Prevents squishing */
}

.social-icon-img img {
    width: 22px;   /* Reduced from 28px for better balance */
    height: 22px;
    display: block;
}

.input-group-merged {
    display: flex;
    align-items: stretch;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    overflow: hidden; /* Keeps child corners inside the border */
    transition: border-color 0.2s;
}

.input-group-merged:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* The Read-Only Prefix Area */
.input-prefix-box {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
    padding: 0 12px;
    color: #555;
    font-size: 0.9rem;
    font-family: monospace;
    user-select: none;
}

/* Optional icon inside the prefix box */
.input-prefix-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    opacity: 0.8;
}

/* The Input Field (Modified to fit inside) */
.input-group-merged input {
    flex: 1;             /* Fill remaining space */
    border: none !important;        /* Remove default input border */
    box-shadow: none !important;
    padding-left: 10px !important;
}

.input-group-merged input:focus {
    outline: none;       /* Remove default blue outline */
}

/* The Test Button (Inside the bar) */
.input-action-btn {
    background: white;
    border: none;
    border-left: 1px solid #eee;
    color: var(--accent-color);
    padding: 0 15px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.input-action-btn:hover {
    background-color: #f0f8ff;
}

/* --- Styled File Upload Button --- */
.file-upload-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 10px;
}

/* The actual ugly input is hidden but clickable */
.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Invisible */
    cursor: pointer;
    z-index: 2; /* Sits on top */
}

/* The fake button that looks good */
.file-upload-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px dashed #ccc;
    border-radius: 4px;
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.file-upload-wrapper:hover .file-upload-btn {
    background-color: #f8f9fa;
    border-color: #999;
    color: #333;
}

.submit-container {
    margin-top: 30px;
}

.compliance-group {
    margin-bottom: 20px;
}

.compliance-heading {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}

.status-alert-box {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.meta-info {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
}

.meta-sub {
    color: #999;
}

/* --- Sidebar Utilities --- */
.sidebar-submit-btn {
    margin-top: 15px;
    width: 100%;
}

.alert.error {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 1px solid #ffcccc;
}

.meta-info-spacing {
    margin-top: 10px;
}

.status-text-success {
    font-size: 0.8rem;
    color: green;
    margin-top: 5px;
}

.btn-download-doc {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 10px; /* Space between download and upload */
    transition: all 0.2s;
}

.btn-download-doc:hover {
    background-color: var(--accent-color);
    color: #fff;
}

/* 2. Upload Button (Drop Zone Look) */
/* (We reuse .file-upload-btn but ensure it looks different) */
.compliance-upload-zone .file-upload-btn {
    border: 2px dashed #ccc; /* Dashed border distinguishes it as an upload area */
    background-color: #f9f9f9;
    color: #555;
    font-weight: 500;
}

.compliance-upload-zone:hover .file-upload-btn {
    border-color: #999;
    background-color: #eee;
}

/* --- DNS Instruction Card --- */
.dns-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.9rem;
    table-layout: fixed;
    border-collapse: collapse;
}

.dns-table th:nth-child(1) { width: 20%; }
.dns-table th:nth-child(2) { width: 20%; }
.dns-table th:nth-child(3) { width: 60%; }

.dns-table th {
    text-align: left;
    background: #f8f9fa;
    padding: 10px;
    border-bottom: 2px solid #eee;
    color: #555;
    font-weight: 600;
}

.dns-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    color: #333;
    font-family: monospace;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.dns-copy-btn {
    font-size: 0.75rem;
    color: var(--accent-color);
    cursor: pointer;
    text-decoration: underline;
    border: none;
    background: none;
    padding: 0;
    margin-left: 10px;
}

.dns-instruction-wrapper {
    margin-top: 20px;
}

/* --- Add Domain Section --- */
.add-domain-prompt {
    margin-bottom: 10px;
    font-weight: 500;
}

.domain-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #fff;
}

.domain-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.domain-badge.primary { background: #e6f7ff; color: #0077b6; }
.domain-badge.alias { background: #f0f0f0; color: #666; }

.add-domain-box {
    text-align: center;
    padding: 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    margin-top: 20px;
}

.add-domain-price {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
}

/* Container for the list */
.requested-domains-list {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden; /* Rounds corners for child elements */
    margin-top: 15px;
}

/* Individual Rows */
.domain-list-row {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

/* Remove border from last item */
.domain-list-row:last-child {
    border-bottom: none;
}

/* The Number (1, 2, 3) */
.domain-rank {
    width: 24px;
    height: 24px;
    background: #f1f3f5;
    color: #495057;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
}

/* The Domain Name - Takes up all empty space */
.domain-name-text {
    font-weight: 500;
    color: #212529;
    flex-grow: 1; /* Pushes the badge to the right */
    margin-right: 15px; /* Spacing between name and badge */
}

/* Badge Tweaks (Optional overrides) */
/* --- BADGES & STATUS INDICATORS --- */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 4px;
    color: #fff; /* Default text white */
}

/* Green (Active / Success) */
.badge.success {
    background-color: #28a745;
    color: #fff;
}

/* Red (Error / Failed) */
.badge.error,
.badge.danger {
    background-color: #dc3545;
    color: #fff;
}

/* Yellow/Orange (Warning / Action Required) */
.badge.warning {
    background-color: #ffc107;
    color: #212529; /* Dark text for contrast on yellow */
}

/* Blue (Info / Provisioning) */
/* If you want Provisioning to be blue, use this class */
.badge.info {
    background-color: #17a2b8;
    color: #fff;
}

.badge.primary {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap; /* Prevents text wrapping */
}

.badge.secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

/* --- Stripe --- */
.stripe-container {
    background-color: white;
    padding: 12px 15px;
    border: 1px solid #ddd; /* Matches your other inputs */
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* The actual element where Stripe mounts the iframe */
#card-element {
    width: 100%;
    /* No height needed, Stripe handles it, but padding helps */
}

.stripe-container:focus-within {
    border-color: #0284c7; /* Highlight color on focus */
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.card-errors {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Mock Mode Badge */
.mock-notice-container {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
}

.mock-badge-inline {
    background-color: #856404;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Secure Notice */
.secure-notice {
    text-align: center;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 15px;
}

/* --- Signup Page Utilities --- */
.signup-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-card {
    padding: 40px;
}

.form-section-title {
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.form-section-title.first {
    margin-top: 0;
}

/* --- Domain Selection Boxes --- */
.domain-choice-box {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.domain-choice-box.existing {
    background: #f9f9f9;
    display: none; /* Hidden by default via JS */
}

.domain-choice-box.new {
    background: #e6f7ff;
    display: block; /* Visible by default */
}

.domain-choice-intro {
    margin-bottom: 15px;
    font-weight: 500;
    color: #004466;
}

/* Utility to hide elements */
.hidden {
    display: none !important;
}

/* Wrapper for the block */
.domain-selection-wrapper {
    background: #f9fafb; /* Slight contrast from white card */
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
    border: 1px solid #e5e7eb;
}

/* Row layout: Input on left, .com on right */
.domain-input-row {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    overflow: hidden; /* Keeps the border clean */
}

/* The text input takes up available space */
.domain-input-row .input-field {
    flex: 1;
    border: none;
    padding: 12px;
    outline: none; /* Remove browser default outline */
}

/* The .com badge */
.domain-extension {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0 15px;
    display: flex;
    align-items: center;
    height: 100%; /* Match input height */
    font-weight: 500;
    border-left: 1px solid #ddd;
}

.checkbox-label-bold {
    font-weight: 600;
    cursor: pointer;
}

.signup-submit-btn {
    font-size: 1.1rem;
    padding: 15px;
    margin-top: 20px;
}

.url-preview-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.url-suffix {
    color: #666;
    font-weight: 500;
}

/* Flex Header for Cards (Aligns title left, button right) */
.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* Base Button Style */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

/* Primary Color (Fill) */
.action-btn.primary {
    background-color: var(--accent-color);
    color: white;
}
.action-btn.primary:hover {
    background-color: #0056b3;
}

/* Outline Style (Transparent with border) */
.action-btn.outline {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}
.action-btn.outline:hover {
    background-color: #f0f8ff;
}

/* Small Variant */
.action-btn.small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.suspended-footer {
    font-size: 0.875rem;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
}

/* --- Site Suspended Page --- */

.suspended-card {
    background: white;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Soft shadow */
    border: 1px solid #e5e7eb;
}

.suspended-icon {
    font-size: 3.5rem;
    color: #ef4444; /* Red warning color */
    margin-bottom: 1.5rem;
}

.suspended-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.suspended-message {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.suspended-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.button-primary {
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.form-group.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between box and text */
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-color, #333);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. FAQ Styles
   ========================================================================== */
.faq-section {
    background-color: var(--secondary-bg); /* Light Grey background */
    padding: 40px 0 80px 0;
    margin-top: 0px;
    border-top: 1px solid var(--border-color);
}

.faq-layout {
    display: flex;
    gap: 50px; /* Space between the two columns */
    margin-top: 15px;
}

.faq-column {
    flex: 1; /* Each column takes 50% width */
}

.faq-item {
    margin-bottom: 45px;
}

.faq-item h4 {
    color: var(--primary-text);
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-top: 0;
}

.faq-section .section-header-center {
    margin-bottom: 10px; /* Reduced from the global 60px */
}

/* ==========================================================================
   6. Legal Pages
   ========================================================================== */
.legal-page-header {
    background-color: #f8f9fa;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    max-width: 800px; /* Readability width */
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-text);
}

.legal-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

/* ==========================================================================
   7. AUTH Styles
   ========================================================================== */
.auth-container {
    max-width: 450px;
    margin: 80px auto 100px;
}

.auth-card {
    background-color: white;
    padding: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text);
}

/* Form Styling (Targeting {{ form.as_p }}) */
.auth-card form p {
    margin-bottom: 20px; /* Spacing between fields */
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-text);
}

/* Style Inputs (Text, Email, Password) */
.auth-card input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-card input:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Button Spacing */
.auth-card .button {
    width: 100%;       /* Full width button */
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Footer Links */
.auth-links {
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-links p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.auth-links a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Explanatory text under titles (e.g. "We sent you an email...") */
.auth-description {
    text-align: center;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Specific styling for the user email display */
.auth-email-highlight {
    font-weight: 600;
    color: var(--primary-text);
}

/* Error messages for invalid links */
.auth-error-message {
    text-align: center;
    color: #dc3545; /* Red */
    margin-bottom: 20px;
    line-height: 1.5;
}

.auth-error-message a {
    color: #dc3545;
    text-decoration: underline;
    font-weight: 600;
}

/* ==========================================================================
   REMOVE. Mock Styles
   ========================================================================== */
.mock-checkout-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.mock-card {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #e9ecef;
    text-align: left; /* Internal content aligns left usually looks better */
}

.mock-plan-name {
    margin-bottom: 5px;
    font-size: 1.5rem;
    color: var(--primary-text);
}

.mock-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-text);
    margin-bottom: 5px;
}

.mock-interval {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
    margin-bottom: 20px;
}

.mock-features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.mock-features-list li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
}

.mock-disclaimer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   8. ISA Dashboard Styles
   ========================================================================== */

.isa-dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.isa-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    padding-bottom: 20px;
}

.isa-header h1 {
    font-size: 2rem;
    color: var(--primary-text, #111827);
    margin-bottom: 5px;
}

.isa-header p {
    color: var(--text-muted, #666);
}

.isa-table-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.isa-table {
    width: 100%;
    border-collapse: collapse;
}

.isa-table th {
    background: #f9fafb;
    padding: 15px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.isa-table td {
    padding: 15px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    color: #374151;
}

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

.isa-table .col-action {
    text-align: right;
}

.isa-table .sub-detail {
    font-size: 0.85rem;
    color: #6b7280; /* Gray-500 */
}

.isa-table .text-muted {
    color: #9ca3af; /* Gray-400 */
    font-style: italic;
}

.isa-table .action-disabled {
    color: #9ca3af;
    font-size: 0.9rem;
}

.isa-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #dcfce7;
    color: #166534;
}

.isa-action-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-color, #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.isa-action-btn:hover {
    filter: brightness(90%);
}

.isa-table .empty-row td {
    text-align: center;
    padding: 60px;
    color: #6b7280;
    font-size: 1.1rem;
}

/* ==========================================================================
   9. Dashboard Widgets (IDX Status)
   ========================================================================== */
.idx-status-tracker {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-left: 10px;
    margin-top: 15px;
}

/* The vertical connector line */
.idx-status-tracker::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: #e9ecef;
    z-index: 0;
}

.status-step {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
    opacity: 0.6;
}

.status-step.active,
.status-step.done {
    opacity: 1;
    font-weight: 500;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

/* Active State (Blue) */
.status-step.active .status-dot {
    border-color: #3b82f6;
    transform: scale(1.2);
}

/* Done State (Green) */
.status-step.done .status-dot {
    background: #10b981;
    border-color: #10b981;
}

/* ==========================================================================
   11. Responsive Settings Grid (Breakpoints: 768, 1024, 1440)
   ========================================================================== */

/* --- 1. MOBILE & TABLET (Default < 1024px) --- */
/* Stacks everything vertically for readability on smaller screens */
.settings-grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    grid-template-areas:
        "idx"        /* Important status first */
        "theme"
        "profile"
        "socials"
        "brokerage"
        "domains"
        "save";
}

/* Assign Cards to Grid Areas */
.area-theme      { grid-area: theme; }
.area-profile    { grid-area: profile; }
.area-socials    { grid-area: socials; }
.area-brokerage  { grid-area: brokerage; }
.area-idx        { grid-area: idx; }
.area-domains    { grid-area: domains; }
.area-save       { grid-area: save; }
.container-fluid.settings-full-width {
    max-width: 100%;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

/* The Container for the 3 columns */
.settings-columns-wrapper {
    display: grid;
    gap: 30px;
    width: 100%;
    /* Default: Mobile (1 Column) */
    grid-template-columns: 1fr; 
}

/* The Individual Columns */
.settings-col {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Space between cards stacked vertically */
}

.settings-card {
    height: fit-content; /* Don't stretch to match neighbor */
}

.theme-section-container {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping if the column gets too tight */
    gap: 20px;
    align-items: flex-start;
}

.theme-controls {
    flex: 1;             /* Grow to fill space */
    min-width: 200px;    /* Don't get skinnier than this */
    /* Existing border/radius styles remain */
}

.theme-preview-wrapper {
    flex: 1;             /* Grow to fill space */
    min-width: 200px;    /* Don't get skinnier than this */
    /* Existing border/shadow styles remain */
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    grid-template-areas:
        "personal"
        "security"
        "credentials"
        "teams";
}

/* Specific Grid Areas */
.profile-area-personal {
    grid-area: personal;
}

.profile-area-security {
    grid-area: security;
}

.profile-area-credentials {
    grid-area: credentials;
}

.profile-area-teams {
    grid-area: teams;
}

/* ==========================================================================
   10. Media Queries / Responsive Design
   ========================================================================== */
@media (max-width: 767px) {
    .hero-title-large {
        font-size: 2.5rem;
    }

    .public-nav {
        display: none;
    }

    .split-card {
        flex-direction: column;
    }

    .contact-info, .contact-form-container {
        padding: 30px;
    }

    .faq-layout {
        flex-direction: column;
        gap: 20px;
    }

    .tech-grid {
        /* On Mobile: Stack vertically (1 column) */
        grid-template-columns: 1fr;
        text-align: left;
    }

    .step-arrow {
        display: none;
    }

    .settings-layout {
        flex-direction: column;
    }

    .suspended-actions {
        flex-direction: column;
    }

    .container-fluid.settings-full-width {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 992px) {
    .settings-layout {
        flex-direction: column;
    }

    .settings-column-sidebar {
        min-width: 100%;
        margin-top: 20px;
    }
}

@media (min-width: 1024px) {
    .settings-grid-container {
        grid-template-columns: 2fr 1fr; /* 66% / 33% split */
        grid-template-areas:
            "theme   idx"
            "profile brokerage"
            "socials domains"
            "save    .";
        align-items: start;
    }
    .settings-columns-wrapper {
        grid-template-columns: 1fr 1fr 300px; /* Left, Mid, Fixed Sidebar */
    }
    .profile-layout-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "personal security"
            "credentials credentials"
            "teams teams";
    }
}

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

@media (max-width: 768px) {
    .form-row-2col {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

@media (max-width: 1200px) {
    .pricing-header .amount {
        font-size: 2.5rem;
    }
}

@media (min-width: 1440px) {
    .settings-grid-container {
        /* Left (Visuals) | Center (Data) | Right (Status/Compliance) */
        grid-template-columns: 1fr 1.2fr 1fr;
        gap: 40px; /* More breathing room on big screens */

        grid-template-areas:
            "theme   profile  idx"
            "socials profile  brokerage"
            ".       save     domains";
    }
    .settings-columns-wrapper {
        grid-template-columns: 1fr 1.2fr 1fr; /* Center slightly wider */
    }
}