/* ==========================================================================
   ReviewQR-AI — Global Stylesheet
   ========================================================================== */

:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #4338ca;
    --color-secondary: #f3f4f6;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-danger: #dc2626;
    --color-success: #16a34a;
    --color-bg: #fafafa;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

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

.hidden {
    display: none !important;
}

.muted {
    color: var(--color-muted);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar-minimal {
    justify-content: center;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.brand span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-links a,
.nav-links button {
    font-size: 0.95rem;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: transform 0.05s ease, background 0.15s ease;
}

.btn:active {
    transform: scale(0.98);
}

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

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

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

.btn-secondary:hover {
    background: #e5e7eb;
}

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

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

.btn-text {
    display: inline-block;
    background: #374151;
    color: #ffffff;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    margin-top: 0.85rem;
    box-shadow: 0 4px 12px rgba(55, 65, 81, 0.18);
    transition: background 0.2s ease, transform 0.05s ease, box-shadow 0.2s ease;
}

.btn-text:hover {
    background: #1f2937;
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.25);
}

.btn-text:active {
    transform: scale(0.97);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.2);
}

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

/* "Back" link — admin pages (create/edit/view business, business list) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 1.1rem;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.back-link:hover {
    color: var(--color-primary);
}

.back-link .back-arrow {
    display: inline-block;
    transition: transform 0.15s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-3px);
}

/* Page content wrapper */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 130px);
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.subtitle {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

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

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.how-it-works {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 3rem;
}

.how-it-works ol {
    padding-left: 1.25rem;
}

.how-it-works li {
    margin-bottom: 0.5rem;
}

/* Auth */
.auth-section {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.auth-card,
.form-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.form-card {
    max-width: 520px;
    margin: 0 auto;
}

.auth-subtitle {
    color: var(--color-muted);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.auth-form,
.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form label,
.stacked-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.75rem;
}

.auth-form input,
.stacked-form input {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font);
}

.field-hint {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.form-error {
    background: #fef2f2;
    color: var(--color-danger);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.form-success {
    background: #f0fdf4;
    color: var(--color-success);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

.auth-form button,
.stacked-form button {
    margin-top: 1.25rem;
}

/* Business form (create / edit) — scoped to .form-card / .stacked-form only,
   never .auth-card / .auth-form, so the login page is untouched. */

.form-page {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem 3rem;
}

.form-page .form-card {
    max-width: 640px;
    padding: 2.25rem 2.5rem 2.5rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 20px 40px rgba(15, 23, 42, 0.06);
}

.form-page .form-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
    margin: 0;
}

.form-page .form-card > p.muted {
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.92rem;
}

.stacked-form {
    gap: 0.4rem;
}

.stacked-form label {
    color: #374151;
    font-size: 0.88rem;
}

.stacked-form input,
.stacked-form textarea {
    padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.stacked-form input:focus,
.stacked-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.stacked-form input[type="file"] {
    padding: 0.5rem;
    border-style: dashed;
    background: #fafbfc;
    font-size: 0.85rem;
    color: var(--color-muted);
}

.stacked-form input[type="file"]::file-selector-button {
    padding: 0.45rem 0.9rem;
    margin-right: 0.75rem;
    border: none;
    border-radius: 7px;
    background: var(--color-secondary);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.stacked-form input[type="file"]::file-selector-button:hover {
    background: #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.field label {
    margin-top: 0.75rem;
}

.form-group {
    background: #f9fafb;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem 1.35rem;
    margin: 1.5rem 0 0.5rem;
}

.form-group-title {
    display: block;
    margin-top: 0 !important;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.form-help {
    color: var(--color-muted);
    font-size: 0.84rem;
    line-height: 1.5;
    margin: 0.3rem 0 1rem;
}

.social-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

.social-links-group > .form-group-title,
.social-links-group > .form-help {
    grid-column: 1 / -1;
}

.social-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.social-field label {
    margin-top: 0.6rem;
    font-size: 0.82rem;
}

.review-aspect-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.custom-link-input {
    align-items: center;
}

.review-aspect-input .btn,
.custom-link-input .btn,
.form-group .btn {
    margin-top: 0;
    flex-shrink: 0;
}

.review-aspect-input input {
    flex: 1;
    min-width: 0;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 130px;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-actions {
    margin-top: 2.5rem;
}

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

.quick-action-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-text);
}

.quick-action-card:hover {
    border-color: var(--color-primary);
}

/* Business grid / cards */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.business-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}

.business-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.business-logo-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-secondary);
    flex-shrink: 0;
}

.business-card h4 {
    margin: 0;
}

.business-card .service-type {
    color: var(--color-muted);
    font-size: 0.85rem;
}

.business-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.business-card-actions .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
}

/* Business list (row) view */
.business-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.business-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--shadow);
}

.business-row-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.business-row-text {
    flex: 1 1 auto;
    min-width: 0;
}

.business-row-info h4 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.business-row-info .service-type {
    color: var(--color-muted);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qr-status-toggles {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    flex: 0 0 auto;
    background: var(--color-secondary);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
}

.business-row .qr-status-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.business-row .qr-status-name {
    text-align: center;
    min-width: 0;
}

.business-row .toggle-slider {
    width: 34px;
    height: 20px;
}

.business-row .toggle-slider::before {
    width: 14px;
    height: 14px;
}

.business-row input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(14px);
}

.business-row .qr-status-label {
    min-width: 0;
    font-size: 0.82rem;
    text-align: center;
}

.business-row-actions {
    display: flex;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.business-row-actions .btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .business-row {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-muted);
}

/* Business details */
.details-card,
.qr-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.details-row:last-child {
    border-bottom: none;
}

.qr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.qr-card-header h3 {
    margin: 0;
}

.qr-status-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.qr-status-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.qr-status-toggle .toggle-slider {
    position: relative;
    width: 42px;
    height: 24px;
    background: var(--color-danger);
    border-radius: 999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.qr-status-toggle .toggle-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.qr-status-toggle input[type="checkbox"]:checked + .toggle-slider {
    background: var(--color-success);
}

.qr-status-toggle input[type="checkbox"]:checked + .toggle-slider::before {
    transform: translateX(18px);
}

.qr-status-toggle input[type="checkbox"]:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.qr-status-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-muted);
    min-width: 3.5rem;
}

.qr-status-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    min-width: 4.5rem;
}

.qr-image-wrapper {
    position: relative;
}

.qr-image {
    max-width: 400px;
    width: 100%;
    display: block;
    margin: 1rem auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.5rem;
}

.qr-disabled-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
}

.qr-disabled-overlay span {
    background: var(--color-danger);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9rem;
}

.qr-disabled-state {
    text-align: center;
    padding: 2rem 1rem;
}

.qr-disabled-state .qr-disabled-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.qr-disabled-state h3 {
    margin: 0.25rem 0;
}

.qr-actions,
.details-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}


.review-aspects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.review-aspect-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    border-radius: 20px;
    padding: 8px 14px;
}

.review-aspect-chip button {
    border: none;
    background: none;
    cursor: pointer;
}

/* Custom third-party links (business form) */

.custom-links-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.custom-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    background: #f3f4f6;
    border-radius: 10px;
    padding: 10px 14px;
}

.custom-link-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

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

.custom-link-info span {
    font-size: 0.8rem;
    color: var(--color-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-link-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.custom-link-actions .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.custom-link-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.custom-link-input input {
    flex: 1 1 160px;
    min-width: 0;
}

/* Customer landing */

.page-content:has(> .customer-landing) {
    padding: 0;
    max-width: none;
    min-height: 0;   /* override the generic .page-content min-height: calc(100vh - 130px) */
}

.customer-landing {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 0;              /* was padding-top: 2rem */
}

.customer-card {
    background: #fff;
    border: none;              /* was 1px solid var(--color-border) */
    border-radius: 0;          /* was 18px — no rounded corners on a full-page card */
    padding: 2rem 1.5rem 0;    /* no bottom padding — the footer already has its own spacing, card should end right after it */
    max-width: none;           /* was 460px — REMOVE the cap */
    width: 100%;
    min-height: 0;
    text-align: center;
    box-shadow: none;          /* was the drop shadow — not needed edge-to-edge */
}

.customer-card > * {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.business-logo {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.4rem;
    border: 2px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}

.customer-card #businessName {
    margin: 0 auto;
    font-size: clamp(1.2rem, 4vw, 1.45rem);
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-card #serviceType {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #6b7280;
    line-height: 1.2;
}

.customer-instructions {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
}

.loading-indicator {
    margin-top: 1.5rem;
}

.spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.75rem;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.review-result {
    margin-top: 1.5rem;
    text-align: left;
}

/* Customer Review Aspects */

.review-aspect-section {
    margin: 0.9rem 0;
    text-align: center;
}

.review-aspect-title {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
}

.customer-review-aspects {
    display: flex;
    flex-direction: row;     /* ADD THIS */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    word-break: keep-all;     /* ADD */
    overflow-wrap: normal;    /* ADD */
    gap: 10px;
    width: 100%;
}

.customer-review-aspect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    flex: 0 0 auto;          /* ADD THIS — prevents the chip from shrinking/growing */
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .25s ease;
}
.customer-review-aspect:hover {
    background: #eef2ff;
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.customer-review-aspect:has(input:checked) {
    background: linear-gradient(135deg,#4f46e5,#6366f1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(79,70,229,.25);
}

.customer-review-aspect input[type="checkbox"] {
    display: none;
}

.customer-review-aspect span {
    font-size: 0.88rem;
    user-select: none;
    white-space: nowrap;
}

/* ==========================================================
   Review Language Switcher
   ========================================================== */

.review-language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.review-language-btn {
    background: #ffffff;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-language-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f8f9ff;
}

.review-language-btn.active {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25);
}

.review-language-btn:active {
    transform: scale(0.97);
}

.review-navigator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.review-nav-btn {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.review-nav-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: #f8f9ff;
}

.review-nav-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.review-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.review-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
}

.review-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-indicator.active {
    width: 20px;
    border-radius: 4px;
    background: var(--color-primary);
}

.review-textarea {
    width: 100%;
    min-height: 260px;
    max-height: 460px;
    padding: 1rem;
    line-height: 1.5;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    resize: vertical;
    overflow-y: auto;
}

.review-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.85rem;
}

.review-actions .btn {
    flex: 1;
    padding: 0.58rem 0.95rem;
    font-size: 0.87rem;
    border-radius: 8px;
}

/* Customer star rating (Google style) */
.customer-card .rating-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.customer-card .rating-star {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    font-size: 48px !important;

    line-height: 1;

    cursor: pointer;

    color: #c7c7c7;

    transition: 0.2s;
}

.customer-card .rating-star:hover {
    transform: scale(1.1);
}

.customer-card .rating-star.filled {
    color: #f59e0b;
}

.customer-card .selected-rating-value {

    text-align: center;
    padding: 1.5rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
}

/* Social media landing page */

.page-content:has(> .social-landing) {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef1f8 100%);
}

.social-landing-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
}

.social-landing-card .business-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.social-landing-card #businessName {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #111827;
}

.social-landing-card #serviceType {
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.social-links-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 1.25rem;
}

.social-link-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 14px 22px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    background: var(--tint-bg, #f9fafb);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.social-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06), 0 14px 28px rgba(15, 23, 42, 0.09);
}

.social-link-btn:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.social-link-label {
    flex: 1;
    text-align: left;
    letter-spacing: -0.005em;
}

.social-link-btn::after {
    content: "";
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-right: 2px solid #b0b6c3;
    border-top: 2px solid #b0b6c3;
    transform: rotate(45deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.social-link-btn:hover::after {
    transform: rotate(45deg) translate(2px, -2px);
    border-color: var(--tint-icon-solid, var(--color-primary));
}

.social-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tint-icon, var(--color-primary));
    color: #fff;
    flex-shrink: 0;
}

.social-link-icon svg {
    width: 22px;
    height: 22px;
}

/* Per-platform pastel tints */
.social-link-btn--website     { --tint-bg: #eaf3ff; --tint-icon: #3b82f6; --tint-icon-solid: #3b82f6; }
.social-link-btn--instagram   { --tint-bg: linear-gradient(135deg, #fdf2f8, #f4f0ff); --tint-icon: linear-gradient(135deg, #ec4899, #8b5cf6); --tint-icon-solid: #d946ef; }
.social-link-btn--facebook    { --tint-bg: #eaf1ff; --tint-icon: #2563eb; --tint-icon-solid: #2563eb; }
.social-link-btn--whatsapp_channel { --tint-bg: #e9faf0; --tint-icon: #22c55e; --tint-icon-solid: #22c55e; }
.social-link-btn--youtube     { --tint-bg: #fdeceb; --tint-icon: #ef4444; --tint-icon-solid: #ef4444; }
.social-link-btn--linkedin    { --tint-bg: #edeeff; --tint-icon: #4f46e5; --tint-icon-solid: #4f46e5; }
.social-link-btn--twitter_x   { --tint-bg: #f2f3f5; --tint-icon: #1f2937; --tint-icon-solid: #1f2937; }
.social-link-btn--other       { --tint-bg: #fff1e3; --tint-icon: #f97316; --tint-icon-solid: #f97316; }

.social-landing-card .movya-footer {
    color: #9aa1b1;
    letter-spacing: 0.01em;
}

.social-landing-card .movya-footer a {
    font-weight: 600;
}

.movya-footer {
    text-align: center;
    margin-top: 30px;
    margin-bottom:20px;
    padding: 0;
    font-size: 12px;
    color: #777;
}

.movya-footer p {
    margin: 0;
}

.movya-footer a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: 500;
}

.movya-footer a:hover {
    color: #004499;
}

/* Responsive */
@media (max-width: 768px) {

    .features,
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 1rem;
    }

    /* Business form (create / edit) */

    .form-page {
        padding: 1rem 0.5rem 2rem;
    }

    .form-page .form-card {
        padding: 1.5rem 1.25rem 1.75rem;
        border-radius: 16px;
    }

    .form-row,
    .social-links-group {
        grid-template-columns: 1fr;
    }

    /* Customer Page */

    .customer-landing {
        padding: 16px 16px 0;
    }

    .customer-card {
        padding: 20px 16px 0;
        border-radius: 16px;
    }

    .business-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 6px;
    }

    .customer-card #businessName {
        font-size: 1.10rem;
    }

    .customer-card #serviceType {
        font-size: 0.85rem;
        margin-top: 3px;
        margin-bottom: 8px;
    }

    .customer-review-aspects {
        justify-content: center;
        gap: 5px;
    }

    .customer-review-aspect {
    padding: 6px 12px;        /* was 8px 16px — smaller so more fit per row */
    font-size: 0.78rem;
    }

    .btn-text {
        width: 100%;
        padding: 0.65rem 1rem;
    }

    .review-textarea {
        min-height: 190px;
    }

    .review-actions {
        gap: 0.5rem;
    }

    .review-actions .btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.82rem;
    }

    .custom-link-item {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-link-actions {
        justify-content: flex-end;
    }

    /* Social QR page */

    .social-landing-card .business-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .social-link-btn {
        min-height: 68px;
        padding: 12px 16px;
        border-radius: 18px;
        gap: 12px;
    }

    .social-link-icon {
        width: 40px;
        height: 40px;
    }

    .social-link-icon svg {
        width: 20px;
        height: 20px;
    }
}