/* =========================
   GLOBAL & REUSABLE STYLES
   Used across: all pages
   ========================= */

body {
    margin: 0;
    font-family: Arial, sans-serif;
}

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

/* Header styles (index.php, user_profile.php, cart.php, etc.) */
.header {
    background: #ff6600;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}
.header-links a:hover {
    text-decoration: underline;
}

/* Main header/nav (index.php, user_profile.php) */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
    text-decoration: none;
}

/* Profile Info Table (user_profile.php) */
.profile-info-table {
    max-width: 500px;
    margin: 0 auto 30px auto;
}
.profile-info-table .section-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}
.profile-info-table .info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 12px;
    align-items: center;
    margin-left: 17px;
}
.profile-info-table .edit-link {
    color: #1abc9c;
    font-weight: 500;
    margin-left: 10px;
}
.profile-info-table .verified-badge {
    background: #1abc9c;
    color: #fff;
    border-radius: 5px;
    padding: 2px 10px;
    font-size: 0.95em;
    margin-left: 8px;
}

/* Form and input styles (all forms) */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6600;
    outline: none;
}

/* File upload (used in user_profile.php, tambah_katalog.php, admin forms) */
.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}
.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}
.file-input-label {
    display: block;
    padding: 12px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}
.file-input-label:hover {
    border-color: #ff6600;
    background: #fff5f0;
}
.file-input-label i {
    font-size: 2rem;
    color: #999;
    margin-bottom: 10px;
}
.file-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* Button styles (all pages) */
.btn, .submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary, .submit-btn {
    background: #ff6600;
    color: white;
}
.btn-primary:hover, .submit-btn:hover {
    background: #e55a00;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #5a6268;
}
.btn-danger {
    background: #dc3545;
    color: white;
}
.btn-danger:hover {
    background: #c82333;
}

/* Alerts (all pages) */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive (all pages) */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    .profile-info-table .info-grid {
        grid-template-columns: 1fr;
        margin-left: 0;
    }
}

/* =========================
   ADMIN-SPECIFIC STYLES
   (see assets/admin.css)
   ========================= */
/* See assets/admin.css for admin dashboard, katalog, and admin/user list styles. */

.dashboard {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background-color: #343a40;
    color: white;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    background-color: #495057;
    border-radius: 5px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: #007bff;
}

/* MAIN CONTENT */
.content {
    flex: 1;
    padding: 30px;
    background-color: #f8f9fa;
    overflow-y: auto;
}

/* FORM STYLING */
form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    margin-top: 20px;
    padding: 10px 15px;
    background-color: #007bff;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.logout {
    color: red !important;
    background-color: #ffc107 !important;
}

/* LOGIN PAGE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

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

.login-header i {
    font-size: 3rem;
    color: #ff6600;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    background: #ff4757;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.success-message {
    background: #2ed573;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.back-link {
    margin-top: 20px;
    display: block;
    color: #ff6600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #e55a00;
    text-decoration: underline;
}

.login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-links .back-link {
    margin-top: 0;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-icon input {
    padding-left: 45px;
}

.input-icon select,
.input-icon textarea {
    padding-left: 45px;
}

/* Label icon for form labels */
.label-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    color: #ff6600;
    font-size: 1.1em;
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

/* --- Cart Page Styles --- */
.cart-container {
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    padding: 30px 20px 40px 20px;
}

.cart-title {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.cart-table th,
.cart-table td {
    padding: 14px 10px;
    text-align: left;
}

.cart-table th {
    background: #ff6600;
    color: white;
    font-weight: 600;
}

.cart-table tr {
    border-bottom: 1px solid #eee;
}

.cart-table tr:last-child {
    border-bottom: none;
}

.cart-table td {
    vertical-align: middle;
}

.cart-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.cart-remove {
    color: #ff4757;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-remove:hover {
    color: #c82333;
}

.cart-discount-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    vertical-align: middle;
    margin-left: 0;
    margin-top: 0;
    position: static;
}

.cart-qty-input {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.cart-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cart-btn,
.checkout-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-btn {
    margin-top: 20px;
    text-decoration: none;
    background: #eee;
    color: #ff6600;
}

.cart-btn:hover {
    background: #ff6600;
    color: white;
}

.checkout-btn {
    background: #25d366;
    color: white;
}

.checkout-btn:hover {
    background: #22c55e;
}

.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 0;
}

@media (max-width: 600px) {
    .cart-container {
        padding: 10px;
    }

    .cart-title {
        font-size: 1.2rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px 4px;
        font-size: 0.95rem;
    }
}

/* index.php */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

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

/* Header */
.header {
    background: #ff6600;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.header-links a:hover {
    text-decoration: underline;
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6600;
    text-decoration: none;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #ff6600;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 0rem;
    top: 3px;
    transform: translateY(-49%);
    background: #ff6600;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
}

.mode-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.mode-btn {
    padding: 10px 20px;
    border: 2px solid #ff6600;
    background: white;
    color: #ff6600;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0 !important;
}

.mode-btn.active {
    background: #ff6600;
    color: white;
}

.mode-btn:hover {
    background: #ff6600;
    color: white;
}

/* Categories */
.categories-bar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.categories-container {
    display: flex;
    gap: 30px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
}

.category-item:hover {
    background: #fff5f0;
    color: #ff6600;
}

.category-item.active {
    background: #ff6600;
    color: white;
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.category-name {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Banner */
.banner-section {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 20px;
}

.banner-content {
    text-align: center;
}

.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.features-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 20px;
}

/* Main Content */
.main-content {
    background: white;
    min-height: 100vh;
}

/* Buy Mode */
.buy-section {
    padding: 20px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 1.5rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

.product-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.3;
}

.product-specs {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.product-location {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6600;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.buy-btn {
    width: 100%;
    padding: 8px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.buy-btn:hover {
    background: #e55a00;
}

/* Sell Mode */
.sell-section {
    padding: 30px 0;
    background: #f8f9fa;
    display: none;
}

.sell-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.sell-header h2 {
    color: #ff6600;
    margin-bottom: 10px;
}

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

.submit-btn {
    background: #25d366;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #22c55e;
}

/* Special Sections */
.special-section {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    padding: 40px 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.package-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.package-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.package-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.package-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    color: #ff6600;
    margin-bottom: 15px;
}

.footer-section p {
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        order: 2;
        max-width: 100%;
    }

    .mode-buttons {
        order: 1;
    }

    .categories-container {
        gap: 15px;
    }

    .banner-content h1 {
        font-size: 2rem;
    }

    .features-row {
        gap: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

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

.hidden {
    display: none;
}

/* Loading and animations */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Profile Page Styles (user_profile.php) */
.profile-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.profile-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    padding: 30px;
    text-align: center;
}
.profile-avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 2.5rem;
}
.profile-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.profile-username {
    opacity: 0.9;
    font-size: 1rem;
}
.profile-content {
    padding: 30px;
}
.profile-section {
    margin-bottom: 30px;
}
.section-title {
    font-size: 1.3rem;
    color: #ff6600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.info-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #ff6600;
}
.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}
.info-value {
    font-weight: 500;
    color: #333;
}

/* Login/Register Styles (admin/register.php, admin/login.php) */
.login-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 40px;
    width: 100%;
    max-width: 500px;
}
.login-header {
    text-align: center;
    margin-bottom: 30px;
}
.login-header i {
    font-size: 3rem;
    color: #ff6600;
    margin-bottom: 15px;
}
.login-header h2 {
    color: #333;
    margin-bottom: 10px;
}
.login-header p {
    color: #666;
}
.login-btn {
    width: 100%;
    padding: 15px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.login-btn:hover {
    background: #e55a00;
}
.login-btn:active {
    transform: translateY(0);
}
.login-links {
    margin-top: 25px;
    text-align: center;
}
.back-link {
    display: inline-block;
    color: #ff6600;
    text-decoration: none;
    margin: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}
.back-link:hover {
    background: #ff6600;
    color: white;
}
.input-icon {
    position: relative;
}
.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.input-icon input {
    padding-left: 45px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .login-container {
        padding: 30px 20px;
    }
}

/* Cart Confirmation Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    max-width: 430px;
    width: 95%;
    padding: 0;
    z-index: 1001;
    animation: modalIn 0.2s;
    overflow: hidden;
}
@keyframes modalIn {
    from { transform: translateY(40px) scale(0.98); opacity: 0; }
    to { transform: none; opacity: 1; }
}
.modal-header {
    padding: 22px 28px 10px 28px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 700;
}
.modal-content {
    padding: 22px 28px 18px 28px;
    font-size: 1.08rem;
    color: #222;
}
.modal-content ul {
    margin: 8px 0 0 18px;
    padding: 0;
}
.modal-content .order-total {
    font-weight: bold;
    font-size: 1.1em;
    margin: 10px 0 12px 0;
    color: #222;
}
.modal-content .bank-info {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 18px 0 12px 0;
    font-size: 1.05em;
}
.modal-content .bank-info b {
    color: #222;
}
.modal-content .bank-info .bank-number {
    font-size: 1.15em;
    color: #222;
    font-weight: bold;
    letter-spacing: 1px;
}
.modal-content .modal-warning {
    color: #ff6600;
    font-weight: 600;
    margin-top: 10px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 28px 22px 28px;
    margin-top: 0;
}
.modal-actions button {
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1.08rem;
    cursor: pointer;
    background: #ff6600;
    color: #fff;
    transition: background 0.2s;
}
.modal-actions button.cancel {
    background: #ccc;
    color: #333;
}
.modal-actions button:hover:not(.cancel) {
    background: #e55a00;
}
@media (max-width: 600px) {
    .modal {
        max-width: 99vw;
        padding: 0;
    }
    .modal-header, .modal-content, .modal-actions {
        padding-left: 12px;
        padding-right: 12px;
    }
}