:root{
  --brand-primary: #0A6FB8; /* approx blue from DnaMed style */
  --brand-secondary: #14B8A6; /* teal accent */
  --brand-accent: #F59E0B; /* warm accent */
  --text: #1F2937;
  --muted: #6B7280;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E5E7EB;
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial,sans-serif;color:var(--text);background:var(--bg)}
.container{max-width:1100px;margin:0 auto;padding:16px}
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:10}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.logo{font-weight:800;color:var(--brand-primary);text-decoration:none;font-size:22px}
.logo .accent{color:var(--brand-secondary)}
.nav a{margin-left:16px;text-decoration:none;color:var(--text)}
.hero{padding:40px 0;margin-bottom:24px}
.hero h1{font-size:28px;margin-bottom:20px;color:var(--brand-primary)}
.search{display:grid;grid-template-columns:2fr 1.5fr 1.5fr auto;gap:12px;align-items:flex-end}
.search input,.search select{padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:14px}
.search input:focus,.search select:focus{outline:none;border-color:var(--brand-secondary);box-shadow:0 0 0 3px rgba(20,184,166,0.1)}
.search button{padding:12px 24px;background:var(--brand-primary);color:#fff;border:0;border-radius:8px;font-weight:600;cursor:pointer;transition:background 0.2s}
.search button:hover{background:#085a99}
.filters{display:grid;grid-template-columns:2fr 1.5fr 1.5fr auto;gap:12px;align-items:flex-end;margin-bottom:24px}
.filters input,.filters select{padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:#fff;font-size:14px}
.filters input:focus,.filters select:focus{outline:none;border-color:var(--brand-secondary);box-shadow:0 0 0 3px rgba(20,184,166,0.1)}
.filters button{padding:12px 24px;background:var(--brand-primary);color:#fff;border:0;border-radius:8px;font-weight:600;cursor:pointer;transition:background 0.2s}
.filters button:hover{background:#085a99}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;transition:all 0.3s;text-decoration:none;color:inherit;display:block}
.card:hover{box-shadow:0 4px 12px rgba(0,0,0,0.1);transform:translateY(-2px)}
.doctor-card-list{display:flex;gap:16px;padding:16px;background:var(--card);border:1px solid var(--border);border-radius:12px;transition:all 0.3s;text-decoration:none;color:inherit;position:relative}
.doctor-card-list:hover{box-shadow:0 4px 12px rgba(0,0,0,0.1);transform:translateY(-2px);border-color:var(--brand-secondary)}
.doctor-card-list.card-pro{border:2px solid var(--brand-secondary);background:linear-gradient(to right,#f0fdfa 0%,#fff 100px)}
.doctor-card-list.card-free{display:block;padding:10px;border-color:#e0e0e0;background:#fafafa;opacity:0.85}
.doctor-card-list.card-free:hover{box-shadow:0 2px 6px rgba(0,0,0,0.05);transform:translateY(-1px);border-color:#d0d0d0}
.doctor-card-list.card-free .doctor-card-content-right{gap:4px}
.doctor-card-list.card-free .doctor-card-content-right h3{font-size:15px;font-weight:500;color:var(--muted)}
.doctor-card-list.card-free .specialty-text{font-size:12px}
.doctor-card-list.card-free .address-text,.doctor-card-list.card-free .city-text{font-size:11px}
.doctor-card-list.card-free .badge-base-inline{font-size:9px;padding:2px 6px}
.doctor-card-photo-left{flex-shrink:0;width:120px;height:120px}
.doctor-card-photo-left img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid var(--brand-primary);box-shadow:0 2px 8px rgba(0,0,0,0.1)}
.photo-placeholder-left{width:100%;height:100%;border-radius:50%;background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700;color:#fff;border:3px solid var(--brand-primary)}
.doctor-card-content-right{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.doctor-card-content-right h3{margin:0;font-size:18px;color:var(--brand-primary);font-weight:600}
.badge-pro-inline{display:inline-block;width:fit-content;padding:3px 10px;background:var(--brand-secondary);color:#fff;font-size:10px;font-weight:700;border-radius:4px;margin-bottom:4px;position:absolute;top:12px;right:12px}
.badge-base-inline{display:inline-block;width:fit-content;padding:3px 10px;background:var(--brand-primary);color:#fff;font-size:10px;font-weight:700;border-radius:4px;margin-bottom:4px}
.card-rating-inline{display:flex;align-items:center;gap:6px;margin-bottom:4px}
.card-rating-inline .rating-stars-inline{display:flex;gap:1px}
.card-rating-inline .rating-value{font-size:14px;font-weight:700;color:var(--brand-primary)}
.specialty-text{margin:0;font-size:14px;color:var(--text);font-weight:500}
.address-text{margin:0;font-size:13px;color:var(--muted)}
.city-text{margin:0;font-size:13px;color:var(--brand-primary);font-weight:500}
.cards-home{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:1024px){.cards-home{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.cards-home{grid-template-columns:1fr}}
.profile header{margin-bottom:16px}
.slots{list-style:none;padding:0;margin:0}
.slots li{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px dashed var(--border)}
.muted{color:var(--muted)}
.btn{background:var(--brand-secondary);color:#fff;text-decoration:none;padding:8px 12px;border-radius:6px;display:inline-block}
.form{display:grid;gap:12px}
.form input,.form select,.form textarea{padding:10px;border:1px solid var(--border);border-radius:6px;background:#fff}
.form .error{color:#b91c1c;font-size:12px}
.notice{background:#ecfeff;border:1px solid #a5f3fc;padding:8px;border-radius:6px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.col-span-4{grid-column:1/-1}
.site-footer{margin-top:40px;border-top:1px solid var(--border);background:#fff}
.site-footer p{margin:0;padding:16px;color:var(--muted)}
.table-wrap{overflow:auto;width:100%}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left}
.table th{background:#f1f5f9;color:#0f172a;font-weight:600}
.table tr:hover td{background:#f8fafc}
.profile-header{display:flex;gap:24px;align-items:flex-start;margin-bottom:24px;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:10px}
.profile-photo{width:120px;height:120px;border-radius:50%;object-fit:cover;border:3px solid var(--brand-primary)}
.profile-info{flex:1}
.profile-info h1{margin:0 0 8px 0;font-size:26px;color:var(--brand-primary)}
.profile-info .muted{margin:4px 0;font-size:14px}
.profile section{margin-bottom:24px;padding:20px;background:var(--card);border:1px solid var(--border);border-radius:10px}
.profile section h2{margin:0 0 12px 0;font-size:20px;color:var(--brand-primary);border-bottom:2px solid var(--brand-secondary);padding-bottom:8px}
.profile section p,.profile section pre{margin:0;line-height:1.6}
.profile section pre{white-space:pre-wrap;font-family:inherit;background:#f8fafc;padding:12px;border-radius:6px;border-left:3px solid var(--brand-secondary)}
.form h2{margin:24px 0 12px 0;font-size:18px;color:var(--brand-primary);border-bottom:2px solid var(--brand-secondary);padding-bottom:6px}
.form h2:first-child{margin-top:0}
.form label{display:block;font-weight:500;margin-bottom:4px}
.form label small{display:block;font-weight:400;color:var(--muted);font-size:12px;margin-top:4px}
.form-doctor{max-width:900px;margin:0 auto}
.form-section{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:24px;margin-bottom:20px}
.form-section h2{margin:0 0 20px 0;font-size:18px;color:var(--brand-primary);border-bottom:2px solid var(--brand-secondary);padding-bottom:10px}
.specialties-checkboxes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;padding:8px 12px;border-radius:6px;transition:background 0.2s}
.checkbox-label:hover{background:#f0fdfa}
.checkbox-label input[type="checkbox"]{cursor:pointer;width:18px;height:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.form-grid label{margin-bottom:0}
.col-span-2{grid-column:1/-1}
.current-photo{text-align:center;margin-bottom:20px;padding:20px;background:#f8fafc;border-radius:8px}
.current-photo img{width:200px;height:200px;object-fit:cover;border-radius:50%;border:4px solid var(--brand-primary);display:block;margin:0 auto;box-shadow:0 4px 12px rgba(0,0,0,0.15)}
.photo-caption{margin:8px 0 0 0;font-size:13px;color:var(--muted)}
.form-actions{display:flex;gap:12px;justify-content:flex-start;margin-top:24px}
.btn-secondary{padding:8px 16px;background:#fff;color:var(--text);border:1px solid var(--border);text-decoration:none;border-radius:6px;display:inline-block}
.btn-secondary:hover{background:#f8fafc;border-color:var(--muted)}
input[type="file"]{padding:8px;border:2px dashed var(--border);border-radius:6px;background:#f8fafc;cursor:pointer}
input[type="file"]:hover{border-color:var(--brand-secondary);background:#f0fdfa}
.star-rating{display:flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}
.star-rating input{display:none}
.star-rating label{font-size:32px;color:#ddd;cursor:pointer;transition:color 0.2s}
.star-rating input:checked ~ label,.star-rating label:hover,.star-rating label:hover ~ label{color:#fbbf24}
.btn-secondary{display:inline-block;padding:8px 12px;border:1px solid var(--border);background:#fff;color:var(--text);text-decoration:none;border-radius:6px;margin-left:8px}
.reviews-section{margin-top:24px;padding:24px;background:var(--card);border:1px solid var(--border);border-radius:10px}
.reviews-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid var(--brand-secondary)}
.reviews-header h2{margin:0;font-size:22px;color:var(--brand-primary)}
.reviews-summary{display:grid;grid-template-columns:200px 1fr;gap:32px;margin-bottom:32px;padding:20px;background:#f8fafc;border-radius:8px}
.rating-overview{text-align:center}
.rating-number{font-size:48px;font-weight:700;color:var(--brand-primary);line-height:1}
.rating-stars{font-size:24px;margin:8px 0}
.rating-stars .star{color:#ddd}
.rating-stars .star.filled{color:#fbbf24}
.rating-stars .star.half{color:#fbbf24;position:relative}
.rating-count{color:var(--muted);font-size:14px}
.rating-breakdown{display:flex;flex-direction:column;gap:8px}
.rating-bar-row{display:flex;align-items:center;gap:12px}
.star-label{width:40px;font-size:14px;color:var(--muted)}
.rating-bar{flex:1;height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}
.rating-bar-fill{height:100%;background:#fbbf24;transition:width 0.3s}
.rating-bar-count{width:40px;text-align:right;font-size:14px;color:var(--muted)}
.reviews-list{display:flex;flex-direction:column;gap:20px}
.review-item{padding:20px;border:1px solid var(--border);border-radius:8px;background:#fff}
.review-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.review-author strong{font-size:16px;color:var(--text)}
.verified-badge{display:inline-block;margin-left:8px;padding:2px 8px;background:#10b981;color:#fff;font-size:11px;border-radius:4px;font-weight:600}
.review-meta{text-align:right}
.review-stars{margin-bottom:4px}
.review-stars .star{font-size:16px;color:#ddd}
.review-stars .star.filled{color:#fbbf24}
.review-date{font-size:13px;color:var(--muted)}
.review-text{margin:0 0 8px 0;line-height:1.6;color:var(--text)}
.review-visit-date{margin:0;font-size:13px;color:var(--muted)}
.doctor-reply{margin-top:16px;padding:16px;background:#ecfeff;border-left:3px solid var(--brand-secondary);border-radius:6px}
.doctor-reply strong{display:block;margin-bottom:8px;color:var(--brand-secondary)}
.doctor-reply p{margin:0 0 8px 0;line-height:1.6}
.doctor-reply time{font-size:12px;color:var(--muted)}
.profile-container{display:grid;grid-template-columns:350px 1fr;gap:24px;max-width:1200px;margin:0 auto}
.profile-sidebar{display:flex;flex-direction:column;gap:20px}
.profile-card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px}
.profile-photo-large{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;margin-bottom:16px}
.profile-photo-placeholder{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));border-radius:12px;margin-bottom:16px}
.profile-photo-placeholder span{font-size:64px;font-weight:700;color:#fff}
.profile-name{margin:0 0 12px 0;font-size:24px;color:var(--brand-primary);text-align:center}
.profile-rating{text-align:center;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--border)}
.rating-stars-inline{display:inline-flex;gap:2px;margin-bottom:4px}
.rating-stars-inline .star{font-size:18px;color:#ddd}
.rating-stars-inline .star.filled{color:#fbbf24}
.rating-text{display:block;font-size:13px;color:var(--muted)}
.doctor-profile-header{background:#fff;border-bottom:1px solid var(--border);padding:32px 0;margin-bottom:32px}
.profile-header-content{display:flex;gap:32px;align-items:flex-start}
.profile-photo-section{flex-shrink:0}
.profile-photo-round{width:160px;height:160px;border-radius:50%;object-fit:cover;border:4px solid var(--brand-primary);box-shadow:0 4px 16px rgba(0,0,0,0.1)}
.profile-photo-placeholder-round{width:160px;height:160px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--brand-primary),var(--brand-secondary));border:4px solid var(--brand-primary);box-shadow:0 4px 16px rgba(0,0,0,0.1)}
.profile-photo-placeholder-round span{font-size:48px;font-weight:700;color:#fff}
.profile-info-section{flex:1;min-width:0}
.profile-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:16px}
.profile-title{margin:0 0 8px 0;font-size:28px;color:var(--brand-primary);font-weight:700}
.pro-badge-inline{display:inline-block;padding:4px 12px;background:var(--brand-secondary);color:#fff;font-size:12px;font-weight:700;border-radius:4px;margin-left:12px}
.profile-rating-inline{display:flex;align-items:center;gap:8px;margin-top:8px}
.rating-count{font-size:14px;color:var(--muted)}
.profile-actions{display:flex;gap:12px}
.upgrade-notice{background:#fef3c7;border:1px solid #f59e0b;border-radius:8px;padding:16px;text-align:center}
.notice-text{margin:0 0 12px 0;font-size:14px;color:#92400e;font-weight:600}
.upgrade-notice .btn{background:var(--brand-primary);color:#fff;padding:8px 16px;border-radius:6px;text-decoration:none;display:inline-block;transition:background 0.2s}
.upgrade-notice .btn:hover{background:#085a99}
.profile-quick-info{display:flex;flex-wrap:wrap;gap:24px;padding-top:16px;border-top:1px solid var(--border)}
.info-item{display:flex;align-items:center;gap:6px;font-size:15px}
.info-icon{font-size:18px}
.info-item a{color:var(--brand-primary);text-decoration:none}
.info-item a:hover{text-decoration:underline}
.profile-content{padding:24px 0}
.profile-layout{display:grid;grid-template-columns:300px 1fr;gap:32px}
.profile-sidebar-compact{display:flex;flex-direction:column;gap:24px}
.sidebar-section{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.sidebar-section h3{margin:0 0 16px 0;font-size:18px;color:var(--brand-primary);font-weight:600}
.sidebar-section p{margin:0;font-size:14px;line-height:1.6}
.map-container-compact{width:100%;height:200px;border-radius:8px;overflow:hidden;margin-bottom:12px;border:1px solid var(--border)}
.opening-hours{margin:0;font-family:inherit;white-space:pre-wrap;font-size:14px;line-height:1.8}
.profile-main-compact{display:flex;flex-direction:column;gap:24px}
.profile-main-compact section{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:24px;box-shadow:0 2px 8px rgba(0,0,0,0.05)}
.profile-main-compact section h2{margin:0 0 16px 0;font-size:22px;color:var(--brand-primary);border-bottom:2px solid var(--brand-secondary);padding-bottom:10px}
.profile-main section h2{margin:0 0 16px 0;font-size:22px;color:var(--brand-primary);border-bottom:2px solid var(--brand-secondary);padding-bottom:10px}
.booking-section{scroll-margin-top:20px}
.alert{padding:16px;border-radius:8px;margin-bottom:16px}
.alert-info{background:#e0f2fe;border:1px solid #7dd3fc;color:#075985}
.alert p{margin:0}
.alert p + p{margin-top:8px}
.booking-slots{display:flex;flex-direction:column;gap:20px}
.booking-day{border:1px solid var(--border);border-radius:8px;padding:16px;background:#f8fafc}
.day-header{margin:0 0 12px 0;font-size:18px;color:var(--brand-primary);font-weight:600}
.day-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.slot-card{display:flex;flex-direction:column;gap:8px;padding:12px 16px;background:#fff;border:2px solid var(--border);border-radius:8px;text-decoration:none;color:var(--text);transition:all 0.2s}
.slot-card:hover{border-color:var(--brand-secondary);background:#f0fdfa;transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.slot-time{font-size:15px;font-weight:600;color:var(--brand-primary)}
.slot-action{font-size:13px;color:var(--brand-secondary);font-weight:500}
@media (max-width:720px){.search{grid-template-columns:1fr;gap:12px}.filters{grid-template-columns:1fr;gap:12px}.grid-4{grid-template-columns:1fr}.search input,.search select,.search button,.filters input,.filters select,.filters button{width:100%}.search button,.filters button{justify-self:auto}.profile-header-content{flex-direction:column;align-items:center;text-align:center}.profile-photo-round{width:120px;height:120px}.profile-title-row{flex-direction:column;align-items:center;text-align:center}.profile-quick-info{flex-direction:column;gap:12px}.profile-layout{grid-template-columns:1fr}.doctor-card-list{gap:12px;padding:12px}.doctor-card-photo-left{width:80px;height:80px;flex-shrink:0}.doctor-card-content-right{flex:1;gap:3px}.doctor-card-content-right h3{font-size:16px}.specialty-text{font-size:12px}.address-text{font-size:12px}.city-text{font-size:12px}.badge-pro-inline,.badge-base-inline{padding:2px 8px;font-size:9px;margin-bottom:2px}.card-rating-inline .rating-value{font-size:13px}.reviews-summary{grid-template-columns:1fr}.reviews-header{flex-direction:column;gap:12px;align-items:stretch}.reviews-header .btn{width:100%}.day-slots{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-actions{flex-direction:column}.form-actions .btn,.form-actions .btn-secondary{width:100%}}
