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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00bfff;
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.6);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00bfff;
    background: rgba(0, 191, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #00bfff, #00ffff);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 191, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.875rem;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-footer p {
    color: rgba(255, 255, 255, 0.6);
}

.auth-footer a {
    color: #00bfff;
    text-decoration: none;
}

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

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
}

/* Account Layout */
.account-layout {
    min-height: 100vh;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.account-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00bfff;
    text-decoration: none;
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome {
    color: rgba(255, 255, 255, 0.7);
}

.logout-link {
    color: #00bfff;
    text-decoration: none;
}

.logout-link:hover {
    text-decoration: underline;
}

.account-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.back-link {
    color: #00bfff;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00bfff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-top: 5px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
}

.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-number {
    font-weight: 600;
    display: block;
}

.order-date {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.order-body {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-details {
    display: flex;
    gap: 30px;
}

.detail .label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    display: block;
}

.detail .value {
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.large {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.status-pending {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
}

.status-processing {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
}

.status-shipped {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
}

.status-delivered {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.status-cancelled, .status-refunded {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

.status-paid {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.status-failed {
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
}

/* Order Detail */
.order-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.order-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
}

.order-section h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #00bfff;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.item-info {
    flex: 1;
}

.item-name {
    display: block;
    font-weight: 500;
}

.item-options {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.item-qty {
    width: 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.item-price {
    width: 80px;
    text-align: right;
    font-weight: 600;
}

.order-totals {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.7);
}

.total-final {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
    padding-top: 15px;
}

.address-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.address-box p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.tracking-box {
    background: rgba(0, 191, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.tracking-number {
    font-family: monospace;
    font-size: 1.1rem;
    color: #00bfff;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.info-row span:first-child {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .account-header {
        padding: 15px 20px;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .order-body {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .order-details {
        flex-wrap: wrap;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
