/* Profile Page Styles */

/* Form Elements */
/* Auth Toggles */
input[name="auth-mode"] {
    display: none;
}

input[name="auth-mode"]+span {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 20px;
    background: #333;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

input[name="auth-mode"]:checked+span {
    background: var(--primary);
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(204, 255, 0, 0.2);
}

.form-label {
    display: block;
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
}

.badge-immutable {
    font-size: 0.65rem;
    background: #333;
    color: #888;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

/* Dashboard Profile Card */
.profile-card {
    background: linear-gradient(135deg, #1f1f1f, #111);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 16px 24px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.profile-info h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

/* Details Box */
.details-box {
    background: var(--bg-card);
    margin: 0 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #888;
    font-size: 0.9rem;
}

.detail-value {
    color: #fff;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ff4d4d;
    color: #ff4d4d;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
    cursor: pointer;
}

/* Orders List */
.orders-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--bg-card);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.order-id {
    font-weight: 700;
    color: #fff;
}

.order-date {
    font-size: 0.8rem;
    color: #888;
}

.order-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.status-badge.shipped {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.status-badge.processing {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.track-link {
    color: var(--primary);
    font-size: 1rem;
    text-decoration: none;
    font-weight: 600;
}

/* Enhanced Auth Button */
#auth-submit-btn {
    background: linear-gradient(135deg, var(--primary), #b8ff01);
    /* Brighter gradient */
    color: #000;
    font-size: 1.1rem;
    font-weight: 800;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
}

#auth-submit-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(204, 255, 0, 0.2);
}

/* Ensure bottom content isn't hidden by nav */
.orders-list {
    padding: 0 16px 120px 16px;
    /* Extra padding at bottom */
    display: flex;
    flex-direction: column;
    gap: 16px;
}