* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #4a1e8a;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2db8);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 10px;
}

.logo h1 {
    margin: 0;
    font-size: 24px;
}

.tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

/* Slide Container */
.slide-container {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

.slider {
    display: flex;
    width: 400%;
    height: 100%;
    animation: slide 20s infinite;
}

.slide {
    width: 25%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes slide {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

.slide-container:hover .slider {
    animation-play-state: paused;
}

.slider-dots {
    text-align: center;
    margin-top: 5px;
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Login Form */
.login-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 6px rgba(0, 0, 0, 0.62);
    color: #333;
    transition: all 0.3s ease;
}

/* Label with IP & MAC inline */
.label-with-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.label-with-info label {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 15px;
}

.device-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.device-info-compact i {
    color: #4CAF50;
    font-size: 11px;
    margin-right: 2px;
}

.device-info-compact .separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

/* Button Styles */
.btn {
    padding: 15px 20px;
    border: none;
    border-radius: 45px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-connect {
    background: #1e5ae3;
    color: white;
    box-shadow: 0 2px 0 #90caf2;
}

.btn-connect:hover {
    background: #2980b9;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #2471a3;
}

.btn-retrieve {
    background: #9a1dce;
    color: white;
    box-shadow: 0 2px 0 #90caf2;
}

.btn-retrieve:hover {
    background: #8e44ad;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #7d3c98;
}

.btn-buy {
    background: #2ecc71;
    color: white;
    padding: 8px 15px;
    font-size: 14px;
    width: 70px;
    box-shadow: 0 3px 0 #27ae60;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

.btn-buy:hover {
    background: #27ae60;
    transform: translateY(2px);
    box-shadow: 0 1px 0 #219653;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button-group .btn {
    flex: 1;
    min-width: 0;
}

/* Voucher Auto-fill Animation */
.voucher-auto-fill {
    animation: pulse 2s ease-in-out;
    border: 2px solid #2ecc71 !important;
    background: rgba(46, 204, 113, 0.1) !important;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.auto-fill-notice {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid #2ecc71;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    display: none;
}

/* Packages Header Scrolling Text */
.packages-header {
    text-align: center;
    margin: 25px 0 5px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 8px;
    height: 40px;
    display: flex;
    align-items: center;
}

.packages-title-wrapper {
    display: flex;
    white-space: nowrap;
    animation: slideText 30s linear infinite;
}

.packages-title {
    font-size: 14px;
    font-weight: bold;
    color: #00ff6ca3;
    padding-right: 40px;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes slideText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Packages Table */
.packages {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.packages th {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.packages th:nth-child(1) { width: 40%; text-align: center; }
.packages th:nth-child(2) { width: 30%; text-align: center; }
.packages th:nth-child(3) { width: 30%; text-align: center; }

.packages td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    vertical-align: middle;
}

.packages tr:last-child td { border-bottom: none; }
.packages tr:hover { background: rgba(255, 255, 255, 0.05); }

/* Contact Information */
.contact-info {
    margin-top: 25px;
    padding: 5px 0px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    position: relative;
}

.contact-text {
    margin-bottom: 10px;
    font-size: 14px;
    color: #ffffff;
}

.contact-phone {
    font-weight: bold;
    color: #357596;
    font-size: 18px;
    margin-bottom: 5px;
}

.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #45d67b;
    font-size: 16px;
    margin-top: 2px;
}

.whatsapp-icon {
    color: #45d67b;
    font-size: 20px;
    transition: all 0.3s ease;
}

.whatsapp-icon:hover { transform: scale(1.2); }

/* Warning Box */
.warning-box {
    background: rgba(32, 25, 3, 0.35);
    border: 1px solid rgba(255, 193, 7, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    text-align: left;
}

.warning-box h3 {
    color: #ffc107;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box ul {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.warning-box li {
    margin-bottom: 5px;
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #4b3787, #3A6073);
    border-radius: 18px;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.retrieve-modal-content {
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #f97316;
}

.modal-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ccc;
}

.modal-price {
    font-size: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.input-hint {
    color: #ccc;
    display: block;
    margin-top: 5px;
    font-size: 12px;
}

/* Payment Logos */
.payment-logos {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-logo {
    height: 30px;
    width: auto;
    opacity: 0.9;
}

.payment-text {
    font-size: 14px;
    color: #ccc;
}

.payment-fallback {
    color: #ccc;
    font-size: 13px;
}

/* Retrieve Modal Specific */
.retrieve-instructions {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 14px;
}

.retrieve-option {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.retrieve-option-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
}

.retrieve-option-btn:hover,
.retrieve-option-btn.active {
    background: rgba(155, 89, 182, 0.3);
    border-color: #9b59b6;
}

.retrieve-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-new-link {
    background: none;
    border: none;
    color: #2ecc71;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 5px;
    font-size: 14px;
}

/* Notification */
.notification {
    position: fixed;
    top: 3%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    padding: 15px 25px;
    border-radius: 12px;
    background: #10b981;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 90%;
    min-width: 300px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.notification.error { background: #ef4444; }
.notification.info { background: #3498db; }
.notification.warning { background: #f39c12; }

/* Processing Spinner */
.processing {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Buy Now Button */
.buy-now-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #2ecc71;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.buy-now-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Mobile Optimization */
@media (max-width: 480px) {
    .login-container { padding: 20px; margin: 10px; }
    .logo h1 { font-size: 24px; }
    .logo-img { height: 40px; }
    
    .slide-container { height: 80px; }
    
    .label-with-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .device-info-compact {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .packages th, 
    .packages td { 
        padding: 8px 4px; 
        font-size: 14px; 
    }
    .contact-phone { font-size: 16px; }
    .button-group { flex-direction: column; }
    .retrieve-option { flex-direction: column; }
     .notification { min-width: 280px; padding: 12px 20px; }
    .modal-content { padding: 20px; }
}