/* ============================================
   style.css - Complete Service Portal System
   Dark Theme with Red & White
   Fixed LTR Layout (Same for English & Arabic)
   ============================================ */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sticky Footer Setup */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- CONTAINER ---------- */
.container {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: #111111;
    border-bottom: 2px solid #dc2626;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    flex-shrink: 0;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.logo i {
    color: #dc2626;
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.nav-link i {
    font-size: 14px;
}

.nav-link:hover {
    background: #dc2626;
    color: white;
    transform: translateY(-2px);
}

.nav-link.logout {
    background: #dc2626;
}

.nav-link.logout:hover {
    background: #b91c1c;
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        padding: 10px;
    }
    .nav-links {
        justify-content: center;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    .nav-link span {
        display: none;
    }
    .nav-link i {
        font-size: 16px;
    }
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-button {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #333;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #dc2626;
    transform: translateX(-4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #111111;
    border-top: 1px solid #222;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    width: 100%;
    flex-shrink: 0;
}

.footer-inner a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.footer-inner a:hover {
    color: #dc2626;
}

/* ============================================
   SUBSCRIPTION TEXT
   ============================================ */
.subscription-text {
    background: #111111;
    border-left: 4px solid #dc2626;
    padding: 14px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
}

.subscription-text .days-left {
    color: #dc2626;
    font-weight: 700;
    font-size: 18px;
}

/* Renew Button Inline */
.renew-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    margin-left: 15px;
    transition: all 0.2s;
}

.renew-btn-inline:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .renew-btn-inline {
        display: inline-flex;
        margin-left: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #111111;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #222;
    transition: all 0.2s ease;
}

.stat-card:hover {
    border-color: #dc2626;
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    color: #dc2626;
}

.stat-card h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 600;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.stat-card.earnings .stat-value {
    color: #dc2626;
}

.stat-card.pending .stat-value {
    color: #f59e0b;
}

.stat-card.progress .stat-value {
    color: #3b82f6;
}

.stat-sub {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.stat-sub span {
    cursor: pointer;
    color: #dc2626;
    font-weight: 500;
}

.stat-sub span:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 15px;
    }
    .stat-value {
        font-size: 24px;
    }
    .stat-icon {
        font-size: 24px;
    }
}

/* ============================================
   STATUS SECTIONS
   ============================================ */
.status-section {
    background: #0d0d0d;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #222;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dc2626;
}

.status-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.status-title i {
    font-size: 18px;
}

.status-search input {
    width: 260px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
}

.status-search input:focus {
    outline: none;
    border-color: #dc2626;
}

.status-search input::placeholder {
    color: #666;
    font-size: 13px;
}

@media (max-width: 640px) {
    .status-section {
        padding: 15px;
    }
    .status-header {
        flex-direction: column;
        align-items: stretch;
    }
    .status-search input {
        width: 100%;
    }
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
}

.requests-table,
.completed-table,
.warranty-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 750px;
}

.requests-table th,
.requests-table td,
.completed-table th,
.completed-table td,
.warranty-table th,
.warranty-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #222;
}

.requests-table th,
.completed-table th,
.warranty-table th {
    background: #111;
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requests-table tr:hover,
.completed-table tr:hover,
.warranty-table tr:hover {
    background: #111111;
}

@media (max-width: 768px) {
    .requests-table td,
    .completed-table td,
    .warranty-table td {
        font-size: 13px;
        padding: 10px 8px;
    }
}

/* Status Badges */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-progress {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-completed {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-btn {
    padding: 6px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    color: white;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.table-btn i {
    font-size: 14px;
}

.table-btn:hover {
    transform: scale(1.05);
}

.whatsapp-btn {
    background: #25D366;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.print-btn {
    background: #6b7280;
}

.delete-btn {
    background: #dc2626;
}

.status-select {
    padding: 6px 10px;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    border: 1px solid #333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   FORMS
   ============================================ */
.form-container {
    max-width: 550px;
    margin: 0 auto;
}

.form-card {
    background: #0d0d0d;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #222;
}

@media (max-width: 640px) {
    .form-container {
        max-width: 100%;
    }
    .form-card {
        padding: 20px;
    }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.help-text a {
    color: #dc2626;
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

.submit-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-container {
    max-width: 700px;
    margin: 0 auto;
}

.settings-card {
    background: #0d0d0d;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #222;
}

.settings-card h3 {
    color: #dc2626;
    font-size: 18px;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card hr {
    border-color: #333;
    margin: 25px 0;
}

.variables-box {
    background: #111;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 12px;
    color: #999;
}

.variables-box strong {
    color: #dc2626;
    display: block;
    margin-bottom: 8px;
}

.variables-box span {
    display: inline-block;
    background: #1a1a1a;
    padding: 4px 8px;
    border-radius: 5px;
    margin: 3px;
    font-family: monospace;
    font-size: 11px;
}

.reset-btn {
    background: #f59e0b;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 8px;
    transition: all 0.2s;
}

.reset-btn:hover {
    background: #d97706;
}

.password-section {
    background: #0a0a0a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #222;
}

.password-change-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 14px;
    transition: all 0.2s;
}

.password-change-btn:hover {
    background: #b91c1c;
}

/* ============================================
   DROPDOWN MANAGER
   ============================================ */
.dropdown-manager-container {
    max-width: 1000px;
    margin: 0 auto;
}

.devices-section {
    background: #0d0d0d;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #222;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #dc2626;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.add-device-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.add-device-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.device-card {
    background: #111111;
    border-radius: 16px;
    border: 1px solid #222;
    transition: all 0.2s;
    cursor: pointer;
}

.device-card:hover {
    border-color: #dc2626;
    transform: translateY(-4px);
}

.device-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #222;
}

.device-icon {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-icon i {
    font-size: 24px;
    color: #dc2626;
}

.device-name-large {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.device-actions {
    display: flex;
    gap: 8px;
}

.device-edit-btn, .device-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.2s;
    color: #666;
}

.device-edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.device-delete-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.device-card-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.problems-count {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-problems-btn {
    background: transparent;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-problems-btn:hover {
    background: #dc2626;
    color: white;
}

.problems-list {
    max-height: 400px;
    overflow-y: auto;
}

.problem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #111;
    border-radius: 10px;
    border: 1px solid #222;
}

.problem-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
}

.problem-name i {
    font-size: 8px;
    color: #dc2626;
}

.problem-actions {
    display: flex;
    gap: 8px;
}

.problem-edit-btn, .problem-delete-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s;
    color: #666;
}

.problem-edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.problem-delete-btn:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
}

.add-problem-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.add-problem-btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.loading-problems {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ============================================
   MODALS & POPUPS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: #0d0d0d;
    margin: 5% auto;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    border: 1px solid #dc2626;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-large {
    max-width: 1200px !important;
    width: 95% !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #111;
    border-bottom: 1px solid #222;
    border-radius: 20px 20px 0 0;
}

.modal-header h2, .modal-header h3 {
    color: #dc2626;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.close {
    color: #999;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.close:hover {
    color: #dc2626;
}

.modal-body {
    padding: 20px;
}

.modal-search {
    margin-bottom: 15px;
}

.modal-search input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
}

.modal-field {
    margin-top: 15px;
    text-align: left;
}

.modal-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ccc;
    font-size: 13px;
}

.modal-field textarea,
.modal-field input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 14px;
}

.modal-field textarea:focus,
.modal-field input:focus {
    outline: none;
    border-color: #dc2626;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Popup Buttons */
.popup-btn-yes {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.popup-btn-yes:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.popup-btn-no {
    background: #333;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.popup-btn-no:hover {
    background: #555;
    transform: translateY(-2px);
}

/* Renewal Popup */
.renewal-warning-popup {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(4px);
}

.renewal-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #dc2626;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
}

.renewal-now-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Save/Cancel Buttons */
.save-btn {
    background: #22c55e;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.save-btn:hover {
    background: #16a34a;
}

.cancel-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.cancel-btn:hover {
    background: #444;
}

@media (max-width: 768px) {
    .modal-large {
        max-width: 95% !important;
        margin: 10% auto !important;
    }
    .modal-content {
        margin: 20% auto;
        width: 95%;
    }
}

/* ============================================
   MESSAGES & TOAST
   ============================================ */
.error-message, .success-message {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.error-message {
    background: rgba(220, 38, 38, 0.15);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.success-message {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    font-size: 14px;
}

.empty-state i {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1a1a1a;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #22c55e;
    color: white;
}

.toast-error {
    background: #dc2626;
    color: white;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: #0d0d0d;
    border-radius: 24px;
    padding: 35px;
    border: 1px solid #dc2626;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.login-icon i {
    font-size: 36px;
    color: white;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    color: white;
}

.login-header p {
    font-size: 14px;
    color: #999;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    font-size: 15px;
}

.input-group input:focus {
    outline: none;
    border-color: #dc2626;
}

.login-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #dc2626;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.login-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 12px;
    color: #666;
}

.login-footer a {
    color: #666;
    text-decoration: none;
}

.login-footer a:hover {
    color: #dc2626;
}

/* ============================================
   PAYMENT POPUP
   ============================================ */
.payment-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.payment-card {
    background: #0d0d0d;
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    max-width: 380px;
    border: 1px solid #dc2626;
}

.payment-card i {
    font-size: 56px;
    color: #dc2626;
    margin-bottom: 20px;
}

.payment-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.payment-card p {
    color: #999;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.payment-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    font-size: 15px;
    transition: all 0.2s;
}

.payment-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* ============================================
   WARRANTY PAGE
   ============================================ */
.days-text {
    font-size: 11px;
    color: #666;
    margin-top: 4px;
}

.days-urgent {
    color: #f59e0b;
    font-weight: bold;
}

/* ============================================
   PRINT PAGE
   ============================================ */
@media print {
    body {
        background: white;
        padding: 0;
        margin: 0;
    }
    .header, .footer, .back-button, .container > .back-button {
        display: none;
    }
    .container {
        padding: 0;
        margin: 0;
    }
    .ticket {
        width: 100%;
        padding: 3mm;
    }
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .settings-container,
    .dropdown-manager-container,
    .form-container {
        max-width: 100%;
    }
    .settings-card,
    .devices-section,
    .form-card {
        padding: 20px;
    }
    .devices-grid {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    .device-card-header {
        flex-wrap: wrap;
    }
    .device-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    .view-problems-btn {
        width: 100%;
        justify-content: center;
    }
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}