/* Doctor pages shared styles */
.doc-body { margin:0; background:#fff; color:#0f172a; font-family:'Inter', ui-sans-serif, system-ui, sans-serif; overflow-x:hidden; }
.doc-wrap { max-width:1500px; margin:0 auto; padding:94px 24px 48px; }

/* Navbar */
.doc-nav { 
    position:fixed; 
    top:0; 
    left:0; 
    right:0; 
    background:rgba(237, 245, 251, 0.95); 
    backdrop-filter: blur(10px);
    border-bottom:1px solid rgba(231, 237, 245, 0.8); 
    z-index:60; 
}
.doc-nav-wrap { 
    max-width:1500px; 
    margin:0 auto; 
    padding:14px 24px; 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
}
.doc-logo { 
    display:flex; 
    align-items:center; 
    gap:12px; 
    text-decoration:none; 
    color:#0b1220; 
    font-weight:800; 
}
.doc-logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}
.doc-menu { 
    display:flex; 
    align-items:center; 
    gap:20px; 
}
.doc-menu a { 
    text-decoration:none; 
    color:#64748b; 
    font-weight:600; 
    font-size:14px; 
    padding:10px 12px; 
    border-radius:10px; 
    transition: all 0.2s;
}
.doc-menu a.active { 
    background:transparent; 
    color:#1e3a8a; 
    font-weight:700;
}
.doc-menu a:hover:not(.active) { 
    color:#475569; 
}
.doc-actions { 
    display:flex; 
    align-items:center; 
    gap:14px; 
}
.doc-actions .icon { 
    width:36px; 
    height:36px; 
    border-radius:12px; 
    border:1px solid #e6ebf5; 
    background:#f8fafc; 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    cursor:pointer; 
    position:relative; 
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}
.doc-actions .icon:hover { 
    background:#eef2f7; 
    color: #1e3a8a;
}
.doc-actions .icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}
.doc-actions .notification-dot { 
    position:absolute; 
    right:6px; 
    top:6px; 
    width:8px; 
    height:8px; 
    border-radius:9999px; 
    background:#1e3a8a; 
    border: 2px solid #f8fafc;
}
.doc-actions .notification-badge {
    position:absolute;
    right: -4px;
    top: -4px;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}
.doc-actions .avatar { 
    width:36px; 
    height:36px; 
    border-radius:9999px; 
    overflow:hidden; 
    border:2px solid #1e3a8a; 
}
.doc-actions .avatar img { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    display:block; 
}

/* Dashboard */
.doc-grid { display:grid; grid-template-columns: 371px 1fr; gap:24px; }
.metrics { display:flex; flex-direction:column; gap:16px; }
.stat-card { background:#ffffff; border:1px solid #e7edf5; border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.04); padding:16px; }
.stat-head { color:#64748b; font-size:12px; margin-bottom:8px; }
.stat-body { display:flex; align-items:center; justify-content:space-between; }
.stat-value { font-weight:800; font-size:28px; color:#0b1220; }
.stat-icon { width:44px; height:44px; border-radius:12px; background:#e8effe; display:flex; align-items:center; justify-content:center; }
.stat-foot { margin-top:8px; color:#64748b; font-size:12px; }
.stat-foot .up { color:#16a34a; font-weight:700; }


.panel.upcoming { background:#ffffff; border:1px solid #e7edf5; border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.04); padding:14px; }
.up-head { display:flex; align-items:center; justify-content:space-between; padding:6px 6px 10px; }
.up-title { font-weight:500; color:#0b1220; font-size:20px; }
.up-actions .chip { padding:8px 10px; border-radius:8px; border:1px solid #e6ebf5; background:#ffffff; color:#334155; font-weight:600; }
.up-list { display:flex; flex-direction:column; gap:14px; }
.up-item { display:grid; grid-template-columns: 1.2fr 1fr 0.7fr 0.7fr; align-items:center; gap:16px; border-top:1px solid #dfe6ed; padding:12px 8px; }
.p { display:flex; align-items:center; gap:12px; }
.p-photo { width:56px; height:67px; border-radius:10px; overflow:hidden; }
.p-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.p-info .code { color:#46576e; font-size:13px; display:block; margin-bottom:6px; }
.p-info .name { color:#0b1220; font-weight:700; font-size:14px; }
.d .d-line { margin-bottom:6px; }
.d .chips .chip.lite { background:#cbd4f1; border:1px solid #e6ebf5; padding:6px 8px; border-radius:8px; font-size:12px; color:#101d2f; }
.t .type { color:#27447c; font-weight:500;padding: 3px; }
.a .btn.small { height:34px; font-size:14px; padding:0 10px; margin-left:51px; }

@media (max-width: 980px){
  .doc-grid { grid-template-columns: 1fr; }
  .row-grid { grid-template-columns: 1fr; }
  .next-card { grid-template-columns: 1fr; row-gap:12px; }
  .next-card .right { justify-self:start; }
  .up-item { grid-template-columns: 1fr; align-items:flex-start; gap:10px; }
  .req-item { grid-template-columns: 1fr; align-items:flex-start; gap:10px; }
  .p-photo { width:40px; height:40px; }
  .m-photo { width:36px; height:36px; }
  .btn.small { height:34px; }
  .doc-menu { display:none; }
  .stat-card { width:100%; padding:12px; }
  .stat-value { font-size:22px; }
  .up-title { font-size:16px; }
}

@media (max-width: 640px){
  .doc-nav-wrap { padding:10px 14px; }
  .doc-menu { gap:12px; }
  .doc-wrap { padding:84px 14px 36px; }
  .next-card { padding:14px; }
  .msg-item { padding:10px 12px; }
  .req-head, .msg-head { padding:10px 12px; }
  .chip, .up-actions .chip { padding:6px 8px; }
}

/* Next appointment */
.next-card { display:grid; grid-template-columns: 1fr 1fr auto; gap:16px; align-items:center; background:linear-gradient(90deg,#102a74 0%, #1e3a8a 60%, #27408f 100%); color:#ffffff; border-radius:14px; padding:18px; border:1px solid #0f2a6e; box-shadow:0 14px 28px rgba(0,0,0,.08); margin:0px 0; }
.next-card .eyebrow { font-size:12px; opacity:.85; margin-bottom:6px; }
.next-card .title { font-weight:800; font-size:16px; }
.next-card .meta { display:flex; gap:14px; margin-top:10px; color:#d2dcff; font-size:12px; }
.next-card .doc { display:flex; align-items:center; gap:12px; }
.next-card .doc .photo { width:64px; height:64px; border-radius:14px; overflow:hidden; border:2px solid #ffffff33; }
.next-card .doc .photo img { width:100%; height:100%; object-fit:cover; display:block; }
.next-card .doc .name { font-weight:700; }
.next-card .doc .sub { color:#d2dcff; font-size:12px; }
.next-card .btn.small { height:36px; }

/* Requests + messages */
.row-grid { display:grid; grid-template-columns: 2fr 0.9fr; gap:20px; margin-top:16px; }
.col-left { display:flex; flex-direction:column; gap:16px; }
.panel.requests, .panel.messages { background:#ffffff; border:1px solid #e7edf5; border-radius:14px; box-shadow:0 10px 24px rgba(0,0,0,.04); }

/* Requests */
.req-head { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid #f1f5f9; }
.req-title { font-weight:800; color:#0b1220; }
.req-list { display:flex; flex-direction:column; gap:12px; }
.req-item { display:grid; grid-template-columns: 1.2fr 1fr 0.7fr; gap:16px; align-items:center; padding:12px 14px; border:1px solid #e7edf5; border-radius:12px; background:#ffffff; }
.req-item .actions { display:flex; gap:12px; justify-self:end; }
.req-item .icon { width:28px; height:28px; border-radius:8px; border:1px solid #e6ebf5; background:#d6dcfd; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.req-item .icon.ok { color:#16a34a; }
.req-item .icon.no { color:#ef4444; }

/* Messages */
.msg-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid #eef2f7; }
.msg-title { font-weight:700; color:#0b1220; font-size:14px; }
.view-all { text-decoration:none; font-weight:700; color:#1e2a7a; }
.msg-list { display:flex; flex-direction:column; }
.msg-item { display:grid; grid-template-columns: 40px 1fr auto; align-items:center; gap:12px; padding: 21px 16px; border-top:1px solid #eef2f7; text-decoration:none; color:inherit; }
.msg-item:hover { background:#f8fafc; }
.m-photo { width:40px; height:40px; border-radius:10px; overflow:hidden; }
.m-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.m-body .m-name { font-weight:600; font-size:13px; margin-bottom:2px; color:#0b1220; }
.m-body .m-preview { color:#64748b; font-size:12px; }
.m-time { color:#9aa6b2; font-size:11px; display:flex; align-items:center; gap:8px; }
.m-badge { display:inline-flex; align-items:center; justify-content:center; min-width:11px; height:22px; padding:0 6px; border-radius:9999px; background:#1e2a7a; color:#ffffff; font-size:11px; font-weight:700; }

/* Background surface container */
.doc-surface { position:relative; background:#ffffff; border:1px solid #e7edf5; border-radius:24px; box-shadow:0 22px 48px rgba(0,0,0,.08); padding:48px 48px 48px; overflow:visible; }

/* Requests Page scoped adjustments */
.req-page .p-photo { width:56px; height:67px; }
.req-page .req-item { grid-template-columns: 1.2fr 1fr 0.7fr 0.5fr; }
.req-page .req-item .actions a { text-decoration:none; }

/* Appointments Page scoped */
.appt-page .appt-bar { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.appt-page .appt-bar .title { font-weight:800; color:#0b1220; }
.appt-page .appt-bar .tools { display:flex; align-items:center; gap:10px; }
.appt-page .appt-bar .search { height:40px; width:221px; border:1px solid #e6ebf5; border-radius:10px; padding:0 34px; font-family:inherit; font-size:13px; }
.appt-page .appt-tabs { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #eef2f7; margin:51px 0 12px; }
.appt-page .appt-tabs .links { display:flex; align-items:center; gap:18px; }
.appt-page .appt-tabs a { text-decoration:none; color:#0b122199; font-weight:700; padding:10px 4px; position:relative; }
.appt-page .appt-tabs a.active { color:#1e2a7a; }
.appt-page .appt-tabs a.active::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:#1e2a7a; }
.appt-page .appt-tabs span { color:#64748b; font-weight:600; margin-left:4px; }
.appt-page .appt-filter { display:flex; justify-content:flex-end; margin:8px 0 10px; }
.appt-page .appt-list { display:flex; flex-direction:column; gap:12px; }
.appt-page .appt-item { display:grid; grid-template-columns: 1.2fr 1fr 0.7fr auto; gap:16px; align-items:center; border:1px solid #e7edf5; border-radius:12px; background:#ffffff; box-shadow:0 10px 24px rgba(0,0,0,.06); padding:12px 12px; }
.appt-page .p-photo { width:56px; height:67px; border-radius:10px; overflow:hidden; }
.appt-page .actions { justify-self:end; }

@media (max-width: 980px){
  .appt-page .appt-item { grid-template-columns: 1fr; align-items:flex-start; }
  .appt-page .actions { justify-self:start; }
}
.doc-surface::before { content:""; position:absolute; inset:0; background:
  radial-gradient(circle at 24px 24px, rgba(30,42,122,.05) 0 1px, transparent 1px) 0 0/28px 28px,
  radial-gradient(circle at 12px 12px, rgba(30,42,122,.03) 0 1px, transparent 1px) 0 0/24px 24px; opacity:.4; pointer-events:none; }

/* Hero */
.doc-hero { background:transparent; border:none; border-radius:16px; box-shadow:none; padding:24px 12px 10px; text-align:center; position:relative; }
.doc-title { margin:0 0 8px; font-size:28px; font-weight:700; color:#0b1220; }
.doc-sub { margin:0 auto; max-width:760px; font-size:14px; color:#64748b; }

/* Plans Grid */
.plans { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; margin-top:18px; }
.plan-card { background:#ffffff; border:1px solid #e7edf5; border-radius:14px; box-shadow:0 12px 28px rgba(0,0,0,.06); padding:26px 22px 20px; display:flex; flex-direction:column; align-items:stretch; min-height:372px; }
.plan-card .plan-head { font-size:12px; font-weight:500; color:#64748b; margin-bottom:10px; }
.plan-card .plan-price { margin-bottom:12px; color:#0b1220; }
.plan-card .plan-price strong { font-size:18px; font-weight:700; }
.plan-card .plan-price span { font-size:12px; color:#0b1220; opacity:.8; }
.plan-card .plan-list { list-style:none; padding:0; margin:6px 0 16px; }
.plan-card .plan-list li { position:relative; padding-left:16px; margin:8px 0; font-size:12px; color:#334155; }
.plan-card .plan-list li::before { content:""; position:absolute; left:0; top:6px; width:6px; height:6px; border-radius:9999px; background:#1e2a7a; }

/* Featured Card */
.plan-card.featured { border-color:#1e2a7a; box-shadow:0 18px 36px rgba(30,42,122,.18); }
.plan-card .stack-badges { position:absolute; margin-top:-28px; left:50%; transform:translateX(-50%); display:flex; gap:6px; }
.badge { width:34px; height:34px; border-radius:9999px; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; border:4px solid #ffffff; box-shadow:0 8px 22px rgba(0,0,0,.15); }
.badge.orange { background:#f59e0b; }
.badge.purple { background:#6d28d9; }

/* Buttons */
.btn { height:40px; border-radius:10px; font-weight:500; border:1px solid transparent; cursor:pointer; margin-top:auto; display:inline-flex; align-items:center; justify-content:center; padding:0 16px; }
.btn.primary { background:#1e2a7a; color:#ffffff; }
.btn.ghost { color:#2a0fab; border-color:#e5e9f2;text-decoration:none; border:1px solid #64748b}
.btn.btn-wide { display:block; width:268px; height:25px; margin-left:auto; margin-right:auto; }

@media (max-width: 980px){
  .plans { grid-template-columns: 1fr; }
}

/* Modal */
.doc-modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.45); display:none; align-items:center; justify-content:center; padding:16px; z-index:100; }
.doc-modal { width:501px; max-width:100%; background:#ffffff; border:1px solid #e6ebf5; border-radius:28px; box-shadow:0 25px 60px rgba(0,0,0,.25); padding:114px 28px 28px; position:relative; 
height: 328px;
}
.doc-modal-close { position:absolute; right:12px; top:12px; width:26px; height:26px; border-radius:9999px; border:1px solid #e6ebf5; background:#ffffff; color:#334155; display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.doc-modal-close:hover { background:#f3f4f6; }
.doc-badge-wrap { position:relative; width:100%; display:flex; align-items:center; justify-content:center; }
.doc-badge-wrap::before { content:""; position:absolute; width:6px; height:6px; border-radius:9999px; background:#e6ebf5; left:45%; top:-6px; }
.doc-badge-wrap::after { content:""; position:absolute; width:6px; height:6px; border-radius:9999px; background:#e6ebf5; right:45%; top:2px; }
.doc-badge { width:64px; height:64px; border-radius:9999px; background:#1e2a7a; color:#ffffff; display:flex; align-items:center; justify-content:center; margin:14px auto; box-shadow:0 8px 22px rgba(30,42,122,.25); }
.doc-modal-title { text-align:center; color:#0b1220; font-size:20px; font-weight:700; margin:12px 0 6px; margin-top:27px; }
.doc-modal-sub { text-align:center; color:#64748b; font-size:13px; max-width:331px; margin:0 auto; }
.doc-modal-actions { margin-top:18px; }
.doc-modal-actions a {
  display: inline-block;
  text-align: center;
  text-decoration: none; /* remove underline */
  color: #fff;
  background-color: #007bff; /* example button color */
  padding: 10px 20px; /* adds space around text */
  border-radius: 6px; /* optional, rounded corners */
}

.doc-modal-actions {
  text-align: center; /* centers button in container */
}

/* Subscription Page Styles */
.subscription-hero {
    text-align: center;
    margin-bottom: 48px;
}
.subscription-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: #0b1220;
    margin-bottom: 16px;
}
.subscription-hero p {
    font-size: 16px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.billing-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}
.billing-tab {
    padding: 10px 24px;
    border: 1px solid #e7edf5;
    background: #ffffff;
    color: #64748b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.billing-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.billing-tab.active {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}
.billing-tab.active:hover {
    background: #1e40af;
    border-color: #1e40af;
}
/* Plans Slider */
.plans-slider-wrapper {
    position: relative;
    margin-bottom: 32px;
    overflow: visible;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.no-plans-message {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}
.no-plans-content {
    text-align: center;
    padding: 40px 20px;
}
.no-plans-content p {
    font-size: 18px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}
.plans-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: visible;
}
.plans-slider {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    min-width: 0;
    width: 100%;
}
.plans-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}
.plans-track .plan-card {
    flex: 0 0 calc((100% - 24px) / 3);
    min-width: 0;
    max-width: calc((100% - 24px) / 3);
    box-sizing: border-box;
    flex-shrink: 0;
}
.slider-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e7edf5;
    background: #ffffff;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    z-index: 10;
}
.slider-nav-btn svg {
    width: 20px;
    height: 20px;
}
.slider-nav-btn:hover:not(:disabled) {
    background: #1e3a8a;
    color: #ffffff;
    border-color: #1e3a8a;
}
.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.slider-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
}
.slider-indicator.active {
    background: #1e3a8a;
    width: 24px;
    border-radius: 4px;
}

/* Fallback grid layout for when slider is not needed */
.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}
.plan-card {
    background: #ffffff;
    border: 1px solid #e7edf5;
    border-radius: 14px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    height: auto;
    min-height: 400px;
    max-height: 480px;
    width: 100%;
}
.plan-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    z-index: 5;
    position: relative;
}
.plan-card.featured {
    border: 2px solid #1e3a8a;
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.15);
}
.plan-head {
    font-size: 16px;
    font-weight: 700;
    color: #0b1220;
    margin-bottom: 10px;
    line-height: 1.3;
}
.plan-price {
    font-size: 24px;
    font-weight: 800;
    color: #0b1220;
    margin-bottom: 16px;
    line-height: 1.2;
}
.plan-price strong {
    color: #1e3a8a;
}
.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
}
.plan-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    flex-grow: 1;
    overflow-y: auto;
}
.plan-list li {
    padding: 6px 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
    position: relative;
    padding-left: 18px;
}
.plan-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e3a8a;
    font-weight: bold;
    font-size: 18px;
}
.plan-card .btn {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: auto;
}
.plan-card .btn.primary {
    background-color: #1e3a8a;
    color: #ffffff;
}
.plan-card .btn.primary:hover {
    background-color: #1e40af;
}
.plan-card .btn.ghost {
    background-color: #f8fafc;
    color: #0b1220;
    border: 1px solid #e7edf5;
}
.plan-card .btn.ghost:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}
.skip-section {
    text-align: left;
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}
.skip-btn {
    background: #ffffff;
    border: 1px solid #000000;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-block;
    font-family: inherit;
    box-shadow: none;
}
.skip-btn:hover {
    background: #f9fafb;
    border-color: #000000;
    color: #374151;
}
.skip-btn:active {
    background: #f3f4f6;
}
@media (max-width: 1024px) {
    .plans-track .plan-card {
        flex: 0 0 calc(50% - 12px);
    }
    .plans {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto 32px;
    }
}
@media (max-width: 768px) {
    .plans-track .plan-card {
        flex: 0 0 100%;
    }
    .slider-nav-btn {
        width: 36px;
        height: 36px;
    }
}
@media (max-width: 640px) {
    .subscription-hero h1 {
        font-size: 28px;
    }
    .subscription-hero p {
        font-size: 14px;
    }
    .plan-card {
        padding: 24px 20px;
    }
}


