/* ============================================
   EncryptMyKeys v2 — New Feature Styles
   ============================================ */

/* ===== WHY PAGE ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; animation: fadeInUp 0.8s ease 0.15s both; }
.why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.why-card:hover { border-color: rgba(0,212,255,0.2); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.why-card::before { content:''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--gradient-encrypt); opacity: 0; transition: opacity 0.3s; }
.why-card:hover::before { opacity: 1; }
.why-icon { width: 60px; height: 60px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon-shield { background: rgba(0,212,255,0.08); color: #00d4ff; border: 1px solid rgba(0,212,255,0.15); }
.why-icon-lock { background: rgba(0,255,136,0.08); color: #00ff88; border: 1px solid rgba(0,255,136,0.15); }
.why-icon-eye { background: rgba(168,85,247,0.08); color: #a855f7; border: 1px solid rgba(168,85,247,0.15); }
.why-icon-free { background: rgba(255,215,0,0.08); color: #ffd700; border: 1px solid rgba(255,215,0,0.15); }
.why-icon-image { background: rgba(236,72,153,0.08); color: #ec4899; border: 1px solid rgba(236,72,153,0.15); }
.why-icon-globe { background: rgba(59,130,246,0.08); color: #3b82f6; border: 1px solid rgba(59,130,246,0.15); }
.why-icon-key { background: rgba(245,158,11,0.08); color: #f59e0b; border: 1px solid rgba(245,158,11,0.15); }
.why-icon-user { background: rgba(16,185,129,0.08); color: #10b981; border: 1px solid rgba(16,185,129,0.15); }
.why-card h3 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 10px; }
.why-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

/* Comparison Table */
.comparison-section { margin-bottom: 48px; animation: fadeInUp 0.8s ease 0.25s both; }
.comparison-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { padding: 14px 20px; font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); text-align: left; }
.comparison-table th.comp-us { color: #00d4ff; text-align: center; }
.comparison-table th.comp-others { text-align: center; }
.comparison-table td { padding: 12px 20px; border-bottom: 1px solid rgba(26,39,68,0.5); color: var(--text-secondary); font-size: 0.88rem; }
.comparison-table td.comp-us, .comparison-table td.comp-others { text-align: center; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255,255,255,0.015); }
.check-yes { color: #00ff88; font-weight: 700; font-size: 1.1rem; }
.check-no { color: #ff4d6a; font-weight: 700; font-size: 1.1rem; }
.check-some { color: #ffd166; font-weight: 700; font-size: 1.1rem; }

/* CTA Section */
.cta-section { text-align: center; padding: 48px 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 48px; animation: fadeInUp 0.8s ease 0.35s both; }
.cta-section h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 24px; }
.cta-btn { display: inline-flex !important; width: auto !important; padding: 14px 36px !important; text-decoration: none; }

/* ===== IMAGE ENCRYPT ===== */
.file-drop-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; cursor: pointer; transition: all 0.3s ease; }
.file-drop-zone:hover, .file-drop-zone.dragover { border-color: var(--accent-cyan); background: rgba(0,212,255,0.03); }
.file-drop-zone p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; }
.file-drop-zone .file-info { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-cyan); }
.link-btn { background: none; border: none; color: var(--accent-cyan); cursor: pointer; text-decoration: underline; font-family: inherit; font-size: inherit; }
.image-preview { position: relative; margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; max-height: 200px; display: flex; align-items: center; justify-content: center; background: var(--bg-primary); }
.image-preview img { max-width: 100%; max-height: 200px; object-fit: contain; }
.remove-file { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; background: rgba(255,77,106,0.9); border: none; border-radius: 50%; color: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.decrypted-preview { margin-bottom: 16px; max-height: 300px; }
.download-btn { background: linear-gradient(135deg, #a855f7, #ec4899) !important; color: #fff !important; text-decoration: none; text-align: center; margin-top: 16px; display: flex !important; box-shadow: 0 4px 20px rgba(168,85,247,0.3) !important; }

/* ===== SOCIAL SHARE ===== */
.share-section { margin: 48px 0 24px; text-align: center; animation: fadeInUp 0.8s ease 0.4s both; }
.share-title { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.share-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-secondary); font-family: var(--font-display); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all 0.2s ease; }
.share-btn:hover { border-color: var(--text-muted); color: var(--text-primary); transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.x-btn:hover { border-color: #1da1f2; color: #1da1f2; }
.share-btn.fb-btn:hover { border-color: #1877f2; color: #1877f2; }
.share-btn.li-btn:hover { border-color: #0a66c2; color: #0a66c2; }
.share-btn.wa-btn:hover { border-color: #25d366; color: #25d366; }
.share-btn.tg-btn:hover { border-color: #0088cc; color: #0088cc; }
.share-btn.cp-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* ===== AD BANNER ===== */
.ad-banner { margin: 32px 0; padding: 24px; border: 1px dashed rgba(168,85,247,0.3); border-radius: var(--radius); background: rgba(168,85,247,0.03); text-align: center; animation: fadeInUp 0.8s ease 0.5s both; }
.ad-banner .ad-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ad-banner .ad-label { font-family: var(--font-display); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(168,85,247,0.5); margin-bottom: 4px; }
.ad-banner .ad-text { font-size: 0.95rem; color: var(--text-secondary); }
.ad-banner .ad-cta { font-family: var(--font-display); font-size: 0.7rem; font-weight: 600; color: #a855f7; text-decoration: none; transition: color 0.2s; }
.ad-banner .ad-cta:hover { color: #c084fc; }

/* ===== CONTACT FORM ===== */
.contact-card { max-width: 640px; margin: 0 auto; }
.form-row { display: flex; gap: 16px; }
.form-half { flex: 1; }
.captcha-group { margin-top: 4px; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-question { font-family: var(--font-mono); font-size: 1.1rem; color: var(--accent-cyan); background: var(--bg-primary); padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 100px; text-align: center; }
.captcha-equals { font-family: var(--font-mono); font-size: 1.2rem; color: var(--text-muted); }
.captcha-input { width: 80px !important; text-align: center; font-family: var(--font-mono); font-size: 1.1rem; }
.captcha-input::-webkit-inner-spin-button, .captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.captcha-input { -moz-appearance: textfield; }
.captcha-refresh { background: none; border: 1px solid var(--border); border-radius: 6px; padding: 8px; color: var(--text-muted); cursor: pointer; transition: all 0.2s; }
.captcha-refresh:hover { color: var(--accent-cyan); border-color: var(--accent-cyan); }
.contact-btn { background: linear-gradient(135deg, #a855f7, #ec4899) !important; color: #fff !important; box-shadow: 0 4px 20px rgba(168,85,247,0.3) !important; }
.contact-btn:hover { box-shadow: 0 4px 30px rgba(168,85,247,0.5) !important; }
.contact-success { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.25); border-radius: var(--radius-sm); color: var(--accent-green); font-size: 0.9rem; margin-top: 20px; animation: fadeInUp 0.4s ease; }

/* ===== Updated nav for more links ===== */
.nav-links { gap: 4px !important; }
.nav-link { padding: 8px 14px !important; font-size: 0.68rem !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .why-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .share-buttons { gap: 8px; }
    .share-btn { padding: 8px 12px; font-size: 0.6rem; }
    .captcha-row { flex-wrap: wrap; }
}

/* ===== EXPIRY SELECTOR ===== */
.expiry-wrapper { display: flex; flex-direction: column; gap: 8px; }
.expiry-select {
    width: 100%; padding: 12px 16px;
    background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-family: var(--font-body); font-size: 0.9rem;
    cursor: pointer; outline: none; transition: all 0.3s ease;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95a8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.expiry-select:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.expiry-select option { background: var(--bg-card); color: var(--text-primary); padding: 8px; }
.expiry-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; }
.expiry-hint svg { flex-shrink: 0; margin-top: 1px; opacity: 0.6; }
.expiry-notice {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: 12px;
    background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.25); border-radius: var(--radius-sm);
    color: #f59e0b; font-size: 0.82rem; font-weight: 500;
}
.expiry-notice strong { font-family: var(--font-mono); }
.expiry-notice.success-expiry { background: rgba(0,212,255,0.06); border-color: rgba(0,212,255,0.2); color: var(--accent-cyan); }

/* ===== Ad Zones ===== */
.ad-zone {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    text-align: center;
}
.ad-zone-top {
    margin-top: 80px; /* below fixed nav */
    margin-bottom: 10px;
}
.ad-zone-bottom {
    margin-top: 30px;
    margin-bottom: 10px;
}
.ad-custom {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10,15,26,0.6);
}
.ad-custom .ad-label {
    position: absolute;
    top: 4px;
    left: 8px;
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}
.ad-banner-img {
    max-width: 100%;
    max-height: 120px;
    display: block;
    object-fit: contain;
}
.ad-zone-top .ad-banner-img {
    max-height: 90px;
}
.ad-adsense {
    min-height: 90px;
}
@media (max-width: 768px) {
    .ad-zone-top { margin-top: 70px; }
    .ad-banner-img { max-height: 60px; }
}
