:root {
    --primary-black: #000000;
    --dark-charcoal: #1a1a1a;
    --gold: #D4AF37;
    --gold-light: #e6c158;
    --white: #ffffff;
    --green: #4CAF50;
    --red: #f44336;
    --gray: #f5f5f5;
    --text-light: #e0e0e0;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--primary-black);
    color: var(--white);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: var(--primary-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-welcome {
    color: var(--text-light);
    margin-right: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border: none;
}

.btn-login {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--gold);
}

.btn-login:hover {
    background-color: var(--gold);
    color: var(--primary-black);
}

.btn-register {
    background-color: var(--gold);
    color: var(--primary-black);
    border: 2px solid var(--gold);
}

.btn-register:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-black);
    border: 2px solid var(--gold);
}

.btn-primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold);
    color: var(--primary-black);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.btn-danger {
    background-color: var(--red);
    color: white;
    border: 2px solid var(--red);
}

.btn-danger:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-charcoal) 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Auth Pages */
.auth-page {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-charcoal) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.auth-header h1 {
    color: var(--primary-black);
    margin-bottom: 10px;
    font-size: 2rem;
}

.auth-header p {
    color: var(--text-dark);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background-color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--primary-black);
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--primary-black);
}

.checkbox input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox input:checked + .checkmark {
    background-color: var(--gold);
    border-color: var(--gold);
}

.checkbox input:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--primary-black);
}

.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.message.success {
    background-color: var(--green);
    color: white;
    display: block;
}

.message.error {
    background-color: var(--red);
    color: white;
    display: block;
}

.message.info {
    background-color: #2196F3;
    color: white;
    display: block;
}

.btn-loading {
    display: none;
}

.form-help {
    color: var(--text-dark);
    font-size: 0.8rem;
    margin-top: 5px;
}

/* Dashboard Styles */
.dashboard {
    padding: 120px 0 60px;
    background-color: var(--dark-charcoal);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 2rem;
    color: var(--gold);
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-card {
    background-color: var(--primary-black);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card-icon {
    font-size: 2.5rem;
    color: var(--gold);
}

.dashboard-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.dashboard-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
}

.dashboard-section {
    margin-bottom: 40px;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.action-btn {
    background-color: var(--primary-black);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--white);
}

.action-btn:hover {
    background-color: var(--gold);
    color: var(--primary-black);
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.action-btn span {
    font-weight: 500;
}

/* Enhanced Transaction History Styles */
.modal-lg {
    max-width: 800px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    padding-left: 40px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px 12px 40px;
    font-size: 14px;
    background: var(--white);
    color: var(--text-dark);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.transaction-item.detailed {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.transaction-item.detailed:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

.transaction-info {
    flex: 1;
}

.transaction-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.transaction-info p {
    margin: 4px 0;
    font-size: 14px;
    color: #5a6c7d;
}

.transaction-phone {
    font-size: 0.85em;
    color: #34495e;
    font-weight: 500;
    margin: 5px 0;
    padding: 3px 8px;
    background: #ecf0f1;
    border-radius: 4px;
    display: inline-block;
}

.transaction-reference {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
    font-family: monospace;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.transaction-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: 15px;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
}

.transaction-type {
    font-size: 0.75em;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 12px;
    text-transform: uppercase;
    color: #495057;
    font-weight: 600;
}

/* Profile Management Styles */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.tab-btn.active {
    border-bottom-color: var(--gold);
    color: var(--gold);
    font-weight: 600;
}

.tab-btn:hover {
    color: var(--gold-light);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Professional Receipt Modal Styles */
.receipt-modal {
    max-width: 500px;
    text-align: center;
}

.receipt-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.receipt-header h1 {
    color: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.receipt-header h2 {
    color: var(--primary-black);
    font-size: 1.5rem;
    margin-bottom: 0;
    font-weight: 600;
}

.receipt-details {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
    text-align: left;
    border: 1px solid #e9ecef;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.receipt-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.receipt-item .label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.receipt-item .value {
    font-weight: 700;
    color: #212529;
    flex: 1;
    text-align: right;
}

.receipt-amount {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
}

.receipt-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
}

.receipt-status.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.receipt-message {
    color: #6c757d;
    font-size: 1.1em;
    margin: 25px 0;
    font-weight: 500;
    line-height: 1.6;
}

.receipt-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.receipt-actions .btn {
    min-width: 120px;
}

.receipt-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}

/* Simple Success Modal Styles */
.simple-success-modal {
    max-width: 400px;
    text-align: center;
}

.simple-success-content {
    padding: 30px;
}

.simple-success-icon {
    font-size: 4em;
    color: var(--green);
    margin-bottom: 20px;
}

.simple-success-title {
    color: var(--green);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.8rem;
}

.simple-success-message {
    color: #495057;
    font-size: 1.1em;
    margin: 20px 0;
    line-height: 1.6;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.simple-success-phone {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2em;
}

/* Status Colors */
.status-completed {
    color: #155724;
    background: #d4edda;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid #c3e6cb;
}

.status-pending {
    color: #856404;
    background: #fff3cd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid #ffeaa7;
}

.status-failed {
    color: #721c24;
    background: #f8d7da;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid #f5c6cb;
}

.status-processing {
    color: #004085;
    background: #cce5ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid #b8daff;
}

.no-transactions {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Regular transaction items (dashboard view) */
.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: var(--white);
    transition: background-color 0.2s ease;
    color: var(--text-dark);
}

.transaction-item:hover {
    background: #f8f9fa;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item .transaction-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.transaction-item .transaction-info p {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}

.transaction-item .transaction-amount {
    font-weight: 700;
    color: #2c3e50;
    font-size: 15px;
}

/* Make sure the transaction list container has proper styling */
.transactions-list {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

/* Modal improvements */
.modal {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    color: var(--text-dark);
}

.modal-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--white);
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--gold);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--primary-black);
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-black);
    text-align: center;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Announcement Styles */
.announcement-section {
    margin-bottom: 30px;
}

.announcement {
    background-color: var(--gold);
    color: var(--primary-black);
    padding: 15px;
    border-radius: 5px;
    text-align: center;
}

.announcement h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Print Styles for Receipt */
@media print {
    body * {
        visibility: hidden;
    }
    .receipt-modal,
    .receipt-modal * {
        visibility: visible;
    }
    .receipt-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    .receipt-actions {
        display: none;
    }
}

/* Enhanced Profile Management Styles */
.profile-info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold);
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.profile-info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.profile-info-label {
    font-weight: 600;
    color: #495057;
    flex: 1;
}

.profile-info-value {
    font-weight: 700;
    color: #212529;
    flex: 1;
    text-align: right;
}

.account-type-badge {
    background: var(--gold);
    color: var(--primary-black);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.wallet-balance-display {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--gold);
}

.member-since {
    color: #6c757d;
    font-style: italic;
}

/* Instagram Connection Styles */
.instagram-connection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.instagram-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Enhanced Receipt Styles */
.receipt-transaction-id {
    font-family: monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 0.9em;
    margin: 10px 0;
}

.receipt-provider-ref {
    font-size: 0.8em;
    color: #6c757d;
    font-family: monospace;
    margin-top: 5px;
}

/* Print Button Styles */
.print-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.print-button:hover {
    background: #0056b3;
}

/* Modal Header Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gold);
}

.modal-header h2 {
    color: var(--gold);
    margin: 0;
    font-size: 1.8rem;
}

/* Form Section Styles */
.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: var(--primary-black);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 8px;
}

/* Enhanced Transaction Items */
.transaction-item.enhanced {
    background: var(--white);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.transaction-item.enhanced:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--gold);
}

.transaction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.transaction-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1em;
}

.transaction-amount {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.2em;
}

.transaction-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.transaction-detail {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #f1f1f1;
}

.transaction-detail:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-size: 0.85em;
}

.detail-value {
    color: #495057;
    font-weight: 500;
    font-size: 0.85em;
}

.transaction-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

/* KatagumData Branded Receipt */
.katagum-receipt {
    text-align: center;
    max-width: 450px;
}

.katagum-receipt .receipt-header {
    background: var(--primary-black);
    color: var(--white);
    padding: 20px;
    border-radius: 10px 10px 0 0;
    margin: -40px -40px 20px -40px;
}

.katagum-receipt .receipt-header h1 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 5px;
}

.katagum-receipt .receipt-header h2 {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 400;
}

.katagum-receipt .receipt-item {
    border-bottom: 1px solid #e9ecef;
    padding: 12px 0;
    margin: 0;
}

.katagum-receipt .receipt-item:last-child {
    border-bottom: none;
}

.katagum-receipt .receipt-amount {
    font-size: 1.8rem;
    color: var(--gold);
}

/* Simple Success Modal Enhancements */
.simple-success-content {
    text-align: center;
    padding: 30px;
}

.success-phone-highlight {
    background: var(--gold);
    color: var(--primary-black);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    margin: 15px 0;
    display: inline-block;
}

.mt-2 {
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--primary-black);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-card {
        flex-direction: column;
        text-align: center;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .user-welcome {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .modal {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .modal-lg {
        max-width: 95%;
    }

    .receipt-modal {
        max-width: 95%;
    }

    .receipt-actions {
        flex-direction: column;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .transaction-details-grid {
        grid-template-columns: 1fr;
    }

    .profile-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .profile-info-value {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .transaction-item.detailed {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .transaction-details {
        align-items: flex-start;
        margin-left: 0;
        flex-direction: row;
        gap: 15px;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .receipt-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .receipt-item .value {
        text-align: left;
    }

    .profile-tabs {
        flex-direction: column;
    }

    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    .tab-btn.active {
        border-left-color: var(--gold);
        border-bottom-color: transparent;
    }
}
/* ==================== MOBILE RESPONSIVE STYLES ==================== */

/* Mobile First Approach */
@media (max-width: 768px) {
  /* Global Mobile Adjustments */
  body {
    font-size: 14px;
    line-height: 1.4;
  }

  .container {
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
  }

  /* Header & Navigation Mobile Styles */
  .header {
    padding: 15px 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .logo {
    font-size: 1.5rem;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Dashboard Grid Mobile */
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .dashboard-card {
    padding: 20px;
    margin-bottom: 15px;
  }

  /* Quick Actions Mobile */
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .action-btn {
    padding: 15px 10px;
    font-size: 0.85rem;
  }

  .action-btn i {
    font-size: 1.2rem;
    margin-bottom: 5px;
  }

  /* Wallet Balance Mobile */
  .wallet-balance {
    padding: 20px;
    text-align: center;
  }

  .balance-amount {
    font-size: 2rem;
  }

  /* Transaction History Mobile */
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }

  .transaction-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .transaction-amount {
    font-size: 1.1rem;
    align-self: flex-start;
  }

  /* Modal Mobile Styles */
  .modal-overlay {
    padding: 20px 15px;
  }

  .modal-content {
    width: 95%;
    max-width: 100%;
    margin: 20px auto;
    padding: 25px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  /* Form Mobile Styles */
  .form-group {
    margin-bottom: 15px;
  }

  .form-control {
    padding: 12px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  select.form-control {
    height: 50px;
  }

  /* Button Mobile Styles */
  .btn {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100%;
    margin-bottom: 10px;
  }

  .btn-group {
    flex-direction: column;
    gap: 10px;
  }

  .btn-group .btn {
    margin-right: 0;
  }

  /* Buy Data Form Mobile */
  .plan-details {
    padding: 15px;
    font-size: 1rem;
  }

  /* Profile Modal Mobile */
  .profile-tabs {
    flex-direction: column;
    gap: 5px;
  }

  .tab-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 20px 0;
  }

  /* Transaction History Modal Mobile */
  .transaction-item.enhanced {
    padding: 15px;
  }

  .transaction-details-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .transaction-detail {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .detail-label {
    font-size: 0.8rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  /* Payment Callback Mobile */
  .payment-card {
    padding: 25px 20px;
    margin: 20px 15px;
  }

  .payment-icon {
    font-size: 3rem;
  }

  .payment-details {
    padding: 12px;
    font-size: 0.9rem;
  }

  /* Receipt Modal Mobile */
  .receipt-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .receipt-item {
    padding: 12px;
  }

  /* Success Modal Mobile */
  .success-content {
    padding: 20px;
  }

  .success-icon {
    font-size: 3rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .action-btn {
    padding: 18px 10px;
  }

  .balance-amount {
    font-size: 1.8rem;
  }

  .modal-content {
    padding: 20px 15px;
  }

  .form-control {
    padding: 14px 12px;
  }

  /* Transaction status badges */
  .transaction-status {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Profile info mobile */
  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .profile-info-item {
    padding: 15px;
  }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-content {
    width: 85%;
    max-width: 600px;
  }

  .transaction-details-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn, .action-btn, .tab-btn {
    min-height: 44px; /* Minimum touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-control, select, input, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* Improve touch scrolling */
  .modal-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Prevent horizontal scroll on mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Loading states for mobile */
.btn-loading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Enhanced mobile form styles */
.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

/* Checkbox and radio button mobile styles */
input[type="checkbox"], input[type="radio"] {
  transform: scale(1.2);
  margin-right: 8px;
}

/* Select dropdown mobile improvement */
select.form-control {
  background-image: none; /* Remove default arrow on mobile */
  -webkit-appearance: menulist; /* Better mobile experience */
}

/* Input focus styles for mobile */
.form-control:focus {
  border-color: #D4AF37;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Mobile-specific utility classes */
.mobile-only {
  display: block;
}

.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }
  
  .desktop-only {
    display: block;
  }
}

/* Swipe-friendly modals */
.modal-content {
  touch-action: pan-y;
}

/* Improved mobile transaction items */
.transaction-item {
  transition: transform 0.2s ease;
}

.transaction-item:active {
  transform: scale(0.98);
}

/* Mobile-optimized buttons */
.btn-mobile {
  min-height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Enhanced mobile navigation */
.nav-links-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}

.nav-links-mobile a {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links-mobile a:hover {
  background: rgba(212, 175, 55, 0.2);
  transform: translateX(5px);
}

/* WhatsApp Support Modal Styles */
.whatsapp-modal-content {
    text-align: center;
    padding: 30px;
}

.whatsapp-icon {
    font-size: 4rem;
    color: #25D366;
    margin-bottom: 20px;
}

.whatsapp-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.whatsapp-description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.whatsapp-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.whatsapp-option {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-option:hover {
    border-color: #25D366;
    background: #f0fff4;
    transform: translateY(-2px);
}

.whatsapp-option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.whatsapp-option-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.whatsapp-group .whatsapp-option-icon {
    color: #25D366;
}

.whatsapp-channel .whatsapp-option-icon {
    color: #075E54;
}

.whatsapp-option-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.whatsapp-option-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.whatsapp-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-channel {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
}

.whatsapp-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.whatsapp-note p {
    margin: 0;
    color: #856404;
    font-size: 0.9rem;
}

/* Quick Action Button for WhatsApp */
.action-btn[data-action="whatsapp-support"] {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.action-btn[data-action="whatsapp-support"]:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-options {
        gap: 10px;
    }
    
    .whatsapp-option {
        padding: 15px;
    }
    
    .whatsapp-buttons {
        flex-direction: column;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
}

/* Forgot Password Specific Styles */
.auth-step {
    transition: all 0.3s ease;
}

.resend-otp {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.resend-otp a {
    color: #007bff;
    text-decoration: none;
}

.resend-otp a:hover {
    text-decoration: underline;
}

.success-icon {
    text-align: center;
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-icon i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* OTP input styling */
input[type="text"]#otp {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5rem;
    font-weight: bold;
}