/* ============================================
   MyDocstor - Guide Page
   ============================================ */
.guide-wrap {
    background: linear-gradient(135deg, #f5f3ff 0%, #f8fafc 50%, #ede9fe 100%);
    min-height: 100vh;
    padding: 4rem 1rem;
}

.guide-inner {
    max-width: 56rem;
    margin: 0 auto;
}

.guide-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.guide-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #0f172a, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-header p {
    color: #64748b;
    font-size: 1.05rem;
}

/* Tabs — same visual language as the dashboard tabs */
.guide-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 0.4rem;
    flex-wrap: wrap;
}

.guide-tab {
    flex: 1;
    min-width: 120px;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.guide-tab:hover { color: #7c3aed; }
.guide-tab.active {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.guide-panel { display: none; }
.guide-panel.active { display: block; }

.guide-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
}

.guide-card h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.guide-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

.guide-card h3:first-of-type { margin-top: 0; }

.guide-card p {
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.guide-steps {
    counter-reset: guide-step;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.guide-steps li {
    counter-increment: guide-step;
    position: relative;
    padding: 0.75rem 0 0.75rem 2.75rem;
    color: #374151;
    line-height: 1.7;
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

.guide-steps li:last-child { border-bottom: none; }

.guide-steps li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 1.75rem;
    height: 1.75rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.guide-tool-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.guide-tool-item:last-child { border-bottom: none; }

.guide-tool-item strong {
    display: block;
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.guide-tool-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.guide-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.6rem;
    border-radius: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.guide-tag.free { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.guide-tag.login { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }

.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
}

.guide-table th, .guide-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
}

.guide-table th {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.guide-table td { color: #374151; }
.guide-table tr:last-child td { border-bottom: none; }

.guide-niche-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.guide-niche-card {
    background: rgba(124, 58, 237, 0.03);
    border: 1.5px solid rgba(124, 58, 237, 0.1);
    border-radius: 0.875rem;
    padding: 1.1rem;
}

.guide-niche-card strong {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.guide-niche-card p {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .guide-header h1 { font-size: 1.875rem; }
    .guide-card { padding: 1.5rem; }
    .guide-tab { font-size: 0.78rem; padding: 0.55rem 0.6rem; min-width: 90px; }
}
