/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --teal: #2B8E8E;
    --lime: #73B03A;
    --neon: #5CD85A;
    --royal: #278ED5;
    --white: #FFFFFF;
    --gray: #e0e0e0;
    --dark: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(43, 142, 142, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--teal);
    text-decoration: none;
    border: 2px solid var(--teal);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.logo:hover {
    background: var(--teal);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 142, 142, 0.3);
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-btn, .user-info {
    background: transparent;
    color: var(--teal);
    border: 2px solid transparent;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 142, 142, 0.1), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    color: white;
    background: var(--teal);
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 142, 142, 0.25);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--teal), var(--royal));
    color: white;
    border: none;
    font-weight: 600;
}

.btn-logout {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
}

.btn-logout:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 90, 111, 0.3);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(43, 142, 142, 0.95), rgba(39, 142, 213, 0.95)),
                url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="a" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23a)"/></svg>');
    color: white;
    padding: 100px 60px;
    text-align: center;
    border-radius: 30px;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -20px) scale(1.1); }
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: white;
    color: var(--teal);
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--neon);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(92, 216, 90, 0.4);
}

/* Center Button Container */
.center-btn-container {
    text-align: center;
    margin: 50px 0;
}

/* Bilik Status */
.bilik-section {
    background: white;
    padding: 50px;
    border-radius: 30px;
    margin-bottom: 50px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.bilik-section h2 {
    text-align: center;
    color: var(--teal);
    margin-bottom: 40px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.bilik-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--royal));
    border-radius: 2px;
}

.bilik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.bilik-item {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.bilik-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--teal), var(--royal));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bilik-item:hover::before {
    transform: scaleX(1);
}

.bilik-item.terpakai {
    background: linear-gradient(135deg, #ffe5e5, #ffebee);
    border-color: #ff6b6b;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15);
}

.bilik-item.kosong {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    border-color: var(--neon);
    box-shadow: 0 8px 25px rgba(92, 216, 90, 0.15);
}

.bilik-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.bilik-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.bilik-status {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-terpakai {
    color: #ff6b6b;
}

.status-kosong {
    color: var(--neon);
}

/* Paket Grid */
.paket-section {
    margin: 60px 0;
}

.paket-section h2 {
    text-align: center;
    color: var(--teal);
    margin-bottom: 50px;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.paket-section h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--teal), var(--neon), var(--royal));
    border-radius: 3px;
}

.paket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.paket-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.paket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(43, 142, 142, 0.05), transparent);
    transition: left 0.6s;
}

.paket-card:hover::before {
    left: 100%;
}

.paket-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(43, 142, 142, 0.2);
    border-color: var(--teal);
}

.paket-card h3 {
    color: var(--teal);
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.paket-price {
    font-size: 38px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), var(--royal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 20px 0;
    letter-spacing: -1px;
}

.paket-desc {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.8;
    min-height: 60px;
}

.btn-pilih {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    margin-top: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(43, 142, 142, 0.25);
    text-transform: uppercase;
}

.btn-pilih:hover {
    background: linear-gradient(135deg, var(--royal), var(--teal));
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(43, 142, 142, 0.35);
}

/* Form Styles */
.form-container {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.form-container h2 {
    color: var(--teal);
    margin-bottom: 35px;
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(43, 142, 142, 0.1);
    transform: translateY(-2px);
}

.form-control:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.btn-submit {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    color: white;
    padding: 16px;
    border: none;
    border-radius: 50px;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(43, 142, 142, 0.25);
    text-transform: uppercase;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--royal), var(--teal));
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(43, 142, 142, 0.35);
}

.form-link {
    text-align: center;
    margin-top: 25px;
    color: #6c757d;
    font-size: 15px;
}

.form-link a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.form-link a:hover {
    color: var(--royal);
    text-decoration: underline;
}

/* Success Page */
.success-container {
    text-align: center;
    background: white;
    padding: 60px 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--neon), #4cd137);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: white;
    box-shadow: 0 15px 40px rgba(92, 216, 90, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-container h2 {
    color: var(--teal);
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.order-info {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 35px;
    border-radius: 20px;
    margin: 35px 0;
    text-align: left;
    border: 2px solid rgba(43, 142, 142, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.order-info h3 {
    color: var(--teal);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.order-info p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.8;
    padding: 10px 0;
    border-bottom: 1px solid rgba(43, 142, 142, 0.1);
}

.order-info p:last-child {
    border-bottom: none;
}

.order-info strong {
    color: var(--teal);
    font-weight: 700;
}

/* Status Page */
.status-container {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.status-header {
    text-align: center;
    margin-bottom: 40px;
}

.status-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.status-badge {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    margin: 15px 0;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-proses {
    background: linear-gradient(135deg, #fff3cd, #ffeeba);
    color: #856404;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
}

.status-dicuci {
    background: linear-gradient(135deg, #cce5ff, #b8daff);
    color: #004085;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.status-selesai {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
}

/* Payment Page */
.payment-container {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 550px;
    margin: 0 auto;
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.payment-info {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid rgba(43, 142, 142, 0.1);
}

.payment-info p {
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
}

.payment-total {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), var(--royal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 30px 0;
    letter-spacing: -2px;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-label {
    display: block;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 2px dashed var(--teal);
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    color: var(--teal);
}

.file-upload-label:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    border-color: var(--royal);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43, 142, 142, 0.15);
}

/* Profile Page */
.profile-container {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin: 0 auto;
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--teal), var(--royal));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    font-weight: 800;
    box-shadow: 0 15px 40px rgba(43, 142, 142, 0.3);
    border: 5px solid white;
    animation: avatarFloat 3s ease-in-out infinite;
}

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.profile-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--teal);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.profile-header p {
    color: #6c757d;
    font-size: 16px;
}

.poin-badge {
    background: linear-gradient(135deg, var(--neon), #4cd137);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 18px;
    display: inline-block;
    margin: 15px 0;
    box-shadow: 0 8px 25px rgba(92, 216, 90, 0.3);
    letter-spacing: 1px;
}

/* Admin Styles */
.admin-container {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(43, 142, 142, 0.1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(43, 142, 142, 0.1);
}

.admin-header h1 {
    color: var(--teal);
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    color: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(43, 142, 142, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(43, 142, 142, 0.35);
}

.dashboard-card:hover::before {
    transform: rotate(180deg);
}

.dashboard-card h3 {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.dashboard-card .value {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 25px;
    background: white;
}

th, td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #f1f3f5;
}

th {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

th:first-child {
    border-top-left-radius: 15px;
}

th:last-child {
    border-top-right-radius: 15px;
}

tr {
    transition: all 0.3s;
}

tr:hover {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    transform: scale(1.01);
}

tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.btn-action {
    padding: 8px 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    margin: 0 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-valid {
    background: linear-gradient(135deg, var(--neon), #4cd137);
    color: white;
    box-shadow: 0 4px 12px rgba(92, 216, 90, 0.3);
}

.btn-valid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(92, 216, 90, 0.4);
}

.btn-check {
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 193, 7, 0.4);
}

.btn-edit {
    background: linear-gradient(135deg, var(--royal), var(--teal));
    color: white;
    box-shadow: 0 4px 12px rgba(39, 142, 213, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(39, 142, 213, 0.4);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.4);
}

/* Bilik Toggle Admin */
.bilik-item.clickable {
    cursor: pointer;
}

.bilik-item.clickable:hover {
    transform: scale(1.08) translateY(-8px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 80px;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/* Alert Messages */
.alert {
    padding: 18px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #b1dfbb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #f1b0b7;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border: 2px solid #abdde5;
}

/* Responsive Design */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
        margin: 30px auto;
    }
    
    .hero h1 {
        font-size: 48px;
    }
    
    .paket-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (481px - 768px) */
@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    /* Header Mobile */
    .header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .logo {
        font-size: 22px;
        padding: 8px 20px;
        letter-spacing: 1.5px;
    }
    
    .nav-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-btn, .user-info {
        padding: 8px 16px;
        font-size: 12px;
        flex: 0 0 auto;
    }
    
    /* Container Mobile */
    .container {
        padding: 0 20px;
        margin: 30px auto;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 50px 25px;
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 36px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .btn-primary {
        padding: 15px 35px;
        font-size: 14px;
        letter-spacing: 0.5px;
    }
    
    /* Bilik Section Mobile */
    .bilik-section {
        padding: 30px 20px;
        border-radius: 20px;
        margin-bottom: 30px;
    }
    
    .bilik-section h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .bilik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .bilik-item {
        padding: 25px 15px;
    }
    
    .bilik-item h3 {
        font-size: 16px;
    }
    
    .bilik-status {
        font-size: 13px;
    }
    
    /* Paket Section Mobile */
    .paket-section {
        margin: 40px 0;
    }
    
    .paket-section h2 {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .paket-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .paket-card {
        padding: 30px 25px;
        border-radius: 20px;
    }
    
    .paket-card h3 {
        font-size: 22px;
    }
    
    .paket-price {
        font-size: 32px;
    }
    
    .paket-desc {
        font-size: 14px;
    }
    
    /* Form Mobile */
    .form-container, .payment-container, .profile-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-container h2, .payment-container h2 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .btn-submit {
        padding: 14px;
        font-size: 14px;
    }
    
    /* Payment Mobile */
    .payment-total {
        font-size: 38px;
        margin: 25px 0;
    }
    
    .payment-info {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 25px;
    }
    
    .payment-info p {
        font-size: 14px;
        margin: 10px 0;
    }
    
    /* Success Page Mobile */
    .success-container {
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .success-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .success-container h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .order-info {
        padding: 25px 20px;
        border-radius: 15px;
        margin: 25px 0;
    }
    
    .order-info h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .order-info p {
        font-size: 14px;
        margin: 12px 0;
        padding: 8px 0;
    }
    
    /* Profile Mobile */
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .profile-header h2 {
        font-size: 26px;
    }
    
    .poin-badge {
        padding: 10px 25px;
        font-size: 16px;
    }
    
    /* Admin Mobile */
    .admin-container {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .admin-header h1 {
        font-size: 28px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .dashboard-card {
        padding: 25px;
        border-radius: 15px;
    }
    
    .dashboard-card h3 {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .dashboard-card .value {
        font-size: 36px;
    }
    
    /* Table Mobile */
    .table-container {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 13px;
    }
    
    th, td {
        padding: 12px 10px;
        white-space: nowrap;
    }
    
    th {
        font-size: 12px;
    }
    
    .btn-action {
        padding: 6px 12px;
        font-size: 11px;
        margin: 2px;
    }
    
    /* Status Badge Mobile */
    .status-badge {
        padding: 8px 20px;
        font-size: 12px;
        margin: 10px 0;
    }
    
    /* Alert Mobile */
    .alert {
        padding: 15px 18px;
        border-radius: 12px;
        margin-bottom: 20px;
        font-size: 14px;
    }
    
    /* Center Button Mobile */
    .center-btn-container {
        margin: 30px 0;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 25px 20px;
        margin-top: 50px;
        font-size: 14px;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    /* Header Extra Small */
    .logo {
        font-size: 20px;
        padding: 6px 16px;
    }
    
    .nav-btn, .user-info {
        padding: 7px 14px;
        font-size: 11px;
    }
    
    /* Container Extra Small */
    .container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    /* Hero Extra Small */
    .hero {
        padding: 40px 20px;
        border-radius: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.4;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn-primary {
        padding: 12px 28px;
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    
    /* Bilik Extra Small */
    .bilik-section {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .bilik-section h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .bilik-section h2::after {
        width: 60px;
        height: 3px;
        bottom: -12px;
    }
    
    .bilik-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .bilik-item {
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .bilik-item h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .bilik-status {
        font-size: 12px;
    }
    
    /* Paket Extra Small */
    .paket-section h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .paket-section h2::after {
        width: 70px;
        height: 4px;
        bottom: -15px;
    }
    
    .paket-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .paket-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .paket-price {
        font-size: 28px;
        margin: 15px 0;
    }
    
    .paket-desc {
        font-size: 13px;
        min-height: 50px;
    }
    
    .btn-pilih {
        padding: 12px 30px;
        font-size: 13px;
        margin-top: 20px;
    }
    
    /* Form Extra Small */
    .form-container, .payment-container, .profile-container {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .form-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .btn-submit {
        padding: 12px;
        font-size: 13px;
    }
    
    /* Payment Extra Small */
    .payment-total {
        font-size: 32px;
        margin: 20px 0;
    }
    
    .payment-info {
        padding: 18px 15px;
    }
    
    .file-upload-label {
        padding: 15px;
        font-size: 13px;
    }
    
    /* Success Extra Small */
    .success-container {
        padding: 30px 15px;
    }
    
    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    
    .success-container h2 {
        font-size: 24px;
    }
    
    .order-info {
        padding: 20px 15px;
    }
    
    .order-info h3 {
        font-size: 18px;
    }
    
    .order-info p {
        font-size: 13px;
        margin: 10px 0;
    }
    
    /* Profile Extra Small */
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .profile-header h2 {
        font-size: 22px;
    }
    
    .profile-header p {
        font-size: 14px;
    }
    
    .poin-badge {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    /* Admin Extra Small */
    .admin-container {
        padding: 25px 15px;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
    
    .dashboard-card {
        padding: 20px;
    }
    
    .dashboard-card h3 {
        font-size: 11px;
    }
    
    .dashboard-card .value {
        font-size: 30px;
    }
    
    /* Table Extra Small */
    table {
        min-width: 550px;
        font-size: 12px;
    }
    
    th, td {
        padding: 10px 8px;
    }
    
    .btn-action {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    /* Status Badge Extra Small */
    .status-badge {
        padding: 6px 16px;
        font-size: 11px;
    }
    
    /* Alert Extra Small */
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* Footer Extra Small */
    .footer {
        padding: 20px 15px;
        font-size: 13px;
    }
}

/* Mobile Extra Small (Max 320px) */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 10px 24px;
        font-size: 12px;
    }
    
    .bilik-grid {
        grid-template-columns: 1fr;
    }
    
    .paket-section h2,
    .bilik-section h2 {
        font-size: 22px;
    }
    
    .form-container h2 {
        font-size: 22px;
    }
    
    .payment-total {
        font-size: 28px;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 40px 30px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .nav-btn,
    .btn-primary,
    .btn-pilih,
    .btn-submit,
    .btn-action {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch */
    .paket-card:hover,
    .bilik-item:hover,
    .nav-btn:hover {
        transform: none;
    }
    
    /* Active states for touch */
    .btn-primary:active,
    .btn-pilih:active,
    .btn-submit:active {
        transform: scale(0.95);
    }
}

/* WhatsApp Link */
.wa-link {
    color: var(--neon);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    word-break: break-word;
}

.wa-link:hover {
    color: var(--teal);
    text-decoration: underline;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background: var(--teal);
    color: white;
}

::-moz-selection {
    background: var(--teal);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--royal), var(--teal));
}

/* Mobile Scrollbar (thinner) */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Glassmorphism Effect for Cards */
.glass-effect {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--teal), var(--royal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
}

.shine-effect:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Text Utilities for Mobile */
@media (max-width: 768px) {
    /* Prevent text overflow */
    h1, h2, h3, h4, h5, h6, p, a, span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Responsive images */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="number"],
    input[type="tel"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Safe Area for iPhone X+ */
@supports (padding: max(0px)) {
    .container,
    .header-container {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .nav-menu,
    .btn-primary,
    .btn-pilih,
    .btn-submit,
    .btn-action {
        display: none;
    }
    
    body {
        background: white;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .nav-btn,
    .btn-primary,
    .btn-pilih {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (Future Ready) */
@media (prefers-color-scheme: dark) {
    /* Uncomment below if you want to add dark mode later
    body {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .form-container,
    .paket-card,
    .bilik-section,
    .admin-container {
        background: #2d2d2d;
        border-color: rgba(255, 255, 255, 0.1);
    }
    */
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 2px;
}

/* Skip to main content (Accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--teal);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--teal);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.p-1 { padding: 10px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }

.hidden { display: none; }
.visible { display: block; }

/* Mobile Only Classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full-width {
        width: 100%;
    }
}