/* ===========================
   V2 DESIGN SYSTEM
   Namespaced with "v2-" prefix
   Based on Figma: X-Factor - Be A Better You
   =========================== */

/* === CSS Custom Properties === */
:root {
    /* Brand Colors */
    --v2-bg: #f7f4f1;
    --v2-orange: #ff4f00;
    --v2-orange-hover: #e64700;
    --v2-orange-light: rgba(255, 79, 0, 0.08);
    --v2-orange-border: rgba(255, 79, 0, 0.3);

    /* Text Colors */
    --v2-text-dark: #0a0a0a;
    --v2-text-gray: #4a5565;
    --v2-text-muted: #6a7282;
    --v2-text-heading: #101828;

    /* Surface Colors */
    --v2-card-bg: rgba(255, 255, 255, 0.1);
    --v2-card-inner: #ffffff;
    --v2-surface-light: #f9fafb;
    --v2-surface-gray: #f3f4f6;
    --v2-border: rgba(0, 0, 0, 0.1);
    --v2-white: #ffffff;
    --v2-black: #000000;

    /* Status Colors */
    --v2-success: #28a745;
    --v2-danger: #dc3545;
    --v2-warning: #ffc107;
    --v2-info: #17a2b8;

    /* Border Radius */
    --v2-radius-lg: 16px;
    --v2-radius-md: 14px;
    --v2-radius-base: 12px;
    --v2-radius-sm: 10px;
    --v2-radius-xs: 8px;

    /* Shadows */
    --v2-shadow-btn: 0px 1px 0.5px 0px rgba(29, 41, 61, 0.02);
    --v2-shadow-footer: 0px -15px 64px 0px rgba(0, 0, 0, 0.04);
    --v2-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --v2-shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08);

    /* Layout */
    --v2-padding-x: 156px;
    --v2-header-h: 78px;
    --v2-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive padding */
@media (max-width: 1400px) {
    :root { --v2-padding-x: 80px; }
}
@media (max-width: 992px) {
    :root { --v2-padding-x: 40px; }
}
@media (max-width: 576px) {
    :root { --v2-padding-x: 20px; }
}

/* === Body & Layout === */
.v2-body {
    font-family: var(--v2-font);
    background-color: var(--v2-bg);
    color: var(--v2-text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.v2-bg-pattern {
    position: fixed;
    top: -135px;
    left: -312px;
    width: 2563px;
    height: 1314px;
    background-image: url('/images/v2/bg-pattern.svg');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.v2-main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 32px var(--v2-padding-x) 40px;
}

.v2-main-auth {
    flex: 1;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px var(--v2-padding-x);
}

/* === Header === */
.v2-header {
    height: var(--v2-header-h);
    display: flex;
    align-items: center;
    padding: 16px var(--v2-padding-x);
    position: relative;
    z-index: 10;
    overflow: clip;
}

.v2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.v2-logo,
.v2-header-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--v2-text-dark);
}

.v2-logo:hover,
.v2-header-brand:hover {
    color: var(--v2-text-dark);
    text-decoration: none;
}

.v2-logo-icon {
    width: 46px;
    height: 46px;
    background: var(--v2-black);
    border-radius: 11.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v2-logo-icon img {
    width: 33px;
    height: 33px;
}

.v2-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.v2-logo-title,
.v2-header-title {
    font-weight: 600;
    font-size: 25px;
    letter-spacing: -0.7px;
    line-height: 22px;
}

.v2-logo-tagline,
.v2-header-tagline {
    font-weight: 400;
    font-size: 10.4px;
    letter-spacing: 0.78px;
    text-transform: uppercase;
    color: var(--v2-text-dark);
    margin-top: 4px;
}

.v2-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.v2-header-avatar,
.v2-avatar {
    width: 32px;
    height: 32px;
    background: var(--v2-surface-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--v2-text-gray);
    text-decoration: none;
    font-size: 16px;
}

.v2-header-avatar:hover,
.v2-avatar:hover {
    background: var(--v2-border);
    color: var(--v2-text-dark);
}

/* === Footer === */
.v2-footer {
    background: var(--v2-card-bg);
    box-shadow: var(--v2-shadow-footer);
    padding: 32px var(--v2-padding-x);
    position: relative;
    z-index: 1;
}

.v2-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.v2-footer-copyright {
    font-size: 14px;
    color: var(--v2-text-muted);
    line-height: 21px;
    letter-spacing: -0.15px;
}

.v2-footer-links {
    display: flex;
    gap: 24px;
}

.v2-footer-links a {
    font-size: 14px;
    color: var(--v2-text-gray);
    text-decoration: none;
    line-height: 21px;
    letter-spacing: -0.15px;
}

.v2-footer-links a:hover {
    color: var(--v2-text-dark);
}

/* === Typography === */
.v2-page-title {
    font-weight: 600;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -1.317px;
    color: var(--v2-text-dark);
    margin-bottom: 4px;
}

.v2-page-subtitle {
    font-size: 16px;
    color: var(--v2-text-gray);
    line-height: 24px;
    letter-spacing: -0.313px;
}

.v2-section-title {
    font-weight: 600;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1.317px;
    color: var(--v2-text-dark);
}

.v2-card-title {
    font-weight: 600;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: -0.449px;
    color: var(--v2-text-dark);
}

.v2-item-title {
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.313px;
    color: var(--v2-text-dark);
}

.v2-body-text {
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.15px;
    color: var(--v2-text-gray);
}

.v2-small-text {
    font-size: 12px;
    line-height: 18px;
    color: var(--v2-text-gray);
}

.v2-label {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: var(--v2-text-dark);
}

/* === Cards === */
.v2-card {
    background: var(--v2-card-bg);
    border-radius: var(--v2-radius-lg);
    padding: 32px;
    overflow: clip;
    position: relative;
}

.v2-card-inner {
    background: var(--v2-card-inner);
    border-radius: var(--v2-radius-md);
    padding: 16px;
}

.v2-card-compact {
    padding: 16px 32px;
}

/* === Buttons === */
.v2-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--v2-orange);
    color: var(--v2-white);
    font-family: var(--v2-font);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    padding: 14px 24px;
    border: none;
    border-radius: var(--v2-radius-base);
    box-shadow: var(--v2-shadow-btn);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    width: 100%;
}

.v2-btn-primary:hover {
    background: var(--v2-orange-hover);
    color: var(--v2-white);
    text-decoration: none;
}

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

.v2-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    color: var(--v2-text-dark);
    font-family: var(--v2-font);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 20px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-base);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.v2-btn-outline:hover {
    border-color: var(--v2-text-gray);
    background: var(--v2-surface-light);
    color: var(--v2-text-dark);
    text-decoration: none;
}

.v2-btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
}

.v2-btn-auto {
    width: auto;
}

/* === Tab Bar === */
.v2-tab-bar-wrapper {
    background: var(--v2-card-bg);
    border-radius: var(--v2-radius-lg);
    padding: 16px 16px 16px 32px;
    overflow: clip;
}

.v2-tab-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--v2-card-inner);
    border-radius: var(--v2-radius-md);
    padding: 4.5px 4px;
}

.v2-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
    border-radius: var(--v2-radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: var(--v2-text-dark);
    background: transparent;
    transition: background 0.15s;
    text-decoration: none;
    padding: 1px;
}

.v2-tab:hover {
    background: var(--v2-surface-light);
    text-decoration: none;
    color: var(--v2-text-dark);
}

.v2-tab.active {
    background: var(--v2-surface-gray);
}

.v2-tab i {
    font-size: 16px;
}

.v2-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--v2-border);
    border-radius: 8px;
    padding: 3px 7px;
    font-weight: 500;
    font-size: 11px;
    line-height: 14.667px;
    letter-spacing: 0.065px;
    color: var(--v2-text-dark);
}

/* === Progress Ring (SVG) === */
.v2-progress-ring {
    position: relative;
    width: 174px;
    height: 174px;
}

.v2-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.v2-progress-ring-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 10;
}

.v2-progress-ring-fill {
    fill: none;
    stroke: var(--v2-orange);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.6s ease;
}

.v2-progress-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 34.8px;
    line-height: 1;
    letter-spacing: 0.1px;
    color: var(--v2-text-dark);
}

/* === Form Inputs === */
.v2-form-group {
    margin-bottom: 20px;
}

.v2-form-label {
    display: block;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: var(--v2-text-dark);
    margin-bottom: 8px;
}

.v2-input-wrapper {
    position: relative;
}

.v2-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v2-text-muted);
    font-size: 16px;
    pointer-events: none;
}

.v2-input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d1d5db;
    border-radius: var(--v2-radius-base);
    font-family: var(--v2-font);
    font-size: 16px;
    line-height: 24px;
    color: var(--v2-text-dark);
    background: var(--v2-white);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.v2-input:focus {
    outline: none;
    border-color: var(--v2-orange);
    box-shadow: 0 0 0 3px var(--v2-orange-light);
}

.v2-input::placeholder {
    color: #9ca3af;
}

.v2-input-no-icon {
    padding-left: 16px;
}

.v2-select {
    width: 100%;
    padding: 14px 40px 14px 44px;
    border: 1px solid #d1d5db;
    border-radius: var(--v2-radius-base);
    font-family: var(--v2-font);
    font-size: 16px;
    line-height: 24px;
    color: var(--v2-text-dark);
    background: var(--v2-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a7282' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.v2-select:focus {
    outline: none;
    border-color: var(--v2-orange);
    box-shadow: 0 0 0 3px var(--v2-orange-light);
}

/* === Toggle Switches === */
.v2-toggle-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-base);
    transition: background 0.15s, border-color 0.15s;
}

.v2-toggle-card.active {
    background: var(--v2-orange-light);
    border-color: var(--v2-orange-border);
}

.v2-toggle-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--v2-surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--v2-text-gray);
    flex-shrink: 0;
}

.v2-toggle-card.active .v2-toggle-icon {
    background: var(--v2-orange);
    color: var(--v2-white);
}

.v2-toggle-content {
    flex: 1;
}

.v2-toggle-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--v2-text-dark);
}

.v2-toggle-desc {
    font-size: 13px;
    line-height: 18px;
    color: var(--v2-text-gray);
    margin-top: 2px;
}

/* Toggle switch */
.v2-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.v2-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.v2-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d1d5db;
    border-radius: 24px;
    transition: background-color 0.2s;
}

.v2-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--v2-white);
    border-radius: 50%;
    transition: transform 0.2s;
}

.v2-switch input:checked + .v2-switch-slider {
    background-color: var(--v2-orange);
}

.v2-switch input:checked + .v2-switch-slider::before {
    transform: translateX(20px);
}

/* === Stat Cards (Org Dashboard) === */
.v2-stat-card {
    background: var(--v2-card-bg);
    border-radius: var(--v2-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.v2-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--v2-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--v2-white);
    flex-shrink: 0;
}

.v2-stat-value {
    font-weight: 600;
    font-size: 28px;
    line-height: 1;
    color: var(--v2-text-dark);
}

.v2-stat-label {
    font-size: 13px;
    color: var(--v2-text-gray);
    margin-top: 4px;
}

/* === Module Items (Modules Tab) === */
.v2-module-category {
    margin-bottom: 28px;
}

.v2-module-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.v2-module-category-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--v2-text-dark);
}

.v2-module-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--v2-orange);
    color: var(--v2-white);
    font-weight: 600;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.v2-module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .v2-module-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .v2-module-grid {
        grid-template-columns: 1fr;
    }
}

.v2-module-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-sm);
    background: var(--v2-white);
    cursor: pointer;
    text-decoration: none;
    color: var(--v2-text-dark);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.v2-module-item:hover {
    border-color: var(--v2-orange);
    box-shadow: var(--v2-shadow-card);
    text-decoration: none;
    color: var(--v2-text-dark);
}

.v2-module-item.completed {
    border-color: var(--v2-success);
    background: rgba(40, 167, 69, 0.04);
}

.v2-module-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-module-item.completed .v2-module-indicator {
    border-color: var(--v2-success);
    background: var(--v2-success);
    color: var(--v2-white);
    font-size: 11px;
}

.v2-module-item-name {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
}

/* === Getting Started Checklist === */
.v2-checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--v2-surface-light);
    border-radius: var(--v2-radius-sm);
}

.v2-checklist-icon {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v2-checklist-icon.completed {
    border-color: var(--v2-success);
    background: var(--v2-success);
    color: var(--v2-white);
    font-size: 10px;
}

.v2-checklist-title {
    font-weight: 500;
    font-size: 14px;
    color: var(--v2-text-heading);
    line-height: 21px;
    letter-spacing: -0.15px;
}

.v2-checklist-subtitle {
    font-size: 12px;
    color: var(--v2-text-gray);
    line-height: 18px;
}

/* === Core Program Cards === */
.v2-program-card {
    background: var(--v2-card-bg);
    border-radius: var(--v2-radius-lg);
    padding: 32px;
    overflow: clip;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.v2-program-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.v2-program-icon {
    width: 43px;
    height: 43px;
    background: var(--v2-surface-light);
    border-radius: 13.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--v2-text-gray);
    flex-shrink: 0;
}

.v2-program-card-body {
    flex: 1;
}

.v2-program-card-footer {
    margin-top: 24px;
}

/* === Status Rows === */
.v2-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--v2-border);
}

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

.v2-status-label {
    font-weight: 500;
    font-size: 14px;
    color: var(--v2-text-dark);
}

.v2-status-value {
    font-size: 14px;
    color: var(--v2-text-gray);
}

.v2-status-link {
    font-size: 14px;
    color: var(--v2-orange);
    text-decoration: none;
    font-weight: 500;
}

.v2-status-link:hover {
    text-decoration: underline;
    color: var(--v2-orange-hover);
}

/* === Auth Page Decorations === */
.v2-auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
}

.v2-auth-card {
    background: var(--v2-white);
    border-radius: var(--v2-radius-lg);
    padding: 40px;
    box-shadow: var(--v2-shadow-card);
}

.v2-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.v2-auth-logo .v2-logo {
    justify-content: center;
}

.v2-auth-title {
    font-weight: 600;
    font-size: 28px;
    text-align: center;
    color: var(--v2-text-dark);
    margin-bottom: 8px;
}

.v2-auth-subtitle {
    font-size: 16px;
    color: var(--v2-text-gray);
    text-align: center;
    margin-bottom: 32px;
}

.v2-auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--v2-text-gray);
}

.v2-auth-footer a {
    color: var(--v2-orange);
    text-decoration: none;
    font-weight: 500;
}

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

.v2-auth-decoration-brain {
    position: fixed;
    right: 5%;
    top: 20%;
    width: 80px;
    height: 80px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

.v2-auth-decoration-arrow {
    position: fixed;
    left: 5%;
    bottom: 20%;
    width: 100px;
    height: 80px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .v2-auth-decoration-brain,
    .v2-auth-decoration-arrow {
        display: none;
    }
}

/* === Forgot Password Link === */
.v2-forgot-link {
    display: block;
    text-align: right;
    font-size: 14px;
    color: var(--v2-text-gray);
    text-decoration: none;
    margin-top: -12px;
    margin-bottom: 20px;
}

.v2-forgot-link:hover {
    color: var(--v2-orange);
}

/* === Checkbox === */
.v2-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.v2-checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--v2-orange);
}

.v2-checkbox-wrapper label {
    font-size: 14px;
    color: var(--v2-text-gray);
    margin: 0;
}

.v2-checkbox-wrapper a {
    color: var(--v2-orange);
    text-decoration: none;
}

/* === Alerts === */
.v2-alert {
    padding: 14px 20px;
    border-radius: var(--v2-radius-xs);
    margin-bottom: 20px;
    font-size: 14px;
}

.v2-alert-danger,
.v2-alert-error {
    background: rgba(220, 53, 69, 0.08);
    color: var(--v2-danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.v2-alert-success {
    background: rgba(40, 167, 69, 0.08);
    color: var(--v2-success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.v2-alert-info {
    background: rgba(23, 162, 184, 0.08);
    color: var(--v2-info);
    border: 1px solid rgba(23, 162, 184, 0.2);
}

/* === Org Dashboard Table === */
.v2-roster-card {
    background: var(--v2-card-bg);
    border-radius: var(--v2-radius-lg);
    padding: 24px;
    overflow: clip;
}

.v2-roster-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.v2-roster-table thead th {
    font-weight: 600;
    color: var(--v2-text-gray);
    padding: 12px 16px;
    border-bottom: 2px solid var(--v2-border);
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--v2-surface-light);
}

.v2-roster-table tbody tr {
    transition: background 0.15s;
    cursor: pointer;
}

.v2-roster-table tbody tr:hover {
    background: var(--v2-surface-light);
}

.v2-roster-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--v2-border);
    vertical-align: middle;
}

/* === Org Settings Tabs === */
.v2-settings-tabs {
    display: flex;
    gap: 4px;
    background: var(--v2-surface-light);
    border-radius: var(--v2-radius-sm);
    padding: 4px;
    margin-bottom: 24px;
}

.v2-settings-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--v2-radius-xs);
    font-weight: 500;
    font-size: 14px;
    color: var(--v2-text-gray);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}

.v2-settings-tab.active {
    background: var(--v2-white);
    color: var(--v2-text-dark);
    box-shadow: var(--v2-shadow-card);
}

.v2-settings-tab:hover {
    color: var(--v2-text-dark);
}

/* === V1 Deprecation Banner === */
.v2-legacy-banner {
    background: var(--v2-surface-gray);
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    color: var(--v2-text-gray);
    border-bottom: 1px solid var(--v2-border);
}

.v2-legacy-banner a {
    color: var(--v2-orange);
    font-weight: 500;
    text-decoration: none;
}

.v2-legacy-banner a:hover {
    text-decoration: underline;
}

/* === Module Page Wrapper === */
.v2-module-wrapper {
    max-width: 960px;
    margin: 0 auto;
}

.v2-module-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--v2-text-gray);
    text-decoration: none;
    margin-bottom: 20px;
}

.v2-module-back:hover {
    color: var(--v2-orange);
}

/* === Responsive Overrides === */
@media (max-width: 992px) {
    .v2-page-title {
        font-size: 28px;
    }

    .v2-section-title {
        font-size: 24px;
    }

    .v2-tab-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .v2-card {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .v2-page-title {
        font-size: 24px;
    }

    .v2-header {
        padding: 12px var(--v2-padding-x);
        height: auto;
    }

    .v2-footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .v2-auth-card {
        padding: 24px;
    }

    .v2-btn-primary {
        padding: 12px 20px;
    }
}

/* === Alpine.js Cloak === */
[x-cloak] {
    display: none !important;
}
