body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background-color: #0b0f14;
    color: #e0e0e0;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #0e1218;
    border-bottom: 1px solid #1c2230;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
}

.logo img {
    width: 200px;
			height: auto;
			display: block;
}

/* Nav */
.nav-links a {
    margin-left: 24px;
    text-decoration: none;
    color: #cfd8dc;
    font-size: 14px;
}

.nav-links a.primary {
    color: #1e88e5;
}

.auth-container {
    min-height: calc(100vh - 80px);
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.auth-card {
    width: 360px;
    background-color: #0e1218;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #1c2230;
}

.auth-card h2 {
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #9aa4ad;
    margin-bottom: 24px;
}

/* Inputs */
.auth-card input {
    width: 100%;
    padding: 12px;
    margin-top: 14px;
    background-color: #0b0f14;
    border: 1px solid #1c2230;
    color: #fff;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: block;
    margin-top: 22px;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.btn.primary {
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
}

.btn.secondary {
    background-color: transparent;
    border: 1px solid #1e88e5;
    color: #1e88e5;
}

/* Error */
.error {
    margin-top: 12px;
    color: #ff6b6b;
    font-size: 13px;
}
.success {
    margin-top: 12px;
    color: #4caf50;
    font-size: 13px;
}
.subtitle {
    font-size: 13px;
    color: #9aa4ad;
    margin-bottom: 20px;
}

/* Phone group refinement */
.phone-group {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.phone-group select {
    width: 42%;
    background-color: #0b0f14;
    border: 1px solid #1c2230;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
}

.phone-group input {
    width: 58%;
}
.auth-card button {
    margin-top: 26px;
}
.dropdown a {
    display: block;
    margin-top: 8px;
    color: #cfd8dc;
    text-decoration: none;
}

.user-email {
    font-size: 13px;
    color: #9aa4ad;
    margin-bottom: 8px;
}
.auth-container form {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}
.auth-container h2 {
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 500;
    text-align: center;
    color: #ffffff;
}
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
}

.auth-container input::placeholder {
    color: #777;
}
.auth-container button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background: #2962ff;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.auth-container button:hover {
    background: #1e4ed8;
}
.auth-container .error {
    margin-top: 16px;
    font-size: 13px;
    color: #ff6b6b;
    text-align: center;
}
.auth-container input:focus {
    outline: none;
    border-color: #2962ff;
}

.user-menu .user-email {
    padding: 8px 16px;
    font-size: 14px;
    color: #cfd6df;
    border-bottom: 1px solid #222;
    margin-bottom: 6px;
}
.user-menu .dropdown a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

.user-menu .dropdown a:hover {
    background: #1a1a1a;
}

.user-menu .avatar {
    cursor: pointer;
}

.user-menu .dropdown {
    position: absolute;
    right: 0;
    top: 40px;

    min-width: 220px;
    background: #0f0f0f;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 8px 0;

    text-align: left;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);

    display: none;      /* IMPORTANT */
    z-index: 9999;
}
.auth-container .success {
    margin-top: 16px;
    font-size: 13px;
    color: #4caf50;
    text-align: center;
}
.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    width: 100%;
    height: 44px;              /* 🔒 lock height */
    line-height: 44px;         /* 🔒 lock text vertical alignment */
    padding: 0 40px 0 12px;    /* space for eye icon */
    box-sizing: border-box;
    font-size: 14px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    opacity: 0.8;
}

.toggle-password:hover {
    opacity: 1;
}
.input-group {
    position: relative;
    margin-bottom: 16px;   /* 👈 GAP BETWEEN INPUTS (always visible) */
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 12px; /* space for eye icon */
    box-sizing: border-box;
}

.hint {
    font-size: 13px;
    color: #9aa4b2;
    margin: -6px 0 12px;
}
.forgot-link {
    text-align: right;
    margin-top: 8px;
}

.forgot-link a {
    color: #6b7cff;
    font-size: 13px;
    text-decoration: none;
}

.forgot-link a:hover {
    text-decoration: underline;
}


/* Make subscription container truly wide */
.auth-card.wide {
    width: 100%;
    max-width: 1100px;
}
.plan-card form {
    margin-top: 16px;
    width: 100%;
    display: flex;
    justify-content: center;
}
 .plan-card form button {
    width: 160px;
    margin: 0 auto;
}

.plan-card.highlight {
    border: 2px solid #238636;
    box-shadow: 0 0 12px rgba(35, 134, 54, 0.6);
}

/* Ensure grid stays horizontal */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
}

.plan-card {
    background: #161b22;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 0 1px #21262d;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.plan-action {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.plan-action form {
    display: flex;
    justify-content: center;
}

.plan-action button {
    width: 160px;
}


.full-width {
    width: 100%;
    margin-top: 16px;
}

.upgrade-btn {
    pointer-events: auto;
    cursor: pointer;
    z-index: 10;
}

.strategy-card {
    position: relative;
}
.upgrade-banner {
    background: rgba(35, 134, 54, 0.15);
    border: 1px solid #238636;
    padding: 14px;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #c9f5d3;
    font-weight: 600;
}

.upgrade-banner span {
    font-size: 14px;
}
.deploy-wrapper[title] {
    cursor: not-allowed;
}
.info {
    margin: 12px 0 18px;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(56, 139, 253, 0.15);
    color: #58a6ff;
    text-align: center;
    font-weight: 500;
}

.warning {
    margin: 12px 0 18px;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(255, 193, 7, 0.15);
    color: #f1c40f;
    text-align: center;
    font-weight: 500;
}
.badge-recommended {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #238636;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(35,134,54,0.6); }
    70% { box-shadow: 0 0 0 14px rgba(35,134,54,0); }
    100% { box-shadow: 0 0 0 0 rgba(35,134,54,0); }
}

.plan-card.pulse {
    animation: pulseGlow 1.8s ease-out 2;
}
.per-day {
    font-size: 13px;
    color: #8b949e;
    margin-top: 4px;
}
.plan-card.disabled {
    opacity: 0.45;
    pointer-events: none;
}
/* Header user menu */
.user-menu {
    position: relative;
    display: inline-block;
}

/* Avatar */
.avatar {
    cursor: pointer;
    font-size: 18px;
}

/* Dropdown hidden by default */
.dropdown {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    min-width: 180px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    z-index: 9999;   /* 🔴 THIS IS CRITICAL */
}

/* Show dropdown */
.dropdown.open {
    display: block;
}
/* ===== Admin Tables ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    background-color: #f6f6f6;
}

.admin-table tr:hover {
    background-color: #fafafa;
}

.admin-table .right {
    text-align: right;
}

/* Warning table (stuck payments) */
.admin-table.warning th {
    background-color: #fff3cd;
}
