/*===========================================
  PAWSADMIN AUTH PAGES STYLES v2.0
  Modern, minimal auth experience
  Full-bleed image + scrollable form
===========================================*/

/* ===== AUTH PAGE BASE ===== */
.auth-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-primary);
    background: #f8fafc;
    overflow: hidden;
}

/* ===== AUTH LAYOUT ===== */
.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1024px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }
}

/* ===== LEFT PANEL (Form Side) ===== */
.auth-panel-form {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: white;
}

/* Minimal Header - Just Logo */
.auth-header-minimal {
    flex-shrink: 0;
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-100);
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-primary);
}

.auth-logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(24, 160, 251, 0.3);
}

.auth-logo-icon svg {
    width: 26px;
    height: 26px;
    stroke: white;
}

.auth-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scrollable Form Content */
.auth-form-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: var(--space-6) var(--space-8);
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.auth-form-scroll::-webkit-scrollbar {
    width: 6px;
}

.auth-form-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.auth-form-scroll::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

.auth-form-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.auth-form-container {
    max-width: 480px;
    margin: 0 auto;
}

/* Minimal Footer */
.auth-footer-minimal {
    flex-shrink: 0;
    padding: var(--space-4) var(--space-6);
    text-align: center;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.auth-footer-minimal p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ===== RIGHT PANEL (Image Side) ===== */
.auth-panel-image {
    position: relative;
    background: linear-gradient(135deg, #d1fae5 0%, #a5f3fc 100%);
    overflow: hidden;
}

.auth-panel-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Subtle overlay for text readability if needed */
.auth-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-8);
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: white;
}

.auth-image-overlay h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.auth-image-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 1024px) {
    .auth-panel-image {
        display: none;
    }
    
    .auth-form-scroll {
        padding: var(--space-5);
    }
}

/* ===== PROGRESS STEPS ===== */
.auth-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.auth-progress-step {
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-200);
    transition: all 0.3s ease;
}

.auth-progress-step.active {
    background: var(--primary);
}

.auth-progress-step.complete {
    background: var(--success);
}

/* ===== PAGE HEADER ===== */
.auth-page-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-page-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.auth-page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== SECTION HEADERS ===== */
.auth-section {
    margin-bottom: var(--space-6);
}

.auth-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.auth-section-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.auth-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* ===== INFO CARD ===== */
.auth-info-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 160, 251, 0.2);
    margin-bottom: var(--space-4);
}

.auth-info-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-info-icon svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.auth-info-content h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-1);
}

.auth-info-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== SETTINGS ROW ===== */
.auth-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.auth-settings-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-settings-value {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.auth-settings-value span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-settings-change {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast);
}

.auth-settings-change:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== URL INPUT GROUP ===== */
.auth-url-group {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.auth-url-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-url-prefix {
    padding: var(--space-3) var(--space-4);
    background: var(--gray-50);
    border-right: 1px solid var(--border-color);
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.auth-url-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-primary);
    background: white;
    outline: none;
    min-width: 0;
}

.auth-url-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 400;
}

.auth-url-status {
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
}

.auth-url-status.checking {
    color: var(--text-tertiary);
}

.auth-url-status.available {
    color: var(--success);
}

.auth-url-status.taken {
    color: var(--danger);
}

.auth-url-status-block {
    padding: var(--space-2) 0 0;
    white-space: normal;
    min-height: 1.5em;
}

.auth-url-status-block:empty,
.auth-url-status-block:not(.checking):not(.available):not(.taken) {
    display: none;
}

/* ===== FORM INPUTS ===== */
.auth-form-group {
    margin-bottom: var(--space-4);
}

.auth-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.auth-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.auth-form-input::placeholder {
    color: var(--text-tertiary);
}

.auth-form-input.error {
    border-color: var(--danger);
}

.auth-form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Input with icon */
.auth-input-icon-group {
    position: relative;
}

.auth-input-icon-group .auth-form-input {
    padding-right: 48px;
}

.auth-input-icon {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-1);
    transition: color var(--transition-fast);
}

.auth-input-icon:hover {
    color: var(--text-secondary);
}

/* Two-column inputs */
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 480px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
}

/* Form help text */
.auth-form-help {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.auth-form-help svg {
    flex-shrink: 0;
    margin-top: 1px;
    width: 14px;
    height: 14px;
}

/* ===== SERVICE TOGGLES ===== */
.auth-services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.auth-service-toggle {
    position: relative;
}

/* Hide the native control for BOTH checkbox and radio toggles — the pill IS
   the control. Selecting only [type="checkbox"] left signup-step1's role
   radios painting raw circles outside their pills. */
.auth-service-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Keyboard users still need to see which pill has focus. */
.auth-service-toggle input:focus-visible + .auth-service-label {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.auth-service-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-base);
    user-select: none;
}

.auth-service-label:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.auth-service-toggle input:checked + .auth-service-label {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Inline stroke SVG, not emoji — so the icon sizes with the pill, keeps the
   same 24x24 stroke contract as the rest of the page, and (via currentColor)
   tints with the selected state instead of staying full-colour. */
/* Lucide icon inside a service pill. The box is sized on the element itself,
   not just the <svg>, so the pre-swap <i> and the swapped-in <svg> occupy the
   same space and createIcons() causes no reflow. currentColor is the point
   emoji could never do: the icon tints with the pill's selected state. */
.auth-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.auth-service-icon svg {
    width: 18px;
    height: 18px;
}

/* ===== BUTTONS ===== */
.auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    text-decoration: none;
}

.auth-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0ea5e9 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(24, 160, 251, 0.3);
}

.auth-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 160, 251, 0.4);
}

.auth-btn-primary:active {
    transform: translateY(0);
}

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

.auth-btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

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

/* A disabled button had NO styling at all: it kept the full gradient, kept its
   shadow, and :hover still lifted it — so a form that WAS busy looked exactly
   like one waiting to be clicked, and "nothing happens when I press Create"
   was really "nothing looks different". pointer-events:none also stops the
   hover transform firing under a stationary cursor. */
.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.auth-btn:disabled:hover,
.auth-btn:disabled:active {
    transform: none;
}

/* The tick and the spinner both live in the markup; .is-busy swaps which one
   shows, so there is no innerHTML rewrite mid-submit. */
.auth-btn-icon-busy {
    display: none;
}

.auth-btn.is-busy .auth-btn-icon-idle {
    display: none;
}

.auth-btn.is-busy .auth-btn-icon-busy {
    display: block;
    animation: spin 0.7s linear infinite;
}

/* ===== SETUP PANEL (signup step 2) =====
   Replaces the form while provisionStore runs. Lives in the left form panel,
   so the photo on the right stays put and the page does not feel like it
   navigated away. */
.auth-setup-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.auth-setup-spinner svg {
    width: 44px;
    height: 44px;
    color: var(--primary);
    animation: spin 0.9s linear infinite;
}

.auth-setup-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-5) 0 var(--space-2);
}

.auth-setup-subtitle {
    color: var(--text-secondary);
    margin: 0 0 var(--space-6);
}

.auth-setup-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    max-width: 360px;
}

/* Rows start dim and brighten as they become "in progress". Deliberately NOT
   a checkmark: we cannot observe which step the server reached, so a tick
   would be a claim we can't support (see the panel comment in the page). */
.auth-setup-step {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    opacity: 0.4;
    transition: opacity var(--transition-base), color var(--transition-base);
}

.auth-setup-step::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.auth-setup-step.is-active {
    opacity: 1;
    color: var(--text-primary);
}

.auth-setup-step.is-active::before {
    background: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
    .auth-setup-spinner svg,
    .auth-btn.is-busy .auth-btn-icon-busy {
        animation: none;
    }

    .auth-setup-step {
        transition: none;
    }
}

/* The sign-in card carries two headings now (you / your staff), so the second
   one needs air above it. */
.auth-info-subhead {
    margin-top: var(--space-3);
}

.auth-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== DIVIDER ===== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-5) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 var(--space-4);
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ===== CHECKBOX ===== */
.auth-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin: var(--space-5) 0;
}

.auth-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

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

/* ===== ALERTS ===== */
.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
}

.auth-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.auth-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.auth-alert-error .auth-alert-icon {
    color: var(--danger);
}

.auth-alert-success .auth-alert-icon {
    color: var(--success);
}

.auth-alert-content {
    flex: 1;
}

.auth-alert-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--text-primary);
}

.auth-alert-error .auth-alert-title {
    color: #991b1b;
}

.auth-alert-success .auth-alert-title {
    color: #166534;
}

.auth-alert-message {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Optional way-out link inside an alert, for errors the user can act on
   (e.g. "that email already has an account" -> log in instead). */
.auth-alert-action {
    display: inline-block;
    margin-top: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
}

.auth-alert-error .auth-alert-action {
    color: #991b1b;
}

/* ===== TABS ===== */
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: var(--space-5);
}

.auth-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.auth-tab svg {
    width: 18px;
    height: 18px;
}

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

.auth-tab.active {
    background: white;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ===== SIGN IN SPECIFIC ===== */
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.auth-forgot-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.auth-forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== RECAPTCHA ===== */
.auth-recaptcha {
    display: flex;
    justify-content: center;
    margin: var(--space-5) 0;
}

/* ===== LINK FOOTER ===== */
.auth-link-footer {
    text-align: center;
    margin-top: var(--space-5);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-link-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form-container {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for sections */
.auth-section:nth-child(1) { animation-delay: 0.1s; }
.auth-section:nth-child(2) { animation-delay: 0.2s; }
.auth-section:nth-child(3) { animation-delay: 0.3s; }
.auth-section:nth-child(4) { animation-delay: 0.4s; }

/* ===== ACCOUNT PICKER (select-account.html) ===== */

/* User Avatar */
.auth-user-avatar {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    border: 3px solid white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.auth-user-avatar svg {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.auth-user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Account List */
.account-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

/* Account Card */
.account-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.account-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(24, 160, 251, 0.12);
}

.account-card:active {
    transform: translateY(0);
}

.account-card.loading {
    pointer-events: none;
    border-color: var(--primary);
    background: var(--primary-light);
}

.account-card.loading::after {
    content: '';
    position: absolute;
    right: var(--space-4);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.account-card.loading .account-arrow {
    visibility: hidden;
}

.account-card.dimmed {
    opacity: 0.4;
    pointer-events: none;
}

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

/* Account Icon */
.account-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0f2fe 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

/* Account Info */
.account-info {
    flex: 1;
    min-width: 0;
}

.account-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.account-code {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.03em;
    margin-top: var(--space-1);
    font-family: var(--font-mono, monospace);
}

.account-last-login {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Role Badges */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
    background: var(--gray-100);
    color: var(--text-secondary);
}

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

.role-manager {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

.role-staff {
    background: var(--gray-100);
    color: var(--text-secondary);
}

/* Account Arrow */
.account-arrow {
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: all var(--transition-base);
}

.account-arrow svg {
    width: 20px;
    height: 20px;
}

.account-card:hover .account-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Loading State */
.account-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-8) 0;
    color: var(--text-tertiary);
}

.account-loading p {
    margin: 0;
    font-size: 0.9375rem;
}