.web-main {
    min-height: 100dvh;
    display: flex;
    align-items: start;
    justify-content: center;
    padding: 200px 10px 60px 10px;
    box-sizing: border-box;
}

.guest-auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: rgba(58, 44, 30, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    border: solid 3px #3a2c1e;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s ease;
    background-image: radial-gradient(at 25% 30%, rgba(74, 60, 42, 0.3) 0%, transparent 40%),
                      radial-gradient(at 75% 70%, rgba(33, 77, 38, 0.3) 0%, transparent 50%);
    min-height: 560px;
}

.guest-toggle {
    display: flex;
    border-bottom: 1px solid rgba(74, 60, 42, 0.3);
}

.toggle-btn {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #6b5a48;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: #214d26;
    border-bottom: 3px solid #c9a449;
}

.guest-form {
    padding: 30px;
    display: none;
    min-height: 500px;
}

.guest-form.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

.guest-form form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guest-submit {
    margin-top: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.guest-icon {
    text-align: center;
    margin-bottom: 10px;
}

.guest-icon img {
    width: 100px;
    background: #fff;
    margin-bottom: 10px;
    border-radius: 50%;
    border: solid 3px #19461e;
}

.guest-icon h2 {
    color: #3a2c1e;
    font-size: 1.5rem;
}

.guest-input {
    display: flex;
    align-items: center;
    margin: 5px 0;
    width: 100%;
}

.guest-input label {
    width: 50px;
    height: 50px;
    text-align: center;
    border: solid 2px #4a3c2a;
    padding: 12px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    color: #3a2c1e;
    flex-shrink: 0;
}

.guest-input input {
    flex: 1;
    height: 50px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.9);
    border: solid 2px #4a3c2a;
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.guest-input input:focus {
    border-color: #214d26;
}

.guest-info {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #8b7355;
    margin: 15px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.guest-info i {
    color: #c9a449;
}

.guest-submit {
    width: 100%;
    padding: 12px;
    background: #3a2c1e;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.guest-submit:hover {
    background: #214d26;
    transform: translateY(-2px);
}

.guest-footer {
    text-align: center;
    margin-top: 20px;
    color: #6b5a48;
}

.guest-footer a {
    color: #c9a449;
    text-decoration: none;
    font-weight: 600;
}

.guest-error {
    background: #fee;
    color: #c0392b;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border-left: 4px solid #e74c3c;
}

.guest-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.guest-modal-content {
    background: white;
    max-width: 400px;
    width: 90%;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.guest-modal-content i {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 15px;
}

.guest-cred-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: left;
}

.guest-cred-box p {
    margin: 8px 0;
}

.guest-warning {
    color: #f39c12;
    font-size: 0.7rem;
}

.copy-btn {
    background: #c9a449;
    color: white;
    border: none;
    padding: 3px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.7rem;
    margin-left: 8px;
}

.guest-modal-close {
    background: #3a2c1e;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}

.visitor-wrapper {
    display: flex;
    max-width: 1400px;
    margin: 125px auto 0;
    padding: 20px;
    gap: 30px;
    min-height: calc(100vh - 125px - 350px);
}

.visitor-sidebar {
    width: 280px;
    flex-shrink: 0;
    border: 2px solid #c9a449;
    background: #f8f8f5;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    align-self: flex-start;
    position: sticky;
    top: 145px;
}

.visitor-card {
    padding: 45px 20px 25px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.visitor-avatar {
    width: 100px;
    background: #1f1f1f;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #c9a449;
}

.visitor-card h3 {
    color: #3a2c1e;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.visitor-barcode, .visitor-trans-code {
    font-size: 0.7rem;
    color: #999;
    font-family: monospace;
    margin: 5px 0;
    word-break: break-all;
}

.visitor-link-card {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 14px;
    background: #c9a449;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.visitor-link-card:hover {
    background: #b38f3a;
    transform: translateY(-2px);
}

.visitor-nav {
    padding: 10px 8px;
}

.visitor-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
}

.visitor-nav .nav-link i {
    width: 21px;
    font-size: 1.1rem;
}

.visitor-nav .nav-link:hover {
    background: #f8f9fa;
    color: #c9a449;
}

.visitor-nav .nav-link.active {
    background: linear-gradient(90deg, #fef5e8, transparent);
    color: #c9a449;
    border: 2px solid #c9a449;
    border-radius: 12px;
}

.visitor-nav .badge {
    background: #c9a449;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.visitor-nav .logout {
    margin-top: 15px;
    border-top: 1px solid #eee;
    color: #e74c3c;
}

.visitor-nav .logout:hover {
    background: #fee;
    color: #e74c3c;
}

.visitor-content {
    flex: 1;
    min-width: 0;
}

.visitor-header {
    border: 2px solid #c9a449;
    background: #f8f8f5;
    padding: 20px 25px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.visitor-header h1 {
    color: #3a2c1e;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.guest-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.guest-status-badge.approved, 
.guest-status-badge.selesai { 
    background: #d4edda; 
    color: #155724; 
}

.guest-status-badge.pending { 
    background: #fff3cd; 
    color: #856404; 
}

.guest-status-badge.ditolak { 
    background: #f8d7da; 
    color: #721c24; 
}

.visitor-tab { 
    display: none; 
}

.visitor-tab.active { 
    display: block; 
    animation: fadeIn 0.3s ease;
}

.visitor-category {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #c9a449;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.visitor-category h2 {
    color: #3a2c1e;
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a449;
}

.visitor-category h2 i {
    margin-right: 8px;
    color: #c9a449;
}

.visitor-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.visitor-product {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e0d8c4;
    background: #f7f6f1;
    border-radius: 12px;
    transition: all 0.3s;
}

.visitor-product:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.visitor-product img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

.visitor-product-info {
    flex: 1;
}

.visitor-product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #3a2c1e;
}

.visitor-product-info .price {
    font-weight: 700;
    color: #91752f;
    margin-bottom: 7px;
    font-size: 1rem;
}

.add-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.qty-input {
    width: 55px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
}

.btn-add {
    background: #886e2b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.btn-add:hover {
    background: #b38f3a;
}

.visitor-cart, .visitor-history {
    background: white;
    border: 2px solid #c9a449;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.visitor-cart h2, .visitor-history h2 {
    color: #3a2c1e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a449;
}

.cart-table-container {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.cart-table th, .cart-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background: #9e8033;
    font-weight: 600;
    color: #ffffff;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-product img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1;
}

.qty-edit {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
}

.btn-remove {
    color: #e74c3c;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-remove:hover {
    color: #c0392b;
}

.total-label { 
    text-align: right; 
    font-weight: 600; 
}

.total-amount { 
    font-weight: 700; 
    font-size: 1.2rem; 
    color: #c9a449; 
}

.cart-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-update, .btn-checkout {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-update { 
    background: #f0f0f0; 
    color: #666;
}

.btn-update:hover {
    background: #e0e0e0;
}

.btn-checkout { 
    background: linear-gradient(135deg, #3a2c1e, #214d26); 
    color: white;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58,44,30,0.3);
}

.empty-cart, .empty-history {
    text-align: center;
    padding: 50px;
}

.empty-cart i, .empty-history i {
    font-size: 50px;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-cart p, .empty-history p {
    color: #999;
}

.btn-shop {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background: #c9a449;
    color: white;
    text-decoration: none;
    border-radius: 25px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.history-item:hover {
    transform: translateX(5px);
}

.history-item.ditolak { 
    border-left: 4px solid #e74c3c; 
}

.history-item.selesai { 
    border-left: 4px solid #2ecc71; 
}

.history-item img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
}

@media (min-width: 992px) {
    .meteor-shape {
        border-bottom: 4px solid #c9a449;
    }
}


.history-info { 
    flex: 1; 
}

.history-info h4 { 
    font-size: 0.95rem; 
    color: #3a2c1e; 
    margin-bottom: 5px;
}

.history-info p { 
    font-size: 0.8rem; 
    color: #666; 
    margin: 3px 0;
}

.history-info small { 
    font-size: 0.7rem; 
    color: #999; 
}

.history-status { 
    text-align: right; 
}

.guest-pending {
    min-height: calc(100vh - 115px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5, #fff);
    padding: 40px 20px;
    margin-top: 115px;
}

.guest-pending-card {
    max-width: 400px;
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.guest-pending-card i {
    font-size: 65px;
    color: #f39c12;
    margin-bottom: 20px;
}

.guest-pending-card h2 {
    color: #3a2c1e;
    margin-bottom: 15px;
}

.guest-pending-card p {
    color: #666;
    margin-bottom: 10px;
}

.guest-logout-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: #e74c3c;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
}

.guest-logout-btn:hover {
    background: #c0392b;
}

@media (max-width: 992px) {
    .web-main {
        padding: 145px 15px 30px 15px;
    }

    .guest-auth-container {
        min-height: 350px;
        margin-top: 0;
    }

    
    .guest-form {
        padding: 15px;
        min-height: 300px;
    }

    .visitor-wrapper {
        flex-direction: column;
        margin-top: 115px;
        padding: 15px;
    }
    
    .visitor-sidebar {
        width: 100%;
        position: relative;
        top: 20px;
    }
    
    .visitor-nav {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
        gap: 5px;
    }
    
    .visitor-nav .nav-link {
        flex: 1;
        min-width: 100px;
        justify-content: center;
        padding: 10px;
        border-radius: 10px;
    }
    
    .visitor-nav .nav-link.active {
        border: 2px solid #c9a449;
    }
    
    .visitor-nav .logout {
        margin-top: 0;
        border-top: none;
    }
    
    .visitor-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: left;
        padding: 20px 15px;
        gap: 2px;
    }

    .visitor-barcode, .visitor-trans-code {
        margin: 0;
    }
    
    .visitor-card .visitor-avatar {
        width: 80px;
        margin: 0;
    }

    .cart-table th, .cart-table td {
        padding: 10px;
    }
    
    .visitor-card-info {
        flex: 1;
        margin-left: 15px;
    }
    
    .visitor-card h3 {
        margin-bottom: 3px;
    }
    
    .visitor-products {
        grid-template-columns: 1fr;
    }

    .guest-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .guest-input {
        margin: 3.5px;
    }

    .guest-input label {
        width: 43px;
        height: 43px;
        padding: 8px;
    }

    .guest-input input {
        flex: 1;
        height: 43px;
        padding: 0 10px;
    }

    .visitor-cart, .visitor-history {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .visitor-wrapper {
        margin-top: 105px;
    }
    
    .visitor-nav .nav-link {
        min-width: 80px;
        font-size: 0.85rem;
        padding: 8px;
    }
    
    .visitor-header h1 {
        font-size: 1.2rem;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn-update, 
    .btn-checkout {
        width: 100%;
        text-align: center;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .history-status {
        text-align: center;
        margin-top: 10px;
    }
    
    .visitor-product {
        flex-direction: column;
        text-align: center;
    }
    
    .visitor-product img {
        margin: 0 auto;
    }
    
    .add-form {
        justify-content: center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}