/* ============================================================
   RAUDHYA PENGEDAR RASMI — Frontend CSS v1.0.3
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700;1,900&family=DM+Sans:wght@300;400;500;600;700&display=swap');

.raudhya-semakan-wrap {
    --rd-accent:  #8b5e3c;
    --rd-accent2: #c49a6c;
    --rd-gold:    #d4a853;
    --rd-text:    #3d2b1a;
    --rd-muted:   #7a6a5a;
    --rd-bg:      #fdf9f5;
    --rd-border:  #e8d8c4;
    --rd-green:   #059669;
    --rd-red:     #dc2626;
    --rd-radius:  20px;

    font-family: 'DM Sans', sans-serif;
    color: var(--rd-text);
    max-width: 680px;
    margin: 0 auto;
}

/* ============================================================
   HEADER
   ============================================================ */
.rsd-header {
    text-align: center;
    padding: 44px 32px 60px;
    background: linear-gradient(160deg, #9b6b47 0%, #7a4828 60%, #5c3318 100%);
    border-radius: var(--rd-radius) var(--rd-radius) 0 0;
    position: relative;
}

/* Plus pattern texture */
.rsd-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--rd-radius) var(--rd-radius) 0 0;
    background-image:
        linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* White wave curve at bottom */
.rsd-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 36px;
    background: var(--rd-bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    z-index: 1;
}

/* ALL header content above curve */
.rsd-shield-icon,
.rsd-title,
.rsd-sub {
    position: relative;
    z-index: 2;
}

.rsd-shield-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    color: var(--rd-gold);
    filter: drop-shadow(0 3px 10px rgba(212,168,83,.35));
}
.rsd-shield-icon svg { width: 100%; height: 100%; }

.rsd-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: clamp(24px, 4.5vw, 30px) !important;
    font-weight: 900 !important;
    font-style: italic !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    margin: 0 0 10px !important;
    letter-spacing: 2px !important;
    text-shadow: 0 2px 16px rgba(0,0,0,.4) !important;
    line-height: 1.2 !important;
    display: block !important;
}

.rsd-sub {
    color: rgba(255,255,255,.88) !important;
    -webkit-text-fill-color: rgba(255,255,255,.88) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    text-shadow: 0 1px 6px rgba(0,0,0,.3) !important;
    display: block !important;
    line-height: 1.5 !important;
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.rsd-search-box {
    background: var(--rd-bg);
    padding: 28px 28px 20px;
    border-left: 1px solid var(--rd-border);
    border-right: 1px solid var(--rd-border);
}

.rsd-input-wrap {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px solid var(--rd-border);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(139,94,60,.08);
    transition: border-color .25s, box-shadow .25s;
}
.rsd-input-wrap:focus-within {
    border-color: var(--rd-accent);
    box-shadow: 0 2px 20px rgba(139,94,60,.16);
}

.rsd-search-icon {
    display: flex;
    align-items: center;
    padding: 0 16px 0 20px;
    color: var(--rd-muted);
    flex-shrink: 0;
}
.rsd-search-icon svg { width: 18px; height: 18px; }

.rsd-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--rd-text);
    background: transparent;
    padding: 15px 8px 15px 0;
    min-width: 0;
}
.rsd-input::placeholder { color: #c4b0a0; }

.rsd-btn {
    background: linear-gradient(135deg, #8b5e3c 0%, #6b3f20 100%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    border: none;
    padding: 0 28px;
    border-radius: 50px;
    margin: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity .2s, transform .15s;
    white-space: nowrap;
}
.rsd-btn:hover   { opacity: .88; }
.rsd-btn:active  { transform: scale(.97); }
.rsd-btn:disabled { opacity: .6; cursor: wait; }

.rsd-hint {
    text-align: center;
    font-size: 12px;
    color: var(--rd-muted);
    margin: 12px 0 0;
}

/* ============================================================
   RESULT + LOADING
   ============================================================ */
.rsd-result,
.rsd-loading {
    border-left: 1px solid var(--rd-border);
    border-right: 1px solid var(--rd-border);
    border-bottom: 1px solid var(--rd-border);
    border-radius: 0 0 var(--rd-radius) var(--rd-radius);
    background: var(--rd-bg);
    overflow: hidden;
}

.rsd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    color: var(--rd-accent);
    font-weight: 600;
    font-size: 15px;
}

.rsd-spinner {
    width: 22px; height: 22px;
    border: 3px solid var(--rd-border);
    border-top-color: var(--rd-accent);
    border-radius: 50%;
    animation: rsd-spin .7s linear infinite;
}
@keyframes rsd-spin { to { transform: rotate(360deg); } }

/* ── Card base ── */
.rsd-card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

/* ── VALID ── */
.rsd-card-valid {
    background: linear-gradient(160deg, #f0faf5 0%, #e6f6ee 100%);
    border-top: 3px solid var(--rd-green);
}
.rsd-card-glow {
    position: absolute; top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(5,150,105,.1) 0%, transparent 70%);
    pointer-events: none;
}
.rsd-valid-badge { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.rsd-checkmark   { font-size: 34px; flex-shrink: 0; }
.rsd-badge-label {
    font-family: 'Playfair Display', serif;
    font-size: 26px; font-weight: 900; color: var(--rd-green); line-height: 1.1;
}
.rsd-badge-sub { font-size: 13px; font-weight: 600; color: #047857; margin-top: 3px; }
.rsd-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #b7e8d4, transparent);
    margin-bottom: 18px;
}
.rsd-info-grid { display: flex; flex-direction: column; gap: 10px; }
.rsd-info-row {
    display: flex; align-items: center; gap: 12px;
    background: #fff; padding: 12px 16px;
    border-radius: 12px; border: 1px solid #d1edd9;
    box-shadow: 0 1px 4px rgba(5,150,105,.06);
}
.rsd-info-icon  { font-size: 17px; flex-shrink: 0; }
.rsd-info-text  { font-size: 15px; font-weight: 600; color: var(--rd-text); }
.rsd-info-text a { color: var(--rd-accent); text-decoration: none; }
.rsd-info-text a:hover { text-decoration: underline; }

/* Multiple website links — each on its own line */
.rsd-website { display: flex; flex-direction: column; gap: 4px; }
.rsd-web-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rd-accent) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: color .15s;
    word-break: break-all;
}
.rsd-web-link::before { content: '🔗'; font-size: 12px; }
.rsd-web-link:hover { color: #6b3f20 !important; text-decoration: underline !important; }
.rsd-status-row {
    display: flex; align-items: center; gap: 10px;
    margin-top: 14px; padding: 10px 16px;
    background: rgba(5,150,105,.07); border-radius: 10px;
}
.rsd-status-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.rsd-status-dot-aktif   { background: #10b981; animation: rsd-pulse 2s infinite; }
.rsd-status-dot-tangguh { background: #f59e0b; }
.rsd-status-dot-tamat   { background: #ef4444; }
@keyframes rsd-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
    50%      { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}
.rsd-status-label { font-size: 14px; font-weight: 700; color: var(--rd-text); }

/* ── INVALID ── */
.rsd-card-invalid {
    background: linear-gradient(160deg, #fff8f7 0%, #fef1f0 100%);
    border-top: 3px solid var(--rd-red);
}
.rsd-warn-header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rsd-warn-icon   { font-size: 34px; flex-shrink: 0; }
.rsd-warn-title  {
    font-family: 'Playfair Display', serif;
    font-size: 24px; font-weight: 900; color: var(--rd-red);
}
.rsd-warn-sub    { font-size: 13px; color: #991b1b; font-weight: 500; margin-top: 3px; }
.rsd-warn-desc {
    font-size: 14px; line-height: 1.7; color: #7f1d1d;
    background: rgba(220,38,38,.06); padding: 14px 16px;
    border-radius: 10px; border-left: 4px solid var(--rd-red);
    margin: 0 0 14px;
}
.rsd-warn-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.rsd-warn-item {
    font-size: 14px; font-weight: 700; color: #991b1b;
    background: #fff; padding: 12px 16px;
    border-radius: 10px; border: 1.5px solid #fca5a5;
}
.rsd-cs-box {
    background: linear-gradient(135deg, #8b5e3c 0%, #6b3f20 100%);
    border-radius: 14px; padding: 20px; text-align: center;
}
.rsd-cs-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: #d4a853; margin: 0 0 6px; }
.rsd-cs-desc  { font-size: 13px; color: rgba(255,255,255,.8); margin: 0 0 14px; }
.rsd-cs-btn {
    display: inline-block; background: #25d366; color: #fff;
    text-decoration: none; padding: 12px 24px; border-radius: 50px;
    font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 16px rgba(37,211,102,.35);
    transition: background .2s, transform .15s;
}
.rsd-cs-btn:hover { background: #1db954; transform: translateY(-2px); color: #fff; text-decoration: none; }

.rsd-error { color: var(--rd-red); text-align: center; padding: 20px; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 520px) {
    .rsd-header     { padding: 32px 20px 56px; }
    .rsd-search-box { padding: 22px 16px 18px; }
    .rsd-card       { padding: 20px 14px; }
    .rsd-title      { font-size: 22px !important; letter-spacing: 1px !important; }

    .rsd-input-wrap { border-radius: 14px; flex-wrap: wrap; }
    .rsd-input      { padding: 15px 12px; border-bottom: 1px solid var(--rd-border); }
    .rsd-search-icon { padding: 0 12px 0 16px; }
    .rsd-btn        {
        width: calc(100% - 10px); margin: 0 5px 5px;
        padding: 13px; border-radius: 10px; font-size: 14px;
    }
    .rsd-badge-label { font-size: 22px; }
    .rsd-warn-title  { font-size: 20px; }
}
