html, body {
    height: 100%;
    position: static;
    overflow: visible;
}

.checkout-logo {
    position: relative;
    height: 20%;
    max-height:100px;
    text-align: center;
}

.login-logo {
    position: relative;
    height: 30%;
    text-align: center;
}

.checkout-logo img,
.login-logo img {
    margin-top: 3rem;
    height: 50%;
}

.login-logo p {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.login {
    position:absolute;
    top:30%;
    left: calc( 50% - 150px );
    width:300px;
    padding:1em;
    border:1px solid var(--color-border);
    border-radius:8px;
    background: var(--color-bg-secondary);
}

.login form {
    margin-top: 2em;
    margin-bottom: 0;
}

.login input {
    margin-bottom: 1.5em;
}

.login .verify-message {
    margin: 1em 0 1.5em 0;
    padding: 0.75em;
    background: var(--color-bg-tertiary, #f8f9fa);
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: var(--color-bg-primary);
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--color-bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

.sidebar-top {
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.logo {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu ul,
.sidebar-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu {
    flex: 1 1 auto;
    padding: 0 1.5rem;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-menu a:hover, .sidebar-menu a.active {
    color: var(--color-accent);
}

.sidebar-bottom {
    padding: 1.5rem;
    border-top: 1px solid var(--color-border);
}
.sidebar-bottom li {
    margin-bottom: 0.5rem;
}
.sidebar-bottom a {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.sidebar-bottom a:hover, .sidebar-bottom a.active {
    color: var(--color-accent);
}

.main-wrapper {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 220px;
}

.topbar {
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) calc(2 * var(--space-xl));
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.project-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin: 0;
}

.project-selector select {
    min-width: 200px;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-selector select:hover {
    border-color: var(--color-accent);
}

.project-selector select:focus {
    outline: none;
    border-color: var(--color-border-focus);
}

.edit-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.edit-project-btn svg {
    flex-shrink: 0;
}

.dashboard-main {
    padding: var(--space-xl) calc(2 * var(--space-xl));
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

.dashboard-content {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: calc(1.5 * var(--space-lg));
    flex: 1 1 auto;
    min-height: 300px;
}

.token-result-box {
    background: var(--color-bg-tertiary);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    margin-bottom: 1.2rem;
}

.token-result-value {
    font-family: monospace;
    background: var(--color-bg-primary);
    padding: 0.7rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

@media (max-width: 900px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        height: auto;
        min-height: 0;
        box-shadow: none;
        border-bottom: 1px solid var(--color-border);
    }
    .topbar {
        padding: var(--space-md);
    }
    .dashboard-main {
        padding: var(--space-lg) var(--space-md);
    }
}

/* Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.modal-close:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

#modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="datetime-local"],
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    font-size: 1rem;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Delete Modal Styles */
.delete-modal-text {
    margin-bottom: 1em;
}

.delete-modal-warning {
    color: var(--color-error);
    margin-bottom: 1em;
}

.delete-modal-resources {
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-error);
    padding: 1em;
    border-radius: var(--radius-md);
    margin-bottom: 1em;
}

.delete-modal-resources-title {
    margin: 0 0 0.5em 0;
    font-weight: bold;
}

.delete-modal-resources-list {
    margin: 0;
    padding-left: 1.5em;
}

/* Session Status Dots */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    cursor: help;
}

.status-active {
    background-color: var(--color-accent, #10b981);
    animation: pulse 2s ease-in-out infinite;
}

.status-ended {
    background-color: #6b7280;
}

/* UUID Shortener */
.uuid-container {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.uuid-short {
    cursor: help;
}

.uuid-copy-btn {
    border: none;
    background: none;
    padding: 2px 4px;
    cursor: pointer;
    color: transparent;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

tr:hover .uuid-copy-btn {
    color: var(--color-text-secondary);
}

.uuid-copy-btn:hover,
tr:hover .uuid-copy-btn:hover {
    color: var(--color-accent-strong);
}

.uuid-copy-btn.copied {
    color: var(--color-success);
}

.uuid-copy-btn svg {
    vertical-align: middle;
}

/* Dashboard Tiles */
.dashboard-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.dashboard-tile {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: block;
}

.dashboard-tile:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.dashboard-tile-link {
    text-decoration: none;
    cursor: pointer;
}

.dashboard-tile-link:hover {
    transform: translateY(-2px);
}

.tile-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.tile-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

/* Dashboard Usage Tile Styles */
.dashboard-tile-usage {
    min-height: 180px;
}

.usage-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usage-compact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.usage-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.usage-compact-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.usage-compact-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.progress-bar-compact {
    height: 6px;
}

/* Custom Dropdown Styles */
.custom-dropdown {
    position: relative;
    min-width: 200px;
}

.custom-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    text-align: left;
}

.custom-dropdown-toggle:hover {
    border-color: var(--color-accent);
    background-color: var(--color-bg-hover);
}

.custom-dropdown-toggle:focus,
.custom-dropdown.open .custom-dropdown-toggle {
    outline: none;
    border-color: var(--color-border-focus);
}

.custom-dropdown-toggle-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-dropdown-arrow {
    height: 16px;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-dropdown-item {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.custom-dropdown-item:last-child {
    border-bottom: none;
}

.custom-dropdown-item:hover {
    color: var(--color-accent);
}

.custom-dropdown-item.selected {
    color: var(--color-accent);
    font-weight: 600;
}

.custom-dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.custom-dropdown-menu::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
    border-radius: var(--radius-sm);
}

.custom-dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-sm);
}

/* Action Menu Dropdown Styles */
.action-menu-dropdown {
    position: relative;
    display: inline-block;
}

.action-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
}

.action-menu-toggle:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.action-menu-toggle:focus,
.action-menu-dropdown.open .action-menu-toggle {
    outline: none;
    border-color: var(--color-border-focus);
}

.action-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: 1000;
    display: none;
}

.action-menu-dropdown.open .action-menu-list {
    display: block;
    animation: dropdownFadeIn 0.15s ease;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--color-border);
}

.action-menu-item:last-child {
    border-bottom: none;
}

.action-menu-item:hover {
    background-color: var(--color-accent-glow);
    color: var(--color-accent);
}

.action-menu-item-danger {
    color: var(--color-danger);
}

.action-menu-item-danger:hover {
    background-color: rgba(255, 68, 68, 0.1);
}

.action-menu-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.action-menu-label {
    flex: 1;
}

/* Billing & Pricing Tiers */
.billing-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.pricing-card-featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.01);
}

.pricing-card.current-plan {
    border-color: var(--color-accent);
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-btn-primary-text);
    padding: 0.2rem 0.75rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--color-accent);
    color: var(--color-btn-primary-text);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--color-text-primary);
}

.tier-price {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
}

.tier-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.tier-price .period {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.tier-description {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.tier-features {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 0 0 1.25rem 0;
    flex: 1;
}

.tier-features li {
    padding: 0.25rem 0;
    color: var(--color-text-primary);
    font-size: 0.85rem;
}

.tier-button {
    width: 100%;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-button-primary {
    background: var(--color-accent);
    color: var(--color-btn-primary-text);
    border: 2px solid var(--color-accent);
}

.tier-button-primary:hover {
    border: 2px solid var(--color-accent-strong);
}

.tier-button-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.tier-button-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.tier-button-current {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    cursor: not-allowed;
}

.billing-info {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.billing-info h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.plan-details p {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.plan-details strong {
    color: var(--color-text-secondary);
}

.plan-details span {
    color: var(--color-text-primary);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .pricing-tiers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
    
    .pricing-card-featured {
        transform: scale(1);
    }
}

/* New Billing Page Styles */
.billing-container {
    max-width: 800px;
    margin: 0 auto;
}

.billing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-border);
}

.billing-header h1 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--color-text-primary);
}

.current-plan-badge {
    margin-top: 0.5rem;
}

.plan-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.plan-name {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-change-plan {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: var(--color-btn-primary-text);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-change-plan:hover {
    background: var(--color-accent-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.usage-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.usage-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--color-text-primary);
}

.usage-item {
    margin-bottom: 2rem;
}

.usage-item:last-child {
    margin-bottom: 0;
}

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

.usage-title {
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 1rem;
}

.usage-value {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--color-bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
    border-radius: 2px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-unlimited {
    background: linear-gradient(90deg, 
        var(--color-accent) 0%, 
        var(--color-accent-strong) 50%, 
        var(--color-accent) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.usage-warning {
    margin-top: 0.5rem;
    color: var(--color-error);
    font-size: 0.85rem;
    font-weight: 500;
}

.usage-info {
    margin-top: 0.5rem;
    color: var(--color-warning, #f59e0b);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .billing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .btn-change-plan {
        width: 100%;
        text-align: center;
    }
    
    .usage-section {
        padding: 1.5rem;
    }
}

/* ============================================
   Billing Page Styles
   ============================================ */

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
}

.page-container h1 {
    color: var(--color-text-primary);
}

.empty-state {
    text-align: center;
    padding: var(--space-xl);
    color: var(--color-text-secondary);
}

.subscription-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

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

.info-label {
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

.info-value {
    color: var(--color-text-primary);
    font-size: 0.875rem;
}

.text-capitalize {
    text-transform: capitalize;
}

.payment-card-info {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .page-container {
        padding: var(--space-md);
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
}

/* Account Page Styles */
.account-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.account-info {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.account-info .info-row {
    display: flex;
    gap: 1rem;
}

.account-info .info-row label {
    font-weight: 600;
    color: var(--color-text-secondary);
    min-width: 80px;
}

.account-info .info-row span {
    color: var(--color-text-primary);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color 0.15s;
}

.password-toggle:hover {
    color: var(--color-text-primary);
}

.password-toggle svg {
    display: block;
}

/* Password Requirements */
.password-requirements {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.valid {
    color: var(--color-success);
}

.requirement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-weight: bold;
}

/* Error and Success Messages */
.error-message {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-md);
    color: var(--color-error);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.success-message {
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--color-success);
    border-radius: var(--radius-md);
    color: var(--color-success);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Email Verification Page Styles */
.verify-instructions {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
}

.verify-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.otp-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.otp-digit {
    width: 45px !important;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    margin: 0 !important;
    transition: border-color 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.verify-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.resend-section {
    text-align: center;
    margin-top: 1rem;
}

.verify-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    text-align: center;
}

.loading-spinner {
    text-align: center;
    font-size: 2rem;
    margin: 2rem 0;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
