/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: none;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f8faf9, #eef7f3);
    color: #0f172a;
    display: flex;
    flex-direction: column;
}


/* ===== CUSTOM CURSOR ===== */
  .gradient-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 9999;
    
    background: linear-gradient(135deg, #facc15, #eab308);
    
    clip-path: polygon(
      50% 100%,
      0% 0%,
      100% 50%
    );
    
    /* Center hotspot */
    transform: translate(-16px, -16px);

    /* Smooth movement */
    transition: transform 0.08s ease-out, left 0.08s ease-out, top 0.08s ease-out;
}

/* ===== HEADER ===== */
.islamic-header {
    background: linear-gradient(135deg, #064e3b, #022c22);
    color: #ecfdf5;
    padding: 20px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
}

.header-content {
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO ===== */
.logo-text {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ecfdf5;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    /* subtle depth */
}

/* ===== HEADER RIGHT: RATES + CLOCK ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* RATES */
.rate {
    background: rgba(236, 253, 245, .15);
    padding: 8px 16px;
    /* slightly bigger padding */
    border-radius: 999px;
    font-size: 14px;
    /* bigger font */
    font-weight: 600;
}

/* CLOCK BOX */
.islamic-clock {
    background: linear-gradient(135deg, #facc15, #eab308);
    color: #422006;
    padding: 14px 22px;
    min-width: 150px;
    border-radius: 18px;
    text-align: right;
    box-shadow:
        0 10px 25px rgba(0, 0, 0, .25),
        inset 0 0 0 1px rgba(0, 0, 0, .1);
}

#clock-time {
    font-size: 17px;
    font-weight: 700;
}

#clock-date {
    font-size: 12px;
    opacity: .85;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 40px 15px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* ===== GOLD CARD ===== */
.gold-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .08);
    overflow: hidden;
}

.gold-card-header {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 20px 25px;
    border-bottom: 1px solid #a7f3d0;
}

.gold-card-header h2 {
    font-size: 20px;
}

.gold-card-header span {
    font-size: 13px;
    color: #065f46;
}

/* ===== MODERN TABLE ===== */
.islamic-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    padding: 22px;
}

.islamic-table thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #047857;
    padding: 8px 14px;
    text-align: left;
}

.islamic-table tbody tr {
    background: #ffffff;
    border-radius: 16px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, .05),
        inset 0 0 0 1px #d1fae5;
    transition: transform .18s ease, box-shadow .18s ease;
}

.islamic-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 40px rgba(0, 0, 0, .12),
        inset 0 0 0 1px #6ee7b7;
}

.islamic-table td {
    padding: 18px 16px;
    font-size: 14px;
    font-weight: 500;
}

.islamic-table td:first-child {
    font-weight: 700;
    color: #064e3b;
}

.islamic-table td:nth-child(2),
.islamic-table td:nth-child(3) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.islamic-table td:last-child {
    color: #065f46;
}

/* NOTE */
.note {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #047857;
}

/* ===== FOOTER ===== */
.islamic-footer {
    background: linear-gradient(135deg, #022c22, #020617);
    color: #a7f3d0;
    text-align: center;
    padding: 14px;
    font-size: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .header-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .rates {
        display: flex;
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .rate {
        font-size: 15px;
        padding: 8px 14px;
    }

    .islamic-clock {
        min-width: 100%;
        text-align: center;
        padding: 12px 18px;
        font-size: 15px;
        border-radius: 16px;
    }

    #clock-time {
        font-size: 16px;
    }

    #clock-date {
        font-size: 12px;
    }

    /* ===== HIDE BUTTON ON MOBILE/TABLET ===== */
    #togglePopupBtn {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }

    .rates {
        justify-content: center;
        gap: 8px;
    }

    .rate {
        font-size: 16px;
        padding: 6px 12px;
    }

    .islamic-clock {
        padding: 10px 14px;
        font-size: 14px;
        min-width: 100%;
    }

    #clock-time {
        font-size: 14px;
    }

    #clock-date {
        font-size: 11px;
    }
}

/* ===== PREMIUM SLIDING PANEL (RIGHT MIDDLE) ===== */
#togglePopupBtn {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    border: none;
    padding: 10px 16px;
    font-weight: 600;
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: background 0.3s;
}

#togglePopupBtn:hover {
    background: linear-gradient(135deg, #047857, #065f46);
}

/* Right-middle sliding panel */
#premiumPopup {
    position: fixed;
    top: 80%;
    right: -260px;
    /* hidden outside of screen */
    transform: translateY(-50%);
    width: 260px;
    /* enough space for input + button */
    background: #ecfdf5;
    border-left: 1px solid #a7f3d0;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    transition: right 0.3s ease;
    z-index: 1000;
    border-radius: 10px 0 0 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#premiumPopup.show {
    top: 80%;
    right: 0;
}

/* Centered content */
#premiumPopup .popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* spacing between label, input, button */
    width: 100%;
}

#premiumPopup label {
    font-weight: 600;
    color: #065f46;
}

#premiumPopup input {
    width: 80%;
    max-width: 150px;
    padding: 6px 10px;
    border: 1px solid #a7f3d0;
    border-radius: 6px;
    font-weight: 500;
}

#premiumPopup button {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #047857);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    transition: background 0.3s;
}

#premiumPopup button:hover {
    background: linear-gradient(135deg, #047857, #065f46);
}