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

@font-face {
    font-family: 'Miskan';
    src: url('../fonts/Miskan.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #FAFAFA;
    color: #111827;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('../negarasa-logo.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
}

.brand-name {
    font-family: 'Miskan', 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #FF4500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.member-name {
    font-weight: 500;
    color: #4B5563;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(to right, #FF6B35, #FF4500);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 69, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: #FF6B35;
    border: 2px solid #FFE5D9;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-secondary:hover {
    background: #FFF5F0;
}

.btn-cta {
    background: linear-gradient(to right, #FF6B35, #FF4500);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(255, 69, 0, 0.3);
    text-decoration: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 69, 0, 0.4);
}

.btn-block {
    width: 100%;
}

.btn-text {
    background: none;
    border: none;
    color: #FF4500;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: underline;
    margin-top: 1rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, #FFF5F0 0%, #FAFAFA 100%);
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 2rem;
}

/* Menu Section */
.menu-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #111827;
}

.category-filter {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #FFE5D9;
    background: white;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #4B5563;
}

.category-btn.active {
    background: linear-gradient(to right, #FF6B35, #FF4500);
    color: white;
    border-color: transparent;
}

.category-btn:not(.active):hover {
    background: #FFF5F0;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid #F3F4F6;
}

.menu-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.menu-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #F3F4F6;
}

.menu-item-content {
    padding: 1.25rem;
}

.menu-item-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.menu-item-description {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 1rem;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-price {
    font-weight: 700;
    font-size: 1.25rem;
    color: #FF4500;
}

.menu-item-category {
    font-size: 0.75rem;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-inner {
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center;
}

.modal-content {
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: 300;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #4B5563;
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

.modal-subtitle {
    color: #6B7280;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

/* Input */
.input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: #F9FAFB;
    transition: all 0.2s;
}

.input:focus {
    outline: none;
    border-color: #FF6B35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Dashboard */
.dashboard-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.points-card {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    text-align: center;
}

.points-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.points-value {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: #FF6B35;
}

.points-info {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* QR Section */
.qr-section {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    text-align: center;
}

.qr-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.qr-subtitle {
    color: #6B7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.qr-container {
    display: inline-block;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#qrcode {
    max-width: 100%;
    height: auto !important;
}

.member-phone {
    margin-top: 1rem;
    font-weight: 600;
    color: #4B5563;
    font-size: 1.125rem;
}

/* Transactions */
.transactions-section {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.transactions-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 0.75rem;
    border-left: 4px solid transparent;
}

.transaction-item.earn {
    border-left-color: #10B981;
}

.transaction-item.redeem {
    border-left-color: #EF4444;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.transaction-date {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.transaction-points {
    font-weight: 700;
    font-size: 1.125rem;
}

.transaction-points.earn {
    color: #10B981;
}

.transaction-points.redeem {
    color: #EF4444;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #6B7280;
    transition: all 0.2s;
}

.tab-btn.active {
    background: linear-gradient(to right, #FF6B35, #FF4500);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #F3F4F6;
}

.member-info h4 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.member-info p {
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.points-preview {
    background: #FFF5F0;
    border: 2px solid #FFE5D9;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 600;
    color: #FF4500;
}

textarea.input {
    resize: vertical;
    font-family: inherit;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .points-value {
        font-size: 3rem;
    }
}

@media (max-width: 450px) {
    .member-name {
        display: none;
    }
}