/* Mindshare 3.0 - Portal Stylesheet */

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

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #111;
    --bg-card-hover: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #aaa;
    --text-muted: #666;
    --accent: #ffb700;
    --accent-hover: #e6a500;
    --border: #222;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

/* Portal nav */

.portal-nav {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-nav .logo img {
    height: 24px;
    opacity: 0.9;
}

.portal-nav .signout {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

.portal-nav .signout:hover { color: var(--text-secondary); }

/* Portal container */

.portal-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 20px 120px;
}

.portal-welcome {
    margin-bottom: 32px;
}

.portal-welcome h1 {
    font-size: 1.6rem;
    font-weight: 300;
}

.portal-welcome h1 strong {
    font-weight: 700;
}

.portal-welcome .member-type {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.portal-card-helper a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.portal-card-helper a:hover {
    color: #ffc94d;
}

/* Portal cards */

.portal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--transition);
}

.portal-card:hover {
    border-color: #333;
}

.portal-card .card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Door code card */

.door-code-card {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    border-color: var(--accent);
    text-align: center;
}

.door-code-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 8px;
    margin: 12px 0;
    cursor: pointer;
    transition: all var(--transition);
}

.door-code-value.hidden {
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 183, 0, 0.5);
    user-select: none;
}

.door-code-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all var(--transition);
}

.door-code-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.door-code-hint {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 10px;
}

/* Info grid */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item.portal-info-status-row {
    grid-column: 1 / -1;
}

.portal-info-status-pair {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px 28px;
    width: 100%;
}

.portal-info-status-main {
    flex: 0 1 auto;
    min-width: 0;
}

.portal-info-member-since {
    flex: 0 1 auto;
    margin-left: auto;
    text-align: right;
    min-width: 0;
}

.portal-info-status-paused-until {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-secondary);
}

.portal-info-status-paused-until strong {
    color: var(--text-primary);
    font-weight: 700;
}

@media (max-width: 420px) {
    .portal-info-member-since {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }
}

.info-item .info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-item .info-value {
    font-size: 0.95rem;
    font-weight: 500;
}

.portal-card-helper {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: #252525;
    border: 1px solid #333;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.55;
}

.portal-card-helper strong {
    color: var(--text-primary);
}

/* Portal action links */

.portal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.portal-action-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.portal-action-link:hover {
    border-color: #333;
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.portal-action-link .arrow {
    color: var(--text-muted);
    transition: transform var(--transition);
}

.portal-action-link:hover .arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* Manage button */

.manage-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    margin-top: 16px;
}

.manage-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Login page */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.login-card .logo {
    margin-bottom: 32px;
}

.login-card .logo img {
    height: 28px;
    opacity: 0.9;
}

.login-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-card .login-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.login-card .form-input {
    text-align: center;
}

.login-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}

.login-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Square membership card (portal) */

.portal-membership-card {
    border-color: #333;
}

.portal-membership-prompt {
    text-align: center;
}

.migrate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.migrate-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.migrate-badge {
    background: var(--accent);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 4px;
}

.migrate-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-migrate {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-migrate:hover {
    background: var(--accent-hover);
}

.migrate-or {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portal-membership-invoice-footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.btn-text-link {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

a.btn-text-link {
    color: var(--text-muted);
}

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

.portal-membership-invoice-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

.portal-membership-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.portal-membership-actions-row .btn-pause-membership,
.portal-membership-actions-row .btn-cancel-membership,
.portal-membership-actions-row .btn-resume-paused-membership {
    flex: 1 1 140px;
    width: auto;
    min-width: 0;
}

.btn-resume-paused-membership {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #51cf66;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #51cf66;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-resume-paused-membership:hover {
    background: rgba(81, 207, 102, 0.12);
    color: #6ee7a0;
    border-color: #6ee7a0;
}

.btn-pause-membership {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-pause-membership:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.portal-membership-pause-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 10px;
    text-align: center;
}

.portal-membership-pause-until {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0 0 14px;
    text-align: center;
}

.portal-membership-pause-until strong {
    color: var(--text-primary);
    font-weight: 700;
}

.btn-cancel-membership {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-cancel-membership:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.portal-membership-scheduled-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 14px;
    text-align: center;
}

.btn-resume-membership {
    display: block;
    width: 100%;
    padding: 14px;
    background: transparent;
    color: #51cf66;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #51cf66;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-resume-membership:hover {
    background: rgba(81, 207, 102, 0.12);
    color: #6ee7a0;
    border-color: #6ee7a0;
}

.portal-membership-inactive {
    text-align: center;
}

.btn-start-new {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
}

.btn-start-new:hover {
    background: var(--accent-hover);
    color: #000;
}

.btn-square-manage {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-sizing: border-box;
}

a.btn-square-manage {
    text-decoration: none;
}

.btn-square-manage:hover {
    background: var(--accent-hover);
    color: #000;
}

.btn-square-test {
    display: inline-block;
    padding: 12px 20px;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--accent);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}

.btn-square-test:hover:not(:disabled) {
    background: rgba(255, 183, 0, 0.12);
}

.btn-square-test:disabled {
    cursor: wait;
}

.btn-portal-billing-update {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.btn-portal-billing-update:hover {
    color: var(--accent);
}

.portal-email-label-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

.portal-email-label-row .info-label {
    margin-bottom: 0;
}

.portal-email-row .info-value {
    margin: 0;
    word-break: break-word;
}

.btn-portal-email-edit {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.btn-portal-email-edit:hover {
    color: var(--accent);
}

.portal-company-block {
    grid-column: 1 / -1;
}

.portal-company-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.portal-company-logo-stack {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.portal-company-logo-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.portal-company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portal-company-logo-img--empty {
    min-height: 100%;
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
}

.portal-company-hint-wrap {
    position: absolute;
    right: -6px;
    bottom: -6px;
    z-index: 5;
}

.portal-company-logo-hint {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.portal-company-logo-hint:hover,
.portal-company-logo-hint:focus-visible {
    color: var(--accent);
    border-color: rgba(255, 183, 0, 0.45);
    outline: none;
}

.portal-company-logo-hint[aria-expanded="true"] {
    color: var(--accent);
    border-color: rgba(255, 183, 0, 0.45);
}

.portal-company-logo-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%);
    width: min(260px, calc(100vw - 48px));
    padding: 10px 12px;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    z-index: 6;
    box-sizing: border-box;
}

.portal-company-logo-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.portal-company-logo-tooltip[hidden] {
    display: none !important;
}

.portal-company-name {
    margin: 0;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.portal-file-upload-field {
    width: 100%;
}

.portal-company-file-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary);
    font-family: inherit;
    cursor: pointer;
}

.portal-company-file-input::file-selector-button {
    margin-right: 14px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.portal-company-file-input:hover::file-selector-button {
    border-color: #555;
    background: rgba(255, 183, 0, 0.1);
    color: var(--accent);
}

.portal-company-file-input:focus {
    outline: none;
}

.portal-company-file-input:focus::file-selector-button {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 183, 0, 0.2);
}

/* Safari / legacy Chromium */
.portal-company-file-input::-webkit-file-upload-button {
    margin-right: 14px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition), background var(--transition), box-shadow var(--transition);
}

.portal-company-file-input:hover::-webkit-file-upload-button {
    border-color: #555;
    background: rgba(255, 183, 0, 0.1);
    color: var(--accent);
}

.portal-company-file-input:focus::-webkit-file-upload-button {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 183, 0, 0.2);
}

.portal-billing-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-body, #111);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.portal-billing-card-container {
    min-height: 92px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.2);
}

.portal-secured-by-square {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.portal-secured-by-square .portal-secured-by-text {
    font-weight: 500;
}

.portal-secured-by-square .portal-secured-by-logo {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.92;
}

.portal-billing-wait {
    margin-top: 14px;
    padding: 14px 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 183, 0, 0.25);
    background: rgba(255, 183, 0, 0.06);
    text-align: center;
}

.portal-billing-wait-line {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    min-height: 1.45em;
}

.portal-billing-wait-dots {
    display: inline-block;
    min-width: 1.35em;
    text-align: left;
    color: var(--accent);
    font-weight: 600;
}

.portal-billing-wait-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* Confirm modal overlay */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
}

.btn-confirm-cancel,
.btn-confirm-migrate {
    display: block;
    width: 100%;
    padding: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 8px;
}

.btn-confirm-cancel {
    background: #ff6b6b;
    color: #000;
}

.btn-confirm-cancel:hover {
    background: #ff5252;
}

.btn-confirm-migrate {
    background: var(--accent);
    color: #000;
}

.btn-confirm-migrate:hover {
    background: var(--accent-hover);
}

.btn-modal-back {
    display: block;
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-modal-back:hover {
    border-color: #444;
    color: var(--text-secondary);
}

/* Spinner (shared) */

.spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Form shared styles */

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

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color var(--transition);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

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

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

/* OTP inputs */

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.otp-inputs input {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
}

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

/* Status messages */

.status-msg {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.status-msg.error {
    background: rgba(255,107,107,0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255,107,107,0.2);
}

.status-msg.success {
    background: rgba(81,207,102,0.1);
    color: #51cf66;
    border: 1px solid rgba(81,207,102,0.2);
}

/* Office pod live availability (dashboard) */

.pod-live-card .pod-live-updated {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.pod-live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pod-live-block {
    border-radius: 10px;
    padding: 12px 12px 10px;
    border: 1px solid var(--border);
    background: var(--bg-card-hover);
}

.pod-live-block--free {
    border-color: rgba(81, 207, 102, 0.35);
}

.pod-live-block--busy {
    border-color: rgba(255, 107, 107, 0.4);
}

.pod-live-block--unknown {
    border-color: var(--border);
    opacity: 0.85;
}

.pod-live-block-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.pod-live-block-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pod-live-block--free .pod-live-block-status { color: #51cf66; }
.pod-live-block--busy .pod-live-block-status { color: #ff6b6b; }
.pod-live-block--unknown .pod-live-block-status { color: var(--text-muted); }

.pod-live-block-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.35;
}

.pod-live-disclaimer {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 14px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .portal-container {
        padding: 24px 16px 120px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 20px;
    }

    .modal-card {
        padding: 24px;
    }
}
