@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');
:root{--ink:#57332d;--rose:#bd7d82;--rose2:#d9a6a5;--cream:#fbf5f1;--line:#eadbd5;--muted:#927c75;--green:#66865c}*{box-sizing:border-box}body{margin:0;background:#f8f1ed;color:var(--ink);font-family:'DM Sans',sans-serif}.app{min-height:100vh;display:flex}.sidebar{width:245px;background:#fffaf7;border-right:1px solid var(--line);padding:24px 14px;display:flex;flex-direction:column;flex-shrink:0}.brand{display:flex;align-items:center;gap:12px;padding:0 14px 28px;text-decoration:none;color:var(--ink);font-family:'Playfair Display',serif;font-size:22px;font-weight:700;line-height:1.05}.brand-icon{font-size:39px;color:var(--rose)}nav{display:flex;flex-direction:column;gap:5px}nav a{padding:12px 14px;border-radius:11px;text-decoration:none;color:#634b45;font-size:14px;font-weight:600}nav a:hover,nav a.active{background:#c9868b;color:white}.navicon{display:inline-block;width:30px;font-size:18px}.nav-caption{font-size:10px;letter-spacing:1.7px;color:#b39a91;padding:20px 14px 7px}.sidebar-foot{margin-top:auto;padding:18px 10px;color:#b18d87;font-family:'Playfair Display',serif;font-style:italic;font-size:13px}.main{min-width:0;flex:1}.topbar{height:62px;background:#fffaf7d9;border-bottom:1px solid var(--line);display:flex;justify-content:flex-end;align-items:center;padding:0 30px}.user-pill{background:#f4e9e4;border-radius:30px;padding:9px 16px;font-size:13px;font-weight:600}.mobile-brand{display:none}.content{padding:24px 26px;max-width:1700px;margin:auto}.hero{min-height:190px;border-radius:18px;padding:28px 36px;margin-bottom:18px;background:linear-gradient(90deg,#f8e8e4,#fff8f4 60%,#f4e5df);display:flex;align-items:center;justify-content:center;text-align:center;position:relative;overflow:hidden;border:1px solid #efddd7}.hero:before,.hero:after{content:'❀';position:absolute;color:#d8b6ac;font-size:100px;opacity:.35}.hero:before{left:35px;top:25px}.hero:after{right:35px;bottom:10px}.eyebrow{font-size:10px;letter-spacing:2px;color:#b17c79;font-weight:700}.hero h1{font:italic 48px 'Playfair Display',serif;margin:8px 0 0;color:#633b35}.hero h1 span{color:#bd8582}.hero h2{font:600 21px 'Playfair Display',serif;margin:0}.hero p{font:italic 15px 'Playfair Display',serif;color:#966f68;margin:8px}.hero-heart{position:absolute;right:8%;top:24px;font-size:46px;color:#d7a6a4}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}.stat{background:#fffdfb;border:1px solid var(--line);border-radius:15px;padding:17px;display:flex;align-items:center;gap:14px;box-shadow:0 4px 15px #8b5a4b0b}.stat>span{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#f8ece9;color:#b96f72;font-size:25px}.stat>span.green{background:#edf3e9;color:var(--green)}.stat small{display:block;color:#927c75;font-size:12px}.stat strong{display:block;font:700 27px 'Playfair Display',serif;margin-top:2px}.panel{background:#fffdfb;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:0 4px 15px #8b5a4b0b}.panel h3{font:600 19px 'Playfair Display',serif;margin:0 0 14px}.progress-panel{display:grid;grid-template-columns:190px 1fr auto;gap:20px;align-items:center;margin-bottom:18px}.progress-panel h3{margin:0}.progress{height:13px;border-radius:20px;background:#f0e0dc;overflow:hidden}.progress i,.mini-progress i{display:block;height:100%;background:linear-gradient(90deg,#bd7d82,#dba6a5);border-radius:20px}.progress-panel small{color:var(--muted)}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.panel-head h3{margin:0 0 16px}.panel-head a{font-size:12px;color:#a56d6d;text-decoration:none}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.category-card{border:1px solid #efdfd9;border-radius:13px;padding:13px;text-decoration:none;color:var(--ink);background:#fffaf7;min-height:130px}.category-card:hover{border-color:#c9868b;transform:translateY(-2px)}.category-icon{font-size:22px;color:#bd7d82}.category-card h4{font-size:13px;margin:7px 0 3px}.category-card small{font-size:11px;color:var(--muted)}.mini-progress{height:7px;background:#f0e0dc;border-radius:20px;margin-top:10px;overflow:hidden}.right-stack{display:flex;flex-direction:column;gap:15px}.task-line{padding:10px 0;border-bottom:1px solid #f0e5e0;font-size:13px}.task-line span{color:#bd7d82;margin-right:9px}.muted{color:var(--muted);font-size:13px}.money-line{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0e5e0;font-size:13px}.highlight{color:#4d7548;background:#f0f5ed;padding:12px;border-radius:8px;margin-top:8px}.btn{border:0;border-radius:10px;background:#bd7d82;color:white;padding:12px 17px;font:600 14px 'DM Sans';cursor:pointer;text-decoration:none;display:inline-block;text-align:center}.btn:hover{background:#a9656b}.btn-light{background:#f7eae6;color:#965f61}.full{width:100%;margin-top:12px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:10px 0 20px}.page-heading h1{font:600 34px 'Playfair Display',serif;margin:5px 0}.page-heading p{margin:0;color:var(--muted)}.product-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:18px;align-items:start}.product-row{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #f0e5e0}.check{width:32px;height:32px;border-radius:50%;border:1px solid #d8b8b2;background:#fff7f4;color:#a96d70;display:grid;place-items:center;text-decoration:none;font-size:18px;cursor:pointer}.product-info{flex:1;min-width:0}.product-info b{display:block;font-size:14px}.product-info small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.product-price{font-size:13px;font-weight:700}.status{font-size:11px;padding:6px 9px;border-radius:20px}.status.done{background:#edf4e9;color:#55764d}.status.pending{background:#f8ece8;color:#a96d70}.add-panel label,.setup-card label,.login-card label{display:block;font-size:12px;color:#765b53;font-weight:600;margin:12px 0}.add-panel input,.add-panel select,.add-panel textarea,.setup-card input,.login-card input{display:block;width:100%;margin-top:6px;border:1px solid #e7d7d0;border-radius:9px;padding:11px;background:#fffdfa;color:#543c36;font:14px 'DM Sans'}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.empty{text-align:center;padding:45px 15px;color:#a78d84;font-family:'Playfair Display',serif}.cross{text-decoration:line-through;color:#a58e87}.setup-body{min-height:100vh;display:grid;place-items:center;padding:25px;background:linear-gradient(135deg,#f4e5e0,#fffaf7)}.setup-card,.login-card{width:min(680px,100%);background:#fffdfb;border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 15px 50px #68423815}.login-card{width:min(420px,100%)}.setup-card h1,.login-card h1{text-align:center;font:600 29px 'Playfair Display';margin:5px}.setup-card p,.login-card p{text-align:center;color:var(--muted);margin:0 0 22px}.setup-card h3{font:600 17px 'Playfair Display';margin:22px 0 8px}.setup-brand{text-align:center;font-size:42px;color:#bd7d82}.setup-card small{display:block;text-align:center;color:var(--muted);margin-top:14px}.alert{background:#fff0ed;color:#9c4e4e;border-radius:9px;padding:10px;font-size:13px}footer{text-align:center;color:#b1978f;font-size:11px;padding:22px}
@media(max-width:1100px){.category-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr 280px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{width:68px;padding:15px 7px}.brand{padding:0 7px 22px}.brand span:last-child,nav a:not(.active){font-size:0}nav a{padding:12px 10px;text-align:center}nav a .navicon{font-size:20px;width:auto}.nav-caption,.sidebar-foot{display:none}.content{padding:14px}.topbar{height:52px;padding:0 15px;justify-content:space-between}.mobile-brand{display:block;font:600 17px 'Playfair Display'}.hero{min-height:155px;padding:18px}.hero h1{font-size:34px}.hero:before,.hero:after{font-size:55px}.hero-heart{display:none}.stats{gap:8px}.stat{padding:12px;gap:8px}.stat>span{width:36px;height:36px;font-size:19px}.stat strong{font-size:21px}.progress-panel{grid-template-columns:1fr;gap:9px}.dashboard-grid,.product-layout{grid-template-columns:1fr}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-price{display:none}.setup-card,.login-card{padding:22px}.page-heading h1{font-size:28px}}

.login-card .setup-brand{margin-bottom:5px}.login-card label{margin:16px 0}.login-card input{padding:13px}.stats.three{grid-template-columns:repeat(3,1fr)}.inline-form{margin:0;display:inline-flex}.check{border:2px solid #b7a29c;background:#fff;border-radius:6px;width:27px;height:27px;display:grid;place-items:center;color:white;font-weight:700;font-size:17px;cursor:pointer}.check.checked{background:#8c2637;border-color:#8c2637}.icon-action{border:0;background:#f8efec;color:#7d2936;text-decoration:none;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;font-size:19px;cursor:pointer}.icon-action.danger{color:#a34a4a}.filter-bar{display:flex;gap:8px;margin:15px 0}.filter-bar select,.filter-bar input{min-width:0;border:1px solid var(--line);border-radius:9px;padding:10px;background:#fff;color:var(--ink);font:13px 'DM Sans'}.filter-bar input{flex:1}.span-all{grid-column:1/-1}@media(max-width:760px){.stats.three{grid-template-columns:1fr 1fr}.filter-bar{flex-wrap:wrap}.filter-bar select,.filter-bar input{flex:1 1 100%}.product-row{gap:8px}.status{font-size:10px;padding:5px 7px}}

.js-toggle {
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.js-toggle:disabled {
    opacity: .5;
    cursor: wait;
}

.js-toggle.checked {
    cursor: pointer;
}

/* =====================================
   MUSTAFA & ZÜHRE - MOBİL TASARIM
===================================== */

@media (max-width: 760px) {

    html, body {
        width: 100%;
        overflow-x: hidden;
    }

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

    /* Üst mobil menü */
    .sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 8px 10px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 3px 12px #6842380b;
    }

    .brand,
    .sidebar-foot,
    .nav-caption {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 5px;
        width: 100%;
    }

    nav a,
    nav a:not(.active) {
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 8px 3px;
        font-size: 10px;
        text-align: center;
        border-radius: 9px;
        white-space: nowrap;
    }

    nav a .navicon {
        display: block;
        width: auto;
        font-size: 19px;
        line-height: 1.2;
    }

    .main {
        width: 100%;
        min-width: 0;
    }

    .topbar {
        height: 52px;
        padding: 0 14px;
    }

    .content {
        width: 100%;
        padding: 14px 11px;
    }

    /* Başlıklar */
    .page-heading {
        margin: 8px 2px 16px;
    }

    .page-heading h1 {
        font-size: 27px;
    }

    /* Ürün listesi */
    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .product-layout > .panel {
        width: 100%;
        min-width: 0;
        padding: 13px;
    }

    .product-row {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) auto auto auto;
        align-items: center;
        gap: 6px;
        padding: 12px 0;
    }

    .product-info {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .product-info b {
        font-size: 13px;
        line-height: 1.4;
    }

    .product-info small {
        font-size: 10px;
        line-height: 1.4;
    }

    .check {
        width: 27px;
        height: 27px;
    }

    .status {
        font-size: 9px;
        padding: 5px 6px;
        white-space: nowrap;
    }

    .icon-action {
        width: 29px;
        height: 30px;
        font-size: 16px;
    }

    /* Arama ve kategori */
    .filter-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
        min-height: 43px;
        font-size: 14px;
    }

    /* Ürün ekleme ve düzenleme */
    .add-panel {
        width: 100%;
        padding: 16px !important;
    }

    .add-panel input,
    .add-panel select,
    .add-panel textarea {
        width: 100%;
        min-height: 43px;
        font-size: 16px;
    }

    .add-panel textarea {
        min-height: 90px;
    }

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

    .btn {
        min-height: 44px;
    }

    /* Ana sayfa kartları */
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .stat {
        min-width: 0;
        padding: 11px;
    }

    .stat strong {
        font-size: 21px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .category-card {
        min-width: 0;
        padding: 11px;
    }

    .dashboard-grid {
        display: flex;
        flex-direction: column;
    }

    .progress-panel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    footer {
        padding: 18px 8px;
    }
}

/* Çok dar telefonlar */
@media (max-width: 380px) {
    .product-row {
        grid-template-columns: 26px minmax(0, 1fr) auto auto;
        gap: 5px;
    }

    .product-row > .icon-action {
        grid-column: 4;
    }

    .product-info b {
        font-size: 12px;
    }

    .status {
        font-size: 8px;
        padding: 4px 5px;
    }

    nav a,
    nav a:not(.active) {
        font-size: 9px;
    }

    .content {
        padding-left: 8px;
        padding-right: 8px;
    }
}


/* MOBIL SON DUZENLEME */
@media screen and (max-width: 760px) {

    html, body {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .app {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .sidebar {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        padding: 8px 7px !important;
        border-right: 0 !important;
        border-bottom: 1px solid var(--line) !important;
        flex-direction: column !important;
        z-index: 20 !important;
    }

    .sidebar .brand,
    .sidebar .sidebar-foot,
    .sidebar .nav-caption {
        display: none !important;
    }

    .sidebar nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: stretch !important;
        width: 100% !important;
        gap: 3px !important;
    }

    .sidebar nav a,
    .sidebar nav a:not(.active) {
        display: flex !important;
        flex: 1 1 0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        min-width: 0 !important;
        padding: 8px 2px !important;
        margin: 0 !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
        text-align: center !important;
        white-space: normal !important;
        border-radius: 9px !important;
    }

    .sidebar nav a .navicon {
        display: block !important;
        width: auto !important;
        font-size: 19px !important;
        margin: 0 0 3px !important;
    }

    .main {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .topbar {
        width: 100% !important;
        height: auto !important;
        min-height: 52px !important;
        padding: 8px 12px !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .mobile-brand {
        display: block !important;
        font-size: 15px !important;
        white-space: nowrap !important;
    }

    .user-pill {
        max-width: 48% !important;
        padding: 7px 10px !important;
        font-size: 11px !important;
        overflow-wrap: anywhere !important;
    }

    .content {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
        margin: 0 !important;
    }

    .page-heading h1 {
        font-size: 27px !important;
    }

    .product-layout {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .product-layout > .panel {
        width: 100% !important;
        min-width: 0 !important;
        padding: 13px !important;
    }

    .product-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 7px !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .product-info {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .product-info b {
        font-size: 13px !important;
        overflow-wrap: anywhere !important;
    }

    .product-info small {
        font-size: 10px !important;
        line-height: 1.4 !important;
    }

    .status {
        flex-shrink: 0 !important;
        font-size: 9px !important;
        padding: 5px 6px !important;
    }

    .icon-action {
        flex-shrink: 0 !important;
        width: 30px !important;
        height: 32px !important;
    }

    .filter-bar {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100% !important;
        min-height: 44px !important;
        font-size: 14px !important;
    }

    .add-panel {
        width: 100% !important;
        min-width: 0 !important;
    }

    .add-panel input,
    .add-panel select,
    .add-panel textarea {
        width: 100% !important;
        font-size: 16px !important;
    }

    .dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* BUYUK GUN SAYACI */
.big-day-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin-left: auto;
    margin-right: 18px;
    padding: 6px 14px;
    border: 1px solid #eadbd5;
    border-radius: 12px;
    background: #fff5f1;
    line-height: 1.2;
    white-space: nowrap;
}

.big-day-title {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: #b17c79;
    font-weight: 700;
}

.big-day-countdown strong {
    font-size: 14px;
    color: #7d2936;
}

.big-day-countdown small {
    font-size: 10px;
    color: #927c75;
}

@media(max-width:760px) {
    .big-day-countdown {
        margin-left: auto;
        margin-right: 5px;
        padding: 5px 8px;
        border-radius: 9px;
    }

    .big-day-title {
        font-size: 8px;
    }

    .big-day-countdown strong {
        font-size: 11px;
    }

    .big-day-countdown small {
        font-size: 9px;
    }

    .user-pill {
        font-size: 10px !important;
        padding: 6px 8px !important;
    }
}

/* SON YAPILAN ISLEMLER */
.activity-panel {
    max-width: 900px;
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 3px;
    border-bottom: 1px solid #f0e5e0;
}

.activity-row:last-child {
    border-bottom: 0;
}

.activity-heart {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f8ece9;
    color: #bd7d82;
    font-size: 23px;
}

.activity-info {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.activity-info b {
    color: #8c2637;
}

.activity-info strong {
    color: #57332d;
}

.activity-info small {
    flex-basis: 100%;
    color: #927c75;
    font-size: 11px;
}

@media(max-width:760px) {
    .activity-panel {
        padding: 13px !important;
    }

    .activity-row {
        gap: 9px;
        padding: 13px 0;
    }

    .activity-heart {
        width: 33px;
        height: 33px;
        font-size: 19px;
    }

    .activity-info {
        font-size: 12px;
    }
}
