* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* NAVBAR */
.navbar {
    background: #0f172a;
    padding: 12px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar a {
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    font-size: 14px;
    transition: all 0.2s;
}

.navbar a:hover {
    background: rgba(255, 255, 255, .15);
}

.navbar button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.navbar button:hover {
    background: #b91c1c;
}

/* HEADER */
header {
    background: #0f172a;
    color: white;
    padding: 25px 15px;
    text-align: center;
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* FILTERS */
.filters {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    flex: 1;
    min-width: 180px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2563eb;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-success {
    background: #16a34a;
    color: white;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

/* PROPERTY GRID */
.properties,
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.property-card,
.card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover,
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.property-card h3 {
    margin-bottom: 10px;
    line-height: 1.4;
    font-size: 18px;
}

.property-card h3 a {
    color: #0f172a;
}

.property-card h3 a:hover {
    color: #2563eb;
}

.price {
    font-size: 22px;
    font-weight: bold;
    color: #16a34a;
    margin: 10px 0;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 6px;
    background: #2563eb;
    color: white;
    font-size: 13px;
    margin-top: 8px;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

th {
    background: #f8f9fa;
    font-weight: 600;
}

/* FORMS */
form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* PAGE HEADER */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    font-size: 24px;
    color: #0f172a;
}

/* PROFILE PAGE STYLES */
.profile-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 40px;
    color: white;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.profile-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.profile-card h3 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    color: #0f172a;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row .label {
    font-weight: 600;
    color: #4b5563;
}

.info-row .value {
    color: #1f2937;
}

/* CREDITS CARD */
.credits-display {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 12px;
    color: white;
    margin-bottom: 15px;
}

.credits-number {
    font-size: 48px;
    font-weight: bold;
    display: block;
}

.credits-label {
    font-size: 14px;
    opacity: 0.9;
}

.btn-buy-credits {
    width: 100%;
    padding: 12px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 5px;
}

/* ACTION BUTTONS */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: block;
    padding: 12px;
    background: #f3f4f6;
    text-align: center;
    text-decoration: none;
    color: #374151;
    border-radius: 8px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateX(5px);
}

/* MY PROPERTIES PAGE */
.properties-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.property-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.property-info {
    flex: 1;
}

.property-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #16a34a;
    margin: 8px 0;
}

.property-meta {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.btn-edit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-toggle {
    background: #6b7280;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

/* BADGE VARIANTS */
.badge-premium {
    background: #fef3c7;
    color: #d97706;
}

.badge-verified {
    background: #d1fae5;
    color: #059669;
}

.badge-hidden {
    background: #fee2e2;
    color: #dc2626;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.empty-state p {
    margin-bottom: 15px;
    color: #6b7280;
}

/* LOADING */
.loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* REVEAL HISTORY PAGE */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.history-info {
    flex: 1;
}

.history-info h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.history-date {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.credits-used {
    font-size: 20px;
    font-weight: bold;
    color: #dc2626;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.summary-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-item .number {
    font-size: 32px;
    font-weight: bold;
    color: #2563eb;
}

.summary-item .label {
    font-size: 14px;
    color: #6b7280;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    padding: 25px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.modal-large {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
}

.close:hover {
    color: #dc2626;
}

/* CREDIT PACKAGES */
.credit-packages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.package {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.package:hover {
    border-color: #2563eb;
    background: #f0f9ff;
    transform: scale(1.02);
}

.package h3 {
    margin-bottom: 5px;
    font-size: 16px;
}

.package .price {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
    margin: 5px 0;
}

.package .per-credit {
    font-size: 12px;
    color: #6b7280;
}

.popular {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #f59e0b;
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}

/* UPI SECTION */
.upi-details {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.qr-placeholder {
    width: 150px;
    height: 150px;
    background: #e5e7eb;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 8px;
}

.copy-upi {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
}

.payment-note {
    margin-top: 15px;
    font-size: 12px;
    color: #6b7280;
}

/* ADMIN DASHBOARD */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.stat span {
    display: block;
    font-size: 14px;
    font-weight: normal;
    color: #6b7280;
    margin-top: 5px;
}

.section {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.section h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.btn-hide {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-show {
    background: #16a34a;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-credit {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* LOGIN PAGE */
.login-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 50px auto;
}

.login-card h1 {
    margin-bottom: 20px;
}

.login-card p {
    margin-top: 15px;
    color: #666;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .navbar {
        flex-direction: column;
        align-items: stretch;
    }

    .navbar a,
    .navbar button {
        text-align: center;
        width: 100%;
    }

    .filters {
        flex-direction: column;
    }

    .filters input,
    .filters select,
    .filters button {
        width: 100%;
    }

    .properties,
    .grid {
        grid-template-columns: 1fr;
    }

    .property-card,
    .card {
        padding: 14px;
    }

    .price {
        font-size: 20px;
    }

    header {
        text-align: center;
    }

    header h1 {
        font-size: 24px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .property-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .property-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .history-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-stats {
        text-align: left;
    }

    .credit-packages {
        grid-template-columns: 1fr;
    }
}

/* EXTRA SMALL */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    button {
        width: 100%;
    }

    .price {
        font-size: 18px;
    }

    header h1 {
        font-size: 22px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px auto;
        padding: 15px;
    }
}

/* UTILITY CLASSES */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

/* PROPERTY DETAILS PAGE */
.property-details {
    background: white;
    border-radius: 12px;
    padding: 25px;
}

.property-details h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.property-location {
    color: #6b7280;
    margin-bottom: 20px;
}

.property-price-large {
    font-size: 32px;
    font-weight: bold;
    color: #16a34a;
    margin: 20px 0;
}

.property-description {
    margin: 20px 0;
    line-height: 1.6;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.feature {
    text-align: center;
}

.feature-value {
    font-size: 20px;
    font-weight: bold;
    color: #2563eb;
}

.feature-label {
    font-size: 12px;
    color: #6b7280;
}

.action-buttons-large {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-buttons-large button {
    flex: 1;
    padding: 14px;
    font-size: 16px;
}

.nav-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-danger-nav {
    background: #dc2626;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger-nav:hover {
    background: #b91c1c;
}

.tips-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    overflow: hidden;
}

.tips-header {
    padding: 15px;
    background: #e0f2fe;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #0369a1;
}

.tips-header:hover {
    background: #bae6fd;
}