*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb}a{text-decoration:none;color:inherit}.auth-page{min-height:100vh;background:linear-gradient(135deg,#0f172a,#1e3a8a);display:grid;place-items:center;padding:24px}.auth-shell{width:100%;max-width:430px}.auth-card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 25px 80px rgba(0,0,0,.25)}.auth-card h1{margin:12px 0 4px}.auth-card p{margin:0 0 22px;color:#64748b;font-size:14px}.brand-mark{width:52px;height:52px;border-radius:14px;background:#2563eb;color:#fff;display:grid;place-items:center;font-weight:800}.brand-mark.small{width:34px;height:34px;border-radius:10px;font-size:12px}.auth-card label,.panel label{display:block;font-size:12px;font-weight:700;margin:12px 0 6px}.auth-card input,.panel input,.panel textarea{width:100%;padding:11px 12px;border:1px solid #d6dce7;border-radius:9px;font:inherit;background:#fff}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:9px;padding:10px 14px;font-weight:700;cursor:pointer}.btn.primary{background:#2563eb;color:#fff;width:100%;margin-top:16px}.btn.ghost{background:#fff;border:1px solid #d6dce7;color:#334155;width:auto;margin:0}.auth-links{text-align:center;margin-top:14px;font-size:13px;color:#2563eb}.auth-card footer{text-align:center;margin-top:24px;color:#94a3b8;font-size:11px}.alert{padding:10px 12px;border-radius:9px;margin-bottom:14px;font-size:12px}.alert.error{background:#fef2f2;color:#b91c1c}.alert.success{background:#ecfdf5;color:#047857}.topbar{height:66px;padding:0 28px;background:#fff;border-bottom:1px solid #e7ebf2;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}.brand-row,.top-actions{display:flex;align-items:center;gap:10px}.container{max-width:1200px;margin:0 auto;padding:28px}.container.narrow{max-width:760px}.welcome{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;margin-bottom:22px}.welcome h1{margin:4px 0}.welcome p{margin:0;color:#64748b}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2563eb}.date-chip{background:#fff;border:1px solid #dfe4ec;padding:8px 10px;border-radius:8px;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stats article,.panel{background:#fff;border:1px solid #e2e7ef;border-radius:16px;padding:18px;box-shadow:0 8px 25px rgba(15,23,42,.04)}.stats span{display:block;color:#64748b;font-size:11px}.stats strong{display:block;font-size:28px;margin-top:5px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel h2,.panel h1{margin-top:0}.panel p{color:#64748b;font-size:13px}.actions-stack{display:grid;gap:10px}.action-card{display:flex;align-items:center;justify-content:space-between;border:1px solid #dfe4ec;border-radius:11px;padding:14px}.action-card:hover{border-color:#2563eb}.action-card span b,.action-card span small{display:block}.action-card span small{margin-top:3px;color:#64748b}.empty{text-align:center;border:1px dashed #cbd5e1;border-radius:10px;padding:20px}.empty b,.empty span{display:block}.empty span{font-size:11px;color:#64748b;margin-top:4px}.list{display:grid}.list-row{display:flex;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #eef1f5}.list-row b,.list-row small{display:block}.list-row small{color:#64748b;margin-top:3px}.badge{font-size:10px;background:#eef2ff;color:#3730a3;padding:4px 7px;border-radius:99px;height:max-content}.info-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef1f5;padding:10px 0}.info-row span{color:#64748b;font-size:12px}.info-row b{font-size:12px}@media(max-width:850px){.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.welcome{align-items:flex-start;flex-direction:column}}

/* =========================================================
   EMLAKPRO V3 PRO UI
   ========================================================= */
:root{
  --ep-bg:#f4f6fb;
  --ep-panel:#ffffff;
  --ep-text:#0f172a;
  --ep-muted:#64748b;
  --ep-border:#e5e9f2;
  --ep-primary:#2563eb;
  --ep-primary-2:#1d4ed8;
  --ep-dark:#0f172a;
  --ep-soft:#f8fafc;
  --ep-success:#059669;
  --ep-warning:#d97706;
  --ep-danger:#dc2626;
  --ep-radius:16px;
  --ep-shadow:0 10px 30px rgba(15,23,42,.06);
}

body.app-page{
  background:var(--ep-bg);
  color:var(--ep-text);
}

.pro-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:250px 1fr;
}

.pro-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  background:#0f172a;
  color:#fff;
  padding:20px 16px;
  display:flex;
  flex-direction:column;
  z-index:40;
}

.pro-logo{
  display:flex;
  align-items:center;
  gap:11px;
  padding:4px 6px 20px;
  border-bottom:1px solid rgba(255,255,255,.08);
  margin-bottom:16px;
}

.pro-logo-mark{
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(135deg,#3b82f6,#14b8a6);
  display:grid;
  place-items:center;
  font-weight:900;
}

.pro-logo-text strong{
  display:block;
  font-size:15px;
}

.pro-logo-text span{
  display:block;
  font-size:10px;
  color:#94a3b8;
  margin-top:2px;
}

.pro-nav{
  display:grid;
  gap:5px;
}

.pro-nav a{
  display:flex;
  align-items:center;
  gap:10px;
  color:#cbd5e1;
  padding:10px 11px;
  border-radius:10px;
  font-size:12px;
  font-weight:700;
  transition:.15s ease;
}

.pro-nav a:hover,
.pro-nav a.active{
  color:#fff;
  background:rgba(255,255,255,.08);
}

.pro-nav-icon{
  width:28px;
  height:28px;
  border-radius:8px;
  background:rgba(255,255,255,.06);
  display:grid;
  place-items:center;
  font-size:12px;
}

.pro-sidebar-footer{
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.08);
}

.pro-user-mini{
  padding:10px;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  margin-bottom:8px;
}

.pro-user-mini strong{
  display:block;
  font-size:11px;
}

.pro-user-mini span{
  display:block;
  font-size:9px;
  color:#94a3b8;
  margin-top:2px;
  word-break:break-all;
}

.pro-sidebar-footer a{
  display:block;
  text-align:center;
  background:#fff;
  color:#0f172a;
  padding:9px;
  border-radius:9px;
  font-size:11px;
  font-weight:800;
}

.pro-main{
  min-width:0;
}

.pro-topbar{
  height:68px;
  background:#fff;
  border-bottom:1px solid var(--ep-border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 26px;
  position:sticky;
  top:0;
  z-index:30;
}

.pro-breadcrumb{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--ep-muted);
  font-size:11px;
}

.pro-breadcrumb strong{
  color:var(--ep-text);
}

.pro-top-actions{
  display:flex;
  align-items:center;
  gap:9px;
}

.pro-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border:1px solid var(--ep-border);
  background:#fff;
  color:var(--ep-text);
  padding:9px 12px;
  border-radius:10px;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.pro-btn.primary{
  background:var(--ep-primary);
  border-color:var(--ep-primary);
  color:#fff;
}

.pro-content{
  max-width:1450px;
  margin:0 auto;
  padding:26px;
}

.pro-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}

.pro-page-head .eyebrow{
  display:block;
  color:var(--ep-primary);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
  margin-bottom:4px;
}

.pro-page-head h1{
  margin:0;
  font-size:28px;
}

.pro-page-head p{
  margin:5px 0 0;
  color:var(--ep-muted);
  font-size:12px;
}

.pro-date{
  border:1px solid var(--ep-border);
  background:#fff;
  padding:9px 11px;
  border-radius:9px;
  font-size:10px;
  color:var(--ep-muted);
}

.pro-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:18px;
}

.pro-stat{
  background:#fff;
  border:1px solid var(--ep-border);
  border-radius:var(--ep-radius);
  padding:16px;
  box-shadow:var(--ep-shadow);
  position:relative;
  overflow:hidden;
}

.pro-stat::after{
  content:"";
  position:absolute;
  width:80px;
  height:80px;
  right:-30px;
  top:-25px;
  border-radius:50%;
  background:rgba(37,99,235,.05);
}

.pro-stat-label{
  color:var(--ep-muted);
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.pro-stat-value{
  display:block;
  font-size:28px;
  font-weight:900;
  margin:6px 0 3px;
}

.pro-stat-note{
  font-size:9px;
  color:#94a3b8;
}

.pro-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:16px;
}

.pro-card{
  background:#fff;
  border:1px solid var(--ep-border);
  border-radius:var(--ep-radius);
  padding:18px;
  box-shadow:var(--ep-shadow);
}

.pro-card + .pro-card{
  margin-top:16px;
}

.pro-card-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
}

.pro-card h2{
  margin:0;
  font-size:15px;
}

.pro-card p{
  margin:4px 0 0;
  color:var(--ep-muted);
  font-size:11px;
}

.pro-actions-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.pro-action-card{
  border:1px solid var(--ep-border);
  border-radius:13px;
  padding:15px;
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  transition:.16s ease;
  background:#fff;
}

.pro-action-card:hover{
  border-color:#9db7ff;
  box-shadow:0 10px 25px rgba(37,99,235,.08);
  transform:translateY(-1px);
}

.pro-action-card b{
  display:block;
  font-size:12px;
}

.pro-action-card span{
  display:block;
  font-size:9px;
  color:var(--ep-muted);
  margin-top:3px;
}

.pro-action-arrow{
  width:34px;
  height:34px;
  border-radius:10px;
  background:#eef4ff;
  color:var(--ep-primary);
  display:grid;
  place-items:center;
  font-weight:900;
}

.pro-table{
  width:100%;
  border-collapse:collapse;
}

.pro-table th{
  text-align:left;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#94a3b8;
  padding:8px 9px;
  border-bottom:1px solid var(--ep-border);
}

.pro-table td{
  padding:11px 9px;
  border-bottom:1px solid #eef2f7;
  font-size:10px;
  vertical-align:middle;
}

.pro-table tr:last-child td{
  border-bottom:0;
}

.pro-doc-title{
  font-weight:800;
  font-size:11px;
}

.pro-doc-sub{
  color:var(--ep-muted);
  font-size:9px;
  margin-top:2px;
}

.pro-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border-radius:999px;
  font-size:9px;
  font-weight:800;
  background:#eef2ff;
  color:#3730a3;
}

.pro-badge.locked{
  background:#ecfdf5;
  color:#047857;
}

.pro-badge.draft{
  background:#fff7ed;
  color:#b45309;
}

.pro-empty{
  padding:28px 16px;
  border:1px dashed #cbd5e1;
  border-radius:12px;
  text-align:center;
  background:#f8fafc;
}

.pro-empty strong{
  display:block;
  font-size:12px;
}

.pro-empty span{
  display:block;
  margin-top:4px;
  font-size:10px;
  color:var(--ep-muted);
}

.pro-profile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.pro-field label{
  display:block;
  font-size:9px;
  text-transform:uppercase;
  font-weight:800;
  color:#64748b;
  margin-bottom:5px;
}

.pro-field input{
  width:100%;
  border:1px solid var(--ep-border);
  padding:10px;
  border-radius:9px;
  font:inherit;
  font-size:11px;
}

.pro-field.full{
  grid-column:1/-1;
}

.mobile-menu-btn{
  display:none;
}

@media(max-width:1050px){
  .pro-shell{grid-template-columns:82px 1fr}
  .pro-logo-text,.pro-nav a span:not(.pro-nav-icon),.pro-user-mini{display:none}
  .pro-logo{justify-content:center}
  .pro-nav a{justify-content:center}
  .pro-sidebar{padding-left:10px;padding-right:10px}
  .pro-sidebar-footer a{font-size:0}
  .pro-sidebar-footer a::after{content:"Çık";font-size:10px}
}

@media(max-width:780px){
  .pro-shell{display:block}
  .pro-sidebar{display:none}
  .pro-stats{grid-template-columns:1fr 1fr}
  .pro-grid{grid-template-columns:1fr}
  .pro-actions-grid{grid-template-columns:1fr}
  .pro-topbar{padding:0 14px}
  .pro-content{padding:16px}
}

@media(max-width:480px){
  .pro-stats{grid-template-columns:1fr}
  .pro-profile-grid{grid-template-columns:1fr}
  .pro-field.full{grid-column:auto}
}

/* V4 permission/admin additions */
a{color:inherit;text-decoration:none}
.pro-field select{width:100%;border:1px solid var(--ep-border);padding:10px;border-radius:9px;background:#fff;font:inherit;font-size:11px}
.alert{padding:11px 12px;border-radius:10px;font-size:11px;font-weight:700}
.alert.success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.alert.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}


/* =========================================================
   EMLAKPRO V4.4 - LIGHTWEIGHT RESPONSIVE UI POLISH
   Desktop + Mobile / No external UI library
   ========================================================= */

:root{
  --ep-mobile-nav-h:70px;
}

/* General polish */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body.app-page{
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

button,input,select,textarea{
  -webkit-tap-highlight-color:transparent;
}

.pro-main{
  background:
    radial-gradient(circle at 100% 0,rgba(37,99,235,.035),transparent 340px),
    var(--ep-bg);
}

/* Desktop sidebar */
.pro-sidebar{
  box-shadow:10px 0 35px rgba(15,23,42,.045);
}

.pro-nav a{
  min-height:46px;
}

.pro-nav a:hover .pro-nav-icon,
.pro-nav a.active .pro-nav-icon{
  background:rgba(255,255,255,.11);
}

.pro-sidebar-footer a{
  transition:.15s ease;
}

.pro-sidebar-footer a:hover{
  transform:translateY(-1px);
}

/* Topbar */
.pro-topbar{
  backdrop-filter:saturate(130%) blur(8px);
  -webkit-backdrop-filter:saturate(130%) blur(8px);
  background:rgba(255,255,255,.94);
}

.pro-breadcrumb{
  min-width:0;
}

.pro-breadcrumb > *{
  white-space:nowrap;
}

.pro-breadcrumb strong{
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Buttons */
.pro-btn{
  min-height:38px;
  transition:border-color .15s ease,background .15s ease,transform .15s ease,box-shadow .15s ease;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
}

.pro-btn:hover{
  border-color:#c8d3e5;
  background:#f8fafc;
}

.pro-btn.primary:hover{
  background:var(--ep-primary-2);
  border-color:var(--ep-primary-2);
  box-shadow:0 6px 16px rgba(37,99,235,.18);
}

.pro-btn:active{
  transform:translateY(1px);
}

/* Cards */
.pro-card,
.pro-stat{
  transition:border-color .15s ease,box-shadow .15s ease;
}

.pro-card:hover{
  border-color:#dbe3ef;
}

.pro-stat:hover{
  border-color:#d7e0ee;
  box-shadow:0 12px 28px rgba(15,23,42,.07);
}

/* Forms */
.pro-field input,
.pro-field select,
.pro-field textarea{
  width:100%;
  min-height:42px;
  border:1px solid var(--ep-border);
  background:#fff;
  padding:10px 11px;
  border-radius:10px;
  color:var(--ep-text);
  font:inherit;
  font-size:12px;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.pro-field textarea{
  min-height:92px;
  line-height:1.5;
  resize:vertical;
}

.pro-field input:focus,
.pro-field select:focus,
.pro-field textarea:focus{
  border-color:#8fb1ff;
  box-shadow:0 0 0 3px rgba(37,99,235,.09);
}

.pro-field input::placeholder,
.pro-field textarea::placeholder{
  color:#a4afbf;
}

.pro-field small{
  display:block;
  margin-top:5px;
  color:#94a3b8;
  font-size:9px;
  line-height:1.45;
}

/* Tables */
.pro-card > .pro-table,
.pro-card > div > .pro-table{
  background:#fff;
}

.pro-table tbody tr{
  transition:background .12s ease;
}

.pro-table tbody tr:hover{
  background:#fafcff;
}

/* Keep table usable without inflating page */
.pro-card > div[style*="overflow:auto"]{
  scrollbar-width:thin;
  scrollbar-color:#cbd5e1 transparent;
}

.pro-card > div[style*="overflow:auto"]::-webkit-scrollbar{
  height:7px;
  width:7px;
}

.pro-card > div[style*="overflow:auto"]::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}

/* =========================================================
   TABLET
   ========================================================= */
@media(max-width:1050px) and (min-width:781px){
  .pro-shell{
    grid-template-columns:78px 1fr;
  }

  .pro-content{
    padding:22px;
  }

  .pro-stats{
    gap:12px;
  }

  .pro-card{
    padding:16px;
  }
}

/* =========================================================
   MOBILE
   Sidebar becomes a lightweight bottom navigation.
   No JS / no drawer / no heavy library.
   ========================================================= */
@media(max-width:780px){
  body.app-page{
    padding-bottom:calc(var(--ep-mobile-nav-h) + env(safe-area-inset-bottom));
  }

  .pro-shell{
    display:block;
    min-height:100vh;
  }

  .pro-main{
    min-height:100vh;
  }

  /* Bottom nav */
  .pro-sidebar{
    display:block;
    position:fixed;
    left:0;
    right:0;
    top:auto;
    bottom:0;
    width:100%;
    height:calc(var(--ep-mobile-nav-h) + env(safe-area-inset-bottom));
    padding:7px 8px calc(7px + env(safe-area-inset-bottom));
    background:rgba(15,23,42,.97);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    border-top:1px solid rgba(255,255,255,.08);
    box-shadow:0 -8px 30px rgba(15,23,42,.16);
    z-index:100;
  }

  .pro-sidebar .pro-logo,
  .pro-sidebar .pro-sidebar-footer,
  .pro-sidebar .pro-user-mini{
    display:none;
  }

  .pro-nav{
    display:flex;
    gap:5px;
    height:100%;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }

  .pro-nav::-webkit-scrollbar{
    display:none;
  }

  .pro-nav a{
    flex:0 0 72px;
    min-width:72px;
    height:54px;
    padding:5px 3px;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    scroll-snap-align:start;
    text-align:center;
    color:#cbd5e1;
  }

  .pro-nav a span:not(.pro-nav-icon){
    display:block !important;
    width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:8px;
    line-height:1.15;
    color:inherit;
  }

  .pro-nav-icon{
    width:27px;
    height:27px;
    border-radius:8px;
    font-size:10px;
  }

  .pro-nav a.active{
    background:rgba(255,255,255,.10);
  }

  /* Header */
  .pro-topbar{
    min-height:58px;
    height:auto;
    padding:10px 14px;
    gap:10px;
    align-items:center;
  }

  .pro-breadcrumb{
    flex:1;
    overflow:hidden;
    font-size:10px;
  }

  .pro-breadcrumb > span:first-child{
    display:none;
  }

  .pro-breadcrumb > span:nth-child(2){
    display:none;
  }

  .pro-breadcrumb strong{
    font-size:12px;
    max-width:100%;
  }

  .pro-top-actions{
    flex:0 0 auto;
    gap:6px;
  }

  .pro-top-actions .pro-btn{
    min-height:36px;
    padding:8px 10px;
    font-size:9px;
    border-radius:9px;
  }

  /* Main spacing */
  .pro-content{
    width:100%;
    padding:16px 13px 20px;
  }

  .pro-page-head{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
    margin-bottom:15px;
  }

  .pro-page-head h1{
    font-size:23px;
    line-height:1.15;
  }

  .pro-page-head p{
    font-size:11px;
    line-height:1.55;
    max-width:100%;
  }

  .pro-date{
    align-self:flex-start;
    padding:7px 9px;
  }

  /* Dashboard cards */
  .pro-stats{
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-bottom:13px;
  }

  .pro-stat{
    min-height:108px;
    padding:14px;
    border-radius:14px;
  }

  .pro-stat-value{
    font-size:24px;
  }

  .pro-stat-label{
    font-size:8px;
  }

  .pro-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .pro-card{
    padding:14px;
    border-radius:14px;
    box-shadow:0 7px 22px rgba(15,23,42,.045);
  }

  .pro-card + .pro-card{
    margin-top:12px;
  }

  .pro-card-head{
    gap:8px;
    margin-bottom:11px;
  }

  .pro-card h2{
    font-size:14px;
  }

  .pro-actions-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  .pro-action-card{
    min-height:64px;
    padding:12px;
  }

  .pro-action-card b{
    font-size:11px;
  }

  .pro-action-card span{
    font-size:9px;
    line-height:1.35;
  }

  .pro-action-arrow{
    flex:0 0 32px;
    width:32px;
    height:32px;
  }

  /* Forms */
  .pro-profile-grid{
    grid-template-columns:1fr;
    gap:9px;
  }

  .pro-field.full{
    grid-column:auto;
  }

  .pro-field label{
    font-size:8px;
    margin-bottom:5px;
  }

  .pro-field input,
  .pro-field select,
  .pro-field textarea{
    font-size:16px; /* prevents iOS zoom */
    min-height:44px;
    border-radius:10px;
  }

  .pro-field textarea{
    min-height:104px;
  }

  /* Buttons become easier to tap */
  .pro-card form > .pro-btn.primary[style*="width:100%"],
  .pro-content form > .pro-btn.primary[style*="width:100%"]{
    min-height:46px;
    font-size:11px;
  }

  /* Horizontal filter forms */
  .pro-card form[style*="display:flex"]{
    align-items:stretch !important;
  }

  .pro-card form[style*="display:flex"] .pro-field{
    flex:1 1 145px;
  }

  .pro-card form[style*="display:flex"] > .pro-btn{
    min-height:42px;
  }

  /* Tables: compact horizontal scroll */
  .pro-table{
    min-width:620px;
  }

  .pro-table th{
    font-size:8px;
    padding:8px;
  }

  .pro-table td{
    font-size:9px;
    padding:10px 8px;
  }

  .pro-doc-title{
    font-size:10px;
  }

  .pro-doc-sub{
    font-size:8px;
    line-height:1.4;
  }

  .pro-badge{
    white-space:nowrap;
  }

  /* Alerts */
  .alert{
    font-size:10px;
    line-height:1.45;
    border-radius:10px;
  }

  /* Request selector cards */
  .req-checks{
    grid-template-columns:1fr !important;
    gap:7px !important;
  }

  .req-check{
    padding:11px !important;
  }

  /* Auth / older utility screens */
  .container{
    padding:16px;
  }

  .topbar{
    height:auto;
    min-height:58px;
    padding:10px 14px;
  }

  .stats{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .grid{
    grid-template-columns:1fr;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */
@media(max-width:480px){
  .pro-content{
    padding:13px 10px 18px;
  }

  .pro-topbar{
    padding:9px 10px;
  }

  .pro-page-head h1{
    font-size:21px;
  }

  .pro-stats{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .pro-stat{
    min-height:102px;
    padding:12px;
  }

  .pro-stat-value{
    font-size:22px;
  }

  .pro-card{
    padding:12px;
  }

  .pro-nav a{
    flex-basis:68px;
    min-width:68px;
  }

  .pro-top-actions{
    max-width:48%;
    overflow-x:auto;
    scrollbar-width:none;
  }

  .pro-top-actions::-webkit-scrollbar{
    display:none;
  }

  .pro-table{
    min-width:590px;
  }

  .stats{
    grid-template-columns:1fr;
  }
}

/* Very small phones: prioritize readability over density */
@media(max-width:360px){
  .pro-stats{
    grid-template-columns:1fr;
  }

  .pro-stat{
    min-height:auto;
  }

  .pro-nav a{
    flex-basis:64px;
    min-width:64px;
  }
}

/* Respect reduced motion */
@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
  }
}


/* =========================================================
   EMLAKPRO V4.5 - MOBILE DRAWER NAVIGATION
   Replaces V4.4 bottom navigation on mobile
   ========================================================= */

.ep-mobile-menu-btn,
.ep-mobile-menu-overlay{
  display:none;
}

@media(max-width:780px){
  body.app-page{
    padding-bottom:0 !important;
  }

  /* Restore sidebar as hidden left drawer */
  .pro-sidebar{
    display:flex !important;
    flex-direction:column;
    position:fixed !important;
    top:0 !important;
    bottom:0 !important;
    left:0 !important;
    right:auto !important;
    width:min(82vw,310px) !important;
    height:100dvh !important;
    padding:16px 12px calc(16px + env(safe-area-inset-bottom)) !important;
    background:#0f172a !important;
    border-top:0 !important;
    border-right:1px solid rgba(255,255,255,.08);
    box-shadow:18px 0 45px rgba(15,23,42,.24) !important;
    transform:translateX(-104%);
    transition:transform .2s ease;
    z-index:300;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
  }

  body.ep-menu-open .pro-sidebar{
    transform:translateX(0);
  }

  .pro-sidebar .pro-logo{
    display:flex !important;
    margin-bottom:16px;
  }

  .pro-sidebar .pro-sidebar-footer{
    display:block !important;
    margin-top:auto;
    padding-top:14px;
  }

  .pro-sidebar .pro-user-mini{
    display:flex !important;
  }

  .pro-nav{
    display:flex !important;
    flex-direction:column !important;
    gap:5px !important;
    height:auto !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
  }

  .pro-nav a{
    flex:none !important;
    min-width:0 !important;
    width:100% !important;
    height:auto !important;
    min-height:46px !important;
    padding:9px 10px !important;
    border-radius:10px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
    text-align:left !important;
    scroll-snap-align:none !important;
    color:#cbd5e1;
  }

  .pro-nav a span:not(.pro-nav-icon){
    display:block !important;
    width:auto !important;
    overflow:visible !important;
    text-overflow:clip !important;
    white-space:normal !important;
    font-size:10px !important;
    line-height:1.25 !important;
  }

  .pro-nav-icon{
    flex:0 0 30px !important;
    width:30px !important;
    height:30px !important;
    border-radius:8px !important;
    font-size:10px !important;
  }

  .pro-nav a.active{
    background:rgba(255,255,255,.11) !important;
  }

  /* Overlay */
  .ep-mobile-menu-overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.46);
    opacity:0;
    visibility:hidden;
    transition:opacity .2s ease,visibility .2s ease;
    z-index:250;
    backdrop-filter:blur(1.5px);
    -webkit-backdrop-filter:blur(1.5px);
  }

  body.ep-menu-open .ep-mobile-menu-overlay{
    opacity:1;
    visibility:visible;
  }

  body.ep-menu-open{
    overflow:hidden;
  }

  /* Hamburger button */
  .ep-mobile-menu-btn{
    display:inline-flex;
    flex:0 0 38px;
    width:38px;
    height:38px;
    border:1px solid #e2e8f0;
    border-radius:10px;
    background:#fff;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:4px;
    padding:0;
    cursor:pointer;
    box-shadow:0 1px 3px rgba(15,23,42,.05);
  }

  .ep-mobile-menu-btn span{
    display:block;
    width:16px;
    height:2px;
    border-radius:99px;
    background:#0f172a;
    transition:transform .18s ease,opacity .18s ease;
  }

  .ep-mobile-menu-btn[aria-expanded="true"] span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }

  .ep-mobile-menu-btn[aria-expanded="true"] span:nth-child(2){
    opacity:0;
  }

  .ep-mobile-menu-btn[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  .pro-topbar{
    position:sticky;
    top:0;
    z-index:120;
  }

  .pro-breadcrumb{
    min-width:0;
  }
}

@media(prefers-reduced-motion:reduce){
  .pro-sidebar,
  .ep-mobile-menu-overlay,
  .ep-mobile-menu-btn span{
    transition:none !important;
  }
}


/* =========================================================
   EMLAKCIMTR.COM BRANDING - V4.6.2
   ========================================================= */
.brand-logo-full{
  display:block;
  width:min(100%,320px);
  height:auto;
  margin:0 auto 14px;
}
.sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}
.pro-logo-mark.brand-image{
  padding:0!important;
  overflow:hidden;
  background:transparent!important;
  box-shadow:none!important;
}
.pro-logo-mark.brand-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
.brand-logo-img{
  padding:0!important;
  overflow:hidden;
}
.brand-logo-img img,
.brand-verify-logo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(max-width:780px){
  .brand-logo-full{width:min(100%,280px)}
}


/* =========================================================
   V4.6.3 MOBILE / RESPONSIVE FIXES
   ========================================================= */
.request-step-title{font-size:12px;margin:18px 0 9px}
.request-kind{display:flex!important;gap:10px;align-items:flex-start;cursor:pointer}
.request-kind input{margin-top:3px;flex:0 0 auto}
.request-kind span{display:block}
.request-kind b{display:block;font-size:11px}
.request-kind small{margin:4px 0 0!important;font-weight:500}
.seller-identity-fields[hidden]{display:none!important}
.seller-identity-fields{margin-top:14px;padding:14px;border:1px solid #dbeafe;background:#f8fbff;border-radius:12px}
.mobile-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.save-print-banner{
  max-width:794px;margin:0 auto 14px;background:#ecfdf5;border:1px solid #a7f3d0;
  border-radius:12px;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px
}
.save-print-banner strong{display:block;color:#047857;font-size:12px}
.save-print-banner span{display:block;color:#475569;font-size:10px;margin-top:3px}
.request-detail-content{width:100%}

@media(max-width:780px){
  .pro-topbar{min-height:60px;height:auto;padding:9px 12px;gap:8px}
  .pro-breadcrumb{min-width:0;overflow:hidden}
  .pro-breadcrumb span,.pro-breadcrumb strong,.pro-breadcrumb a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pro-top-actions{flex-wrap:wrap;justify-content:flex-end}
  .pro-content{padding:14px 12px}
  .pro-page-head{align-items:flex-start;flex-direction:column;gap:10px}
  .pro-page-head h1{font-size:22px}
  .pro-card{padding:14px;border-radius:12px}
  .pro-profile-grid{grid-template-columns:1fr}
  .pro-field.full{grid-column:auto}
  .request-kind-grid{grid-template-columns:1fr!important}
  .request-create-card{overflow:hidden}
  .request-submit-btn{min-height:46px}

  /* Mobile tables become readable stacked cards, avoiding horizontal scroll. */
  .mobile-card-table{display:block;width:100%}
  .mobile-card-table thead{display:none}
  .mobile-card-table tbody{display:grid;gap:10px}
  .mobile-card-table tr{
    display:grid!important;grid-template-columns:1fr!important;
    border:1px solid #e5e9f2;border-radius:12px;padding:10px;background:#fff
  }
  .mobile-card-table td{
    display:block!important;width:100%!important;border:0!important;padding:5px 0!important;
    overflow-wrap:anywhere;word-break:break-word
  }
  .mobile-card-table td + td{border-top:1px solid #f1f5f9!important}
  .mobile-card-table .pro-btn{width:100%;margin-top:4px}
  .request-list-table .answer-box{width:100%;overflow-wrap:anywhere}
  .mobile-table-wrap{overflow:visible}

  .save-print-banner{margin:0 0 12px;flex-direction:column;align-items:stretch}
  .save-print-action{width:100%;text-align:center}
}

@media(max-width:480px){
  .pro-content{padding:10px}
  .pro-card{padding:12px}
  .pro-btn{min-height:40px;padding:9px 10px}
}
