:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --card-border: 1px solid rgba(212, 175, 55, 0.2);
    --gold: #D4AF37;
    --gold-light: #F4C430;
    --gold-dim: #AA8C2C;
    --text-main: #FFFFFF;
    --text-muted: #AAAAAA;
    --danger: #FF4444;
    --success: #00C851;
    --font-main: 'Cairo', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
}

p {
    line-height: 1.6;
    color: var(--text-muted);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

/* Utilities */
.container {
    padding: 20px;
    max-width: 480px;
    /* Mobile focused max-width */
    margin: 0 auto;
    width: 100%;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    margin-top: 10px;
}

.btn:active {
    transform: scale(0.98);
}

.btn:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.input-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 18px;
    padding-left: 45px !important;
    cursor: pointer;
}

select.input-field option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

.input-field:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Specific Views */
.login-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 30px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 40%);
}

.logo-area {
    text-align: center;
    margin-bottom: 40px;
}

/* .logo-icon removed */
.logo-img {
    width: 280px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.app-title {
    font-size: 2rem;
    background: linear-gradient(to right, var(--gold), #FFF);
    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-item {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    flex: 1;
}

.nav-item.active {
    color: var(--gold);
}

.nav-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Status Badges */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.bg-gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
}

.bg-green {
    background: rgba(0, 200, 81, 0.2);
    color: var(--success);
}

.bg-red {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--gold);
    border-color: var(--gold);
}

input:checked+.slider:before {
    -webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
    background-color: #000;
}

/* Accordion */
.accordion {
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: right;
    outline: none;
    font-size: 1rem;
    transition: 0.4s;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 5px;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion.active,
.accordion:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.panel {
    padding: 0 15px;
    background-color: rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    border-radius: 0 0 8px 8px;
    margin-bottom: 10px;
}

/* Updated Buttons and Filters */
.btn-outline {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--gold);
    padding: 10px 20px;
    border-radius: 10px;
}

.btn-outline.active {
    background: var(--gold) !important;
    color: #000 !important;
    border-color: var(--gold) !important;
}

.filter-bar {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 18px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold-dim), var(--gold));
    color: #000;
    border-color: var(--gold);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* Timeline Styling */
.timeline {
    position: relative;
    padding-right: 25px;
    margin-top: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    right: -25px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
    border: 3px solid var(--bg-color);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.order-item {
    transition: transform 0.2s;
    border-left: 4px solid var(--gold);
}

.order-item:hover {
    transform: scale(1.02);
}