/* ========================================================
   LK Unlock - Modern Dark Theme
   ======================================================== */

:root {
    --bg-primary: #0b0f19;
    --bg-card: #151b28;
    --bg-card-hover: #1c2436;
    --bg-input: #0f1420;
    --border-color: #242e42;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius: 12px;
    --transition: all 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background: rgba(15, 20, 32, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.brand-icon {
    width: 32px;
    height: 32px;
    fill: var(--success);
}

.brand-highlight {
    color: var(--success);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
}

.btn-nav-primary {
    background: var(--primary);
    color: #fff !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
}

.btn-nav-primary:hover {
    background: var(--primary-hover);
}

/* --- Container & Layout --- */
.container {
    max-width: 900px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    flex: 1;
    width: 100%;
}

.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Cards & Panels --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

/* --- Unlock Page Center Box --- */
.unlock-wrapper {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
}

.shield-container {
    margin-bottom: 1.2rem;
}

.shield-icon {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.unlock-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.unlock-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

/* --- Step Buttons --- */
.step-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.step-btn.active {
    background: #1d4ed8;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.step-btn.active:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.step-btn.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success);
    color: #a7f3d0;
    cursor: default;
}

.step-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #151b28;
    border-color: #242e42;
}

.step-btn .icon-left {
    margin-right: 0.8rem;
    font-size: 1.2rem;
}

.step-btn .icon-right {
    font-size: 1.2rem;
}

/* --- Progress Bar --- */
.progress-container {
    margin: 1.8rem 0;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.4s ease;
}

/* --- Main Unlock Final Button --- */
.btn-unlock {
    width: 100%;
    padding: 1.1rem;
    border-radius: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    border: none;
    cursor: not-allowed;
    background: #2b3548;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
}

.btn-unlock.ready {
    background: var(--success);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.btn-unlock.ready:hover {
    background: var(--success-hover);
    transform: translateY(-2px);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* --- Presets Bar (Image 2 style) --- */
.presets-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.preset-chip {
    background: #1e3a8a;
    color: #bfdbfe;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #2563eb;
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip:hover {
    background: #2563eb;
    color: #ffffff;
    transform: scale(1.05);
}

/* --- Input Groups --- */
.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-box {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-box:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.action-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: center;
}

.action-row .input-box {
    flex: 1;
}

.btn-remove-action {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-action:hover {
    background: var(--danger);
    color: #fff;
}

.btn-generate {
    width: 100%;
    padding: 1.1rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-generate:hover {
    background: var(--primary-hover);
}

/* --- Modal Popup (Image 4 style) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1;
}

.modal-box {
    background: #1e2433;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 2rem;
    max-width: 460px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    text-align: left;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.modal-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.btn-copy {
    flex: 1;
    background: var(--success);
    color: white;
    padding: 0.9rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-copy:hover {
    background: var(--success-hover);
}

.btn-new-url {
    flex: 1;
    background: #f43f5e;
    color: white;
    padding: 0.9rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-new-url:hover {
    background: #e11d48;
}

/* --- Stats & Dashboard --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Table --- */
.table-responsive {
    overflow-x: auto;
    margin-top: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    background: rgba(15, 20, 32, 0.4);
}

.data-table td {
    font-size: 0.95rem;
}

.btn-table-del {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-table-del:hover {
    background: var(--danger);
    color: white;
}

/* --- FAQ Section --- */
.faq-box {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.faq-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: left;
    margin-bottom: 1rem;
}

.faq-q {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.8rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
/* Universal Dark Inputs */
input, select, textarea {
    background-color: #0b0e15 !important;
    color: #F8FAFC !important;
    border-color: #1E293B !important;
}

input::placeholder, textarea::placeholder {
    color: #64748B !important;
}

input:focus, select:focus, textarea:focus {
    border-color: #4edea3 !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
    outline: none !important;
}

/* Chrome autofill fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #F8FAFC !important;
    -webkit-box-shadow: 0 0 0px 1000px #0b0e15 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}
